Thanks Eric
I did try that..and it didnt seem to work either...but I think my
problem is elsewhere. I often use html forms to pass data to a server-
ide tet fil...via a php GET. So the one TW has many such forms. The
form I was asking about above, is actually accessed from a popup...and
I noticed that while "return false" didnt show up the alert
panels....the php server-side response...showed up, not in the form in
the popup, but rather in another form which was, by chance open in a
sidebar panel.
Sometimes the coding of "<script>var
form=place.lastChild.getElementsByTagName('form')
[0];form.aluno.value=localStorage.username; ..." to place data into
the form also doe not work.....SO I am thinking I have confusion
between the various form (in the TW) ....
I have tried <html><form name="..." and also <html><form
id=............ but neither seem to resolve the issue....
How can I uniquely name or label each form, to avoid this
confusion ???
Thanks in Advance
Skye
On 13 out, 19:15, Eric Shulman <[email protected]> wrote:
> > 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='
> > ...
> > if(year<2012){alert ("data se parece errada - antes de
> > hoje!!");this.form.date.focus();return;}
> > ...
> > '></form> . just cant get to see those alerts!!!!
>
> You need to explictly return a FALSE to prevent the form from being
> submitted (the GET processing)... not just:
> return;
> ...but:
> return false;
>
> That should prevent the FORM handling from continuing after the alert
> is triggered.
>
> -e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.