|
move valid=new xhr(); into the function validation(), along with function alertContents()...
additionally, try assigning onreadystatechange after the .open(), not before.
also, .innnerHTML is not standardized, check against the string instead:
if (div.innerHTML==..) becomes if (result==...)
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
Last edited by rnd me; 05-11-2009 at 09:49 PM..
|