@
@sh
Can anyone help out here please, we have a button that when pressed will
alert the user, should they cancel no action is taken, however should they
confirm, the script will disable the button and then submit the form...
Could someone correct this lump of code for us pleaseeeeeeee ;o)
<input name="Submit" type="button" class="EmployerPostJobForm" value="
Verify Job " id="mFormSubmit" onClick="if(confirm('You are about to verify
this job, doing this will put the job live on the site and it will be
removed from this section of the site and moved to the edit jobs pages. It
will also email all candidates that are interested in this kind of job, are
you sure you wish to continue?'))return document.Verify<%= TheFormCounter
%>.mFormSubmit.disabled = true;document.Verify<%= TheFormCounter
%>.Submit();else return false;">
If we simply disable the button it works fine, however if we then try to
append onto that the form submitting action, or infact any other action, it
doesn't like it - so we're having difficulties making the result of the
Confirm action two Javascript tasks.
Many thanks
Cheers, @sh
alert the user, should they cancel no action is taken, however should they
confirm, the script will disable the button and then submit the form...
Could someone correct this lump of code for us pleaseeeeeeee ;o)
<input name="Submit" type="button" class="EmployerPostJobForm" value="
Verify Job " id="mFormSubmit" onClick="if(confirm('You are about to verify
this job, doing this will put the job live on the site and it will be
removed from this section of the site and moved to the edit jobs pages. It
will also email all candidates that are interested in this kind of job, are
you sure you wish to continue?'))return document.Verify<%= TheFormCounter
%>.mFormSubmit.disabled = true;document.Verify<%= TheFormCounter
%>.Submit();else return false;">
If we simply disable the button it works fine, however if we then try to
append onto that the form submitting action, or infact any other action, it
doesn't like it - so we're having difficulties making the result of the
Confirm action two Javascript tasks.
Many thanks
Cheers, @sh