billy_111 — 2010-04-14T16:29:46-04:00 — #1
I was wondering if anyone knows why i have a page load issue here: http://www.loumolloy.com/testing2.php
On page load you will see a popup, if on the popup you click next it should take users to "Step 2" but what happens is that the page reloads and you stat on the same page..
paul_wilkins — 2010-04-14T17:58:08-04:00 — #2
That is the default action that is occurring (of submitting the form) that you need to prevent.
The default action is prevented by returning false to the onclick event.
Alternatively you should not use a type of submit, and could use a type of button instead.
billy_111 — 2010-04-14T18:02:11-04:00 — #3
I tried with the return false method and it worked..