Hello All:
I am creating a prototype in HTML and I am trying to use Javascript to simulate a function. The Javascript is simply loading another page, depending on what the user selects in my form.
The code below works *perfectly* in IE 5.5, but won't work at all in our "flavor" of NN 4.08:
Any assistance will be greatly appreciated!
Sincerely,
Bob
I am creating a prototype in HTML and I am trying to use Javascript to simulate a function. The Javascript is simply loading another page, depending on what the user selects in my form.
The code below works *perfectly* in IE 5.5, but won't work at all in our "flavor" of NN 4.08:
Code:
<script type="text/javascript" language="JavaScript">
function GoToSelectedWindow()
{
formObj = document.PES_Form;
if ( formObj.ParcelElementSelect.value == "4" )
{
location.href = "LetterMatrix.html"
}
if ( formObj.ParcelElementSelect.value == "6" )
{
location.href = "AppraisalEntryForm.html"
}
if ( formObj.ParcelElementSelect.value == "9" )
{
location.href = "LetterMatrix.html"
}
if ( formObj.ParcelElementSelect.value == "10" )
{
location.href = "TabEntryForm.html"
}
}
</script>
<FORM name="PES_Form" id="PES_Form">
Select an element to add<select name="ParcelElementSelect">
<option value="1" SELECTED>Please select an element to add</option>
<option value="2">Cover Page</option>
<option value="3">Portfolio Commentary Tab</option>
<option value="4">Portfolio Commentary</option>
<option value="5">Appraisal Tab</option>
<option value="6">Appraisal</option>
<option value="7">Facts & Opinions Tab</option>
<option value="8">Facts & Opinions</option>
<option value="9">Putnam Update</option>
<option value="10">Blank Tab</option>
</select>
<input type="button" name="SubmitButton" value="Submit" onclick="GoToSelectedWindow()">
Sincerely,
Bob