I need to have a checkbox appear on a form already checked. I have the following code:
<tr>
<td>Air Monitoring</td>
<td><input type="checkbox" name="fld22" value="true"></td></tr>
Obviously the code is lacking something...what do I need to add in order for the box to appear checked...
Shoot...that didn't work either. Does it help to know that the error message is: 'myMov' is undefined. This I don't understand, since it clearly is.....does it need to be defined somewhere else?
Thanks, ConeHead....what appears to be a very simple solution isn't working for me. I'm sure it's something I'm doing, as I am SO inexperienced. This is the whole page, minus all of the text...What am I doing wrong?
<table border="0" cellpadding="2"...
Good morning!
I have an swf file that is embedded into an asp. Once it stops its animation, I want the reader of the asp to be able to click a button to "Replay" the animation if they wish. I have no clue how to call this procedure using a button. Any ideas on what code I could use...
This morning, the following script worked perfectly well. I am using within an internet form that is written in VB. Now, when the Submit button is clicked IE 6.0 freezes up. Is it my code, or is it something in the equipment? The "IT" Dept says that they have been making some...
Good morning, jsobo!
Thank you so much for your patience with me on this. I finally got it to work. Everything you told me to do, I had done, so I deleted all validation except for the "Submit Form?" code. I added it back a piece at time and found out it was some mis-coding in the...
Okay...I got rid of the event.returnValue=false and replaced with return false
I revised to: onSubmit='return Validate()'
Now when I click the Submit button, the validations work, but then the form gets sent.
How do I make it stop and ask: "Submit Form?".
I continue to have difficulty with this step and I'm sure there's a way to do it. If at all possible, I don't want the user of this form to see anything other than the box "Submit Form?". Here is part of my code, maybe someone could take a look and tell me where I need to put...
I have incorporated this code (found on Tek-Tips but I can't remember who originated it) into my form and it works well if an invalid address has been entered:
str=form1.Email.value;
filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)!=true)
{...
Thank you for your help with this. I think I just about have it! I am now prompted with a box with OK/Cancel buttons. When Cancel is clicked, another box pops up that simply says "false" and contains OK/Cancel buttons. When Cancel is clicked, I'm returned to the form. Great! But...
At first glance, that seemed simple enough, however, when this form is submitted, the contents are emailed, using this code:
<form action="http://www.MyCompany.com/email.asp" method="post" onSubmit="Validate();" id="form1" name="form1">
<input...
Greetings!
I want to allow users to back out of submitting their form. I have included the following script
f.submit();
return confirm('Submit form?');
This works BUT if the CANCEL button is clicked, the form is submitted anyway. What am I missing?
Thanks!
Christine
Rick... In my last post, I indicated the error I was receiving was: "Expected a curly bracket" - My eyes are bad - it needed a round bracket. I added a round one to even things up and it worked perfectly!!
Thank you ever-so much for your help!
Rick,
Thank you for your help. I am, however, having difficulty - Big Surprise! I get the following error:
Expected "}" on line ___ - The line that contains the code:
if (isNaN(parseInt(numVal)){
I don't understand why it is looking for another one.
Christine
Good morning, Rick!
The information gathered by this form is submitted via email. I "borrowed" this part of the code from another form that we have used to gather information and it does what we need it to do. I am VERY new at this - so there's a great possibility that I'm doing it...
I have 4 checkboxes on a form. If the user checks a box, then there MUST be a number entered its associated textbox. Can anyone help me with the proper syntax for validation?
Here is the code for one of the check/text box combinations:
<TD><INPUT TYPE="checkbox"...
I am new at JavaScript. I have created an asp that our customers will use to obtain an estimate for a service we perform. Data they enter into the form will be submitted to us through email - that part works fine.
The form contains several fields where the user will indicate the number of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.