HighDots Forums  

multiple calls to scripts with onSubmit

Javascript JavaScript language (comp.lang.javascript)


Discuss multiple calls to scripts with onSubmit in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CharitiesOnline.co.uk
 
Posts: n/a

Default multiple calls to scripts with onSubmit - 09-26-2003 , 08:57 AM






Hello,
I am not very knowledgeable about javascripts, but I have a problem, I need
to run a basic form checking script on several pages, but as I am already
running 2 scripts when I submit the form I dont know if I can also run a
third?
at the moment my line reads:
<form action="<%=MM_editAction%>" method="post"
enctype="multipart/form-data" name="form1"
onSubmit="checkFileUpload(this,'GIF,JPG,JPEG,BMP,P NG',false,'','','','','','
','');return document.MM_returnValue">

This works splendidly, however as I said I also need to ensure that certain
form fields are filled in!
How can I call a third script ? If I try adding :

onSubmit="checkFileUpload(this,'GIF,JPG,JPEG,BMP,P NG',false,'','','','','','
','');MM_validateForm('LastName','','R','FirstName ','','R','CustomerEmail','
','R','BillingAddress','','R','BillingCity','','R' ,'BillingStateOrProvince',
'','R','BillingPostalCode','',
'R','BillingCountry','','R','BillingPhoneNumber',' ','R','ShipLastName','','R
','ShipFirstName','','R','ShipAddress','','R','Shi pCity','','R','ShipStateOr
Province','','R','ShipPostalCode','','R','Statemen tAccepted','','R');return
document.MM_returnValue">

The last script, the form checker wont run at all? (Ps the script form
checking the form works well if I remove the call to one of the other 2
scripts) So it doesnt seem to want to run more than 2 scripts via onSubmit!

Please help,
Joe



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.