I have to develop code for an image map and pop-up. I have a large image, I want to develop and image map - which I can do with out a problem. The problem that I am having is intergrating the pop up piece. When a user clicks on an area on the image map I need a pop up to appear. Can anyone...
I would like to have an expanding menu on my website, since I got the code from a JS website. The problem is that it works fine in IE but doesn't work at all in Netscape. Here is a sniplet:
in the header:
img1=new Image()
img1.src="/images/fold.jpg"
img2=new Image()...
I have 4 text boxes that I have to also chack for a value (they are not required, but if there is not a value for them when they user hits submit they should be advised that the entire form has not been completed.)
I've tried adding this functionality to this script and keep getting error...
Here's the first part, w/ first question:
<code>
<SCRIPT language=JavaScript>
<!-- Begin
function checkRequired(theForm){
//check ID first
if (theForm.Q15.value.length!=6)
{
alert( "Please enter your six digit ID.");
theForm.Q15.focus();
return false;
}
//ID is OK...
I tried several thing to make this script work, and I just couldn't get it.
I changed this line several times:
for (x=01; x <= 19; x++){
I changed the "1" to "01" because all of the Q#'s are 2 intergers. then I changed the "4" to "19" to reflect the...
i've been trying to figure this our for days now and am super frustrated.
That still doesn't work, the form consists of 14 radio button questions, each with 5 selections (excellent, good, fair, etc) and 4 text field questions (sorry I forgot about these). Does that help? I guess I wasn't very...
hello-someone was helping me with this several days ago but I still can't figure it out. This is what I am trying to do:
I have a form with several radio button type questions. Only one of the fields is required. If any of the not required fields are left blank when the user hits submit they...
It looks like that would work, the problem is that I have a bunch of hidden fields and it is picking those up and requesting a value, Urg!
Any ideas?
Thanks for all of your help!!
It didn't work, this is what I have:
function checkRequired( theForm )
{
var bMissing2 = false;
if ( 0 == theForm.Q15.value )
bMissing2 = true;
if (theForm.Q15.value.length!=6)
{
alert( "Please enter your six digit...
That one worked perfectly, thanks!
in terms of validating the form, I currently have the onsubmit set as follows:
onsubmit="return checkRequired(this)"
How can I implment the script that you provided above:
onSubmit="return checkForm()"
Can I just substitute:
function...
I tried replacing
if ( bMissing2 )
{
alert( "Please enter your six digit ID number.");
with
if (theForm.Q15.value.length<>6)
{
alert( "Please enter your six digit ID number.");
And it did not work, is that what you are...
I am currently using onBlur to make sure that that field is complete, can I add something to this script to check that the ID is 6 digits? Otherwise how would I use 2 onBlur? here is the code:
function checkRequired( theForm )
{
var bMissing2 = false;
if ( 0 == theForm.Q15.value...
i need help with 2 things -
1. i have a a form w/a text field, i want the users input to be 6 characters, no more no less
2. same form, not every field is required but when the user hit submit i want an alert saying that the "entire form has not been completed do you want to proceed...
As usual, my curser jumped all over the place and my message doesn't make any sense. What I was trying to ask was how to link to an audio file from within a web page. I want the user to be able to click on a link then for the audio to play. Can anyone provide direction?
Thanks!!
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.