HI All

A quesstion that has been bothering me for some time. I am using a lot
of html forms to send data to stored online, via GET posts. In the
form I often play around with the raw data from the form inside
the ..onclick= '....'> part of the form. Generally that works. However
if I check a condition and that have this javacript throgh an
alert..... I cant get to see it...even if the condition i triggered...
the html processes the GET.... for example..... why does not this stop
when I input a crazy date into the date part of the form...?
.......onclick='
  var data=this.form.date.value;
  var year=data.substring(0,3);
  var month=data.substring(4,5);
  var day=data.substring(6,7);
  if(year<2012){alert ("data se parece errada - antes de
hoje!!");this.form.date.focus();return;}
  if(month>12){alert (" data se aparece errada  mez acima do
12!!");this.form.date.focus();return;}
  if(day<0 || day>31){alert ("data se aparece errada.... dia estranha,
acima de 31 ou falta!!");this.form.date.focus();return;}
  var target=this.form.nextSibling;
  target.style.display="block";
'></form>   . just cant get to see those alerts!!!!

Thanks
kye

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to