regular form submit/ javascript not working on 2nd page.

3 views
Skip to first unread message

joelkeepup

unread,
Dec 15, 2009, 7:15:04 PM12/15/09
to iPhoneWebDev
Hi, I need to do javascript on my 2nd form, I noticed this:

http://groups.google.com/group/iphonewebdev/browse_thread/thread/c412918ec4f7e294/446fb9650684853e?lnk=gst&q=javascript+not+working#446fb9650684853e

I have a login form, and after I login, it takes my users to another
form where they fill it out, on the 2nd form, there is some javascript
to dynmaicly show some fields based on choices the user makes. Today
after the user logs in this javascript doesnt work, but if I refresh
the page, it works fine.

So my question, if javascript doesnt work on 2nd page, is there a way
I can force the first login page to do a regular submit vs the ajax
submit? My users dont need to login that often, but I need the 2nd
page to work properly.

thanks
Joel

Remi Grumeau

unread,
Dec 15, 2009, 7:51:48 PM12/15/09
to iphone...@googlegroups.com
i think adding target="_self" to your submit button could do the trick

Remi

--

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




Remi Grumeau
(+33) 663 687 206

joelkeepup

unread,
Dec 15, 2009, 8:56:08 PM12/15/09
to iPhoneWebDev
that worked, thanks!
Joel

On Dec 15, 7:51 pm, Remi Grumeau <remi.grum...@gmail.com> wrote:
> i think adding target="_self" to your submit button could do the trick
>
> Remi
>
> Le 16 déc. 2009 à 01:15, joelkeepup a écrit :
>
>
>
> > Hi, I need to do javascript on my 2nd form, I noticed this:
>
> >http://groups.google.com/group/iphonewebdev/browse_thread/thread/c412...
>
> > I have a login form, and after I login, it takes my users to another
> > form where they fill it out, on the 2nd form, there is some javascript
> > to dynmaicly show some fields based on choices the user makes. Today
> > after the user logs in this javascript doesnt work, but if I refresh
> > the page, it works fine.
>
> > So my question, if javascript doesnt work on 2nd page, is there a way
> > I can force the first login page to do a regular submit vs the ajax
> > submit? My users dont need to login that often, but I need the 2nd
> > page to work properly.
>
> > thanks
> > Joel
>
> > --
>
> > You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
> > To post to this group, send email to iphone...@googlegroups.com.
> > To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/iphonewebdev?hl=en.
Reply all
Reply to author
Forward
0 new messages