Click here to Skip to main content
15,924,581 members
Home / Discussions / Web Development
   

Web Development

 
GeneralJavascript Form Function Help Needed Pin
angelina_jolie9-May-05 20:37
angelina_jolie9-May-05 20:37 
Hi there, I am trying to create an Order form but am having problems.

The Form has two submit buttons.
One submit button is for previewing and the other is to basically continue. I can succesfully allow users to click either submit button to be forwarded to the corresponding page but what I cant seem to do is create alert boxes that STOP the user from submitting any of the submit buttons if some fields have not been filled out.

My code has the alert functions applied to each field and an alert box does show if a field is missing but it also loads the correspondin page, which I dont want it to. Confused | :confused:

Any help would be greatly appreciated.

Thanks
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 20:59
Yulianto.9-May-05 20:59 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 21:08
angelina_jolie9-May-05 21:08 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 21:14
Yulianto.9-May-05 21:14 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 21:53
angelina_jolie9-May-05 21:53 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 22:08
Yulianto.9-May-05 22:08 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 22:11
angelina_jolie9-May-05 22:11 
GeneralRe: Javascript Form Function Help Needed Pin
DavidNohejl10-May-05 0:01
DavidNohejl10-May-05 0:01 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.10-May-05 17:00
Yulianto.10-May-05 17:00 
GeneralDetermining the size of the pop window Pin
govann8-May-05 23:17
govann8-May-05 23:17 
GeneralRe: Determining the size of the pop window Pin
JKroschel9-May-05 6:01
JKroschel9-May-05 6:01 
GeneralFlash game in 4 days help Pin
monageasmear8-May-05 0:24
monageasmear8-May-05 0:24 
GeneralRe: Flash game in 4 days help Pin
MoustafaS9-May-05 9:43
MoustafaS9-May-05 9:43 
Generalreatime format/parse of <TEXTAREA> in JScript Pin
scorpion6666-May-05 12:53
scorpion6666-May-05 12:53 
GeneralAllwebMenus Pin
Alice-fido6-May-05 8:29
sussAlice-fido6-May-05 8:29 
GeneralNesting divs Pin
benjymous6-May-05 2:16
benjymous6-May-05 2:16 
General&lt;li&gt; Tag Pin
Bassam Abdul-Baki6-May-05 2:11
professionalBassam Abdul-Baki6-May-05 2:11 
GeneralCustom DataGrid Pin
soundappan6-May-05 0:25
soundappan6-May-05 0:25 
Generalhelp me... Pin
Mahesh16795-May-05 21:06
Mahesh16795-May-05 21:06 
GeneralRe: help me... Pin
Dan_P5-May-05 23:09
Dan_P5-May-05 23:09 
GeneralRe: help me... Pin
JKroschel9-May-05 6:39
JKroschel9-May-05 6:39 
GeneralWeb service Pin
skrishnasarma5-May-05 17:59
skrishnasarma5-May-05 17:59 
GeneralASP web sites on an XP box Pin
paixtis5-May-05 4:16
paixtis5-May-05 4:16 
GeneralRe: ASP web sites on an XP box Pin
ddesi161276-May-05 13:04
ddesi161276-May-05 13:04 
GeneralRe: ASP web sites on an XP box Pin
JKroschel9-May-05 6:07
JKroschel9-May-05 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.