1

The simple javascript form onsubmit has 2 handles?

 2 years ago
source link: https://www.codesd.com/item/the-simple-javascript-form-onsubmit-has-2-handles.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The simple javascript form onsubmit has 2 handles?

advertisements
<FORM name="form1" class="input" ACTION="<%WWW.CURRENTURL%>" METHOD=POST NAME=APPLFORM onsubmit="return Submitform(this) & return checkform(this);">

Can I use "&" to run 2 functions in ONSUBMIT in the FORM tag? will above work? sorry, my dev area limits me from running the code.

basically, Submitform(this) checks to make sure the disclaimer checkbox is check and checkform(this) executes the captcha.

any advice, input, help is greatly appreciated. thanks and happy 4th!!!


You should be able to just run it as if it was JS code.

onsubmit="Submitform(this);return checkform(this);"

Related Articles

javascript intercepted form onsubmit has no return value

Given a Form element (in Chrome 53) that looks like this : <form name="testForm" onsubmit="return onSubmit(event);"> <p>Test OnSubmit Hijack</p> <input type="Submit" value="Submit" /> </fo

The simple Javascript function does not work on the .ascx file

I am trying to make a simple javascript function work in the .ascx file in my asp.net and vb.net application. I have included the following html code inside the asp panel tag. <div class="inline" > <asp:CheckBox ID="tick" runa

the simplest javascript form validation question ever

I have a form with a name and an email address. I want a simple icon to appear to the right of the form if the user types anything in the field, even one character. If there is anything present in the field, I want the success icon to appear. If the

The HTML / Javascript form is automatically reset

I'm writing javascript that takes in a form and prints it as a "verification" to 'id="printpeople"'. And it works, but after about three seconds, the form refreshes itself, and so does the p tag. The page doesn't seem to refresh itself

What is the simple Javascript equivalent of .each and $ (this) when used together as in this example?

What is the plain Javascript equivalent of .each and $(this).find when used together in this example? $(document).ready(function(){ $('.rows').each(function(){ var textfield = $(this).find(".textfield"); var colorbox = $(this).find(".box&qu

Html5 validation error on the simple javascript pull-down menu

I have a simple javascript dropdown menu that I'm getting an HTML5 validation error. The error is "Bad value goto(this); for attribute onchange on element select: identifier is a reserved word." Can anyone help me out with what to change in the

The simple javascript increment does not work? (In fact, Protractor's problem is not javascript)

simple JavaScript counter is not working. I am using JavaScript within protractor (angular testing framework) but I don't think it's the protractor issues but JavaScript issues. I thought that I can do this: (pseudo code actual code is the one below)

The simple HTML form with the Select disabled option is allowed to submit in Chrome and IE. Works well in Firefox

I have a simple HTML form that submits to another page. Select options are being used with one being 'disabled' and 'selected'. In Chrome and Internet Explorer this form is allowed to be submitted, but in Firefox it works correctly and tells me to se

The simple javascript in Safari will not work

I have the following javascript that works on Firefox, IE, iPhones and iPads, but I can't get it to work on Safari... its very simple! jQuery(window).ready(function(){ alert('hi'); }); What am I doing wrong? There are no errors in the console. Origin

The simple contact form will not work - php

Again - I've looked and troubleshooted for about an hour and cannot get the php contact form to work. I get the "Thank you!" email, but I haven't received the email to my inbox ever. I've done it about 20 times. <div class="container&quo

The simple javascript function does not work in IE7

Code works across all major browsers, but firing a simple alert on click is not working. This is in my header <script type="text/javascript"> function this_function() { alert("got here mango!"); } </script> This is in the b

How to update mysql by using an edit button that would send the current data in the simple CMS forms I did

I am trying to update the values in my database using an edit button. However, I cant figure out how to do it. I cant figure out how to do it, My goal is that When i press the Edit button of the selected product in inventory.php, it would redirect to

The simple AngularJS form is not defined in Scope

I'm starting to play around with AngularJS forms in jsfiddle and I've come across a problem already where a very simple form example is not working as expected. All I have is a named form and it's not showing up in scope for some reason (I'm expectin

The simple PHP form does not work

I´m trying to make a form that works. I´m using codeigniter, the view has this form: <form class="renuncia_form" action="/formulario/send_form" method="post"> <p> <label for="nombre">Nombre y apell

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK