HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2000, 04:44 AM
Nadia Nadia is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Posts: 4 Nadia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello,

In a form, I have a dropdown list and some images. When the user selects one option from the list or clicks on an image, a hidden field should be loaded. It works fine with Netscape 4.7 but won't work at all with Internet Explorer 5. Any help will be highly appreciated.

I paste the form part of the code generated by my template here:

<SCRIPT language="JavaScript">

<!--
function getit(number) {

document.forms[0].VariationType_kleuren.value = number;
document.forms[0].submit();
return true;
}

function addvalue() {

index = document.forms[0].selectlist.selectedIndex;
number = document.forms[0].selectlist.options[index].value;
document.forms[0].VariationType_kleuren.value = number;
document.forms[0].submit();
return true;
}
//-->

</script>

<FORM ACTION="[actionURL]" METHOD="POST">

Colour:

<SELECT NAME="selectlist" onChange="return addvalue()">

<OPTION VALUE="186" >Antra</OPTION>
<OPTION VALUE="183" >Black</OPTION>
<OPTION VALUE="185" >Bordeaux</OPTION>
<OPTION VALUE="184" SELECTED>Grey</OPTION>
</SELECT>


<a href="#" onClick="getit(186)"><img SRC="[IMGSRC]" alt="Antra" ></a>
<a href="#" onClick="getit(183)"><img SRC="[IMGSRC]" alt="Black" ></a>
<a href="#" onClick="getit(185)"><img SRC="[IMGSRC]" alt="Bordeaux" ></a>

<INPUT TYPE="hidden" NAME="VariationType_kleuren" VALUE="184">

<a href="#" onClick="getit(184)"><img SRC="[IMGSRC]" alt="Grey" ></a>

<br>
<input type="hidden" name="Recalculate">
<br>
<INPUT TYPE="submit" name="Recalculate" value="Update">

</FORM>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > IE won't submit form.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway