View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

If a user double clicks the add or insert button on an insert/update form it adds two

Thread began 1/07/2010 1:34 pm by neil.batchelor254136 | Last modified 5/18/2011 10:25 am by neil.batchelor254136 | 2614 views | 11 replies

neil.batchelor254136

no double click on submit

Thanks Jimmy but none of that worked??

Instead I put this in the form action:

<form action="EATING_PLACES_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm" onsubmit="if (formCheck(this)) { this.elements['Insert'].disabled=true; } else { return false; }">

but this doesn't work either!!???

Does anyone have any ideas please?

Plus how do I string together onsubmit events, it is ok like this:

<form action="LISTINGS_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm" onsubmit="if (formCheck(this)) { this.elements['Insert'].disabled=true; } else { return false; }

&& (using the && to link onsubmit)

WAValidateEL(document.getElementById('WADAInsertForm').VENUE_NAME,document.getElementById('WADAInsertForm').VENUE_NAME.value,'Your Venue Name has an invalid number of characters in entry. The maximum allows is 250 characters.',1,250,'',document.getElementById('WADAInsertForm').VENUE_NAME,0,true);WAValidateEM(document.getElementById('WADAInsertForm').GENERAL_EMAIL,document.getElementById('WADAInsertForm').GENERAL_EMAIL.value,'The general email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').GENERAL_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').GM_EMAIL,document.getElementById('WADAInsertForm').GM_EMAIL.value,'The general manager email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').GM_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').DIR_SALES_EMAIL,document.getElementById('WADAInsertForm').DIR_SALES_EMAIL.value,'The Sales Director email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').DIR_SALES_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').CB_MGR_EMAIL,document.getElementById('WADAInsertForm').CB_MGR_EMAIL.value,'The C&B manager email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').CB_MGR_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL,document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL.value,'The C&B contact email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL,0,false);WAValidateEL(document.getElementById('WADAInsertForm').NEAREST_LANDMARK,document.getElementById('WADAInsertForm').NEAREST_LANDMARK.value,'- Invalid number of characters in entry Nearest Landmark (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').NEAREST_LANDMARK,0,false);WAValidateEL(document.getElementById('WADAInsertForm').SEARCH_PREF,document.getElementById('WADAInsertForm').SEARCH_PREF.value,'There is an invalid number of characters in entry search preference (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').SEARCH_PREF,0,false);WAValidateEL(document.getElementById('WADAInsertForm').PARK_DESC,document.getElementById('WADAInsertForm').PARK_DESC.value,'There is an invalid number of characters in entry park description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').PARK_DESC,0,false);WAValidateDT(document.getElementById('WADAInsertForm').INSERT_DATE,'- You have an invalid insert date. The format has to be yyyy/mm/dd',true,/\b\d{4}\/(1[0-2]|0[1-9])\/([12]\d|3[0-1]|0[1-9])\b/,'yyyy/mm/dd','','',false,/.*/,'','','',document.getElementById('WADAInsertForm').INSERT_DATE,0,true);WAAlertErrors('The following errors were found','Correct invalid entries to continue please',true,document.getElementById('false'),false);WAValidateEL(document.getElementById('WADAInsertForm').LOCATION_DESC,document.getElementById('WADAInsertForm').LOCATION_DESC.value,'There is an invalid number of characters in entry location description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').LOCATION_DESC,0,false);WAValidateEL(document.getElementById('WADAInsertForm').GM_DESC,document.getElementById('WADAInsertForm').GM_DESC.value,'There is an invalid number of characters in entry GM Description(maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').GM_DESC,0,false);WAValidateNM(document.getElementById('WADAInsertForm').PARK_NMBR_SPACES,'The field with the number of parking spaces is invalid.',0,1000000000000,'','','',',.',document.getElementById('WADAInsertForm').PARK_NMBR_SPACES,0,false);WAValidateEL(document.getElementById('WADAInsertForm').CB_DESC,document.getElementById('WADAInsertForm').CB_DESC.value,'There is an invalid number of characters in entry CB description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').CB_DESC,0,false);return document.MM_returnValue">

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...