SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru james_littler's Avatar
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    775
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    aspx and js dynamic quote form

    Hi cheers for having a look.

    Im making a quote form and am trying to make it load the form options dynamicly but i cant get the second drop menu to load the options from the first selection..if ya get me..

    here's the page in question

    here's the code

    Code ASP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     
    <head>
        <title>White Sails - Request a Quote</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="White Sails Bespoke Yacht Sails" />
    	<meta name="title" content="White Sails" />
    	<meta name="rating" content="general" />
    	<meta name="author" content="White Sails Ltd" />
    	<meta name="keywords" content="white sails, whitesails, white-sails, white, sail makers, sailmakers, sails, spinnaker, furling genoa, fully battened, dacron, cruise laminate, tri radial, laminate, storm sails, racing sails, cruising sails, gennaker, sail products, sail accessories, sail making, sail repairs, reconditioned sails, sails, white sails, dinghy sails, jib sails, racing sails, boat sails, race sails, sailboat sails, genoa sails,  custom sails, sails new, sails repair, quality sails, cruising sails, about sails, buy sails, bay sails, storm sails, kevlar sails, traditional sails, sailing racing, day sails, sailing, dacron sails, mylar sails, cruise sails, dinghy sailing, sails for dinghies, spinnaker sailing, catamaran sails, sailing rigging, cruising sailing, outdoor sails, wind sails, cheap sails, cleaning sails, offshore sails, performance sailing, cruising spinnaker, cruising, cruising sailboat, boat cruising, coastal cruising, cruising boats, performance cruising, blue water cruising, boat racing, dinghy racing, offshore racing, race boat, sailmakers, spinnaker, storm jib" />
     
        <link rel="Stylesheet" type="text/css" href="StyleSheet1.css" />
     
        <script language="JavaScript" src="list.js"></script>
    </head>
     
    <body onload="fillRange();">
    <!--Pre-load-->
    <img src="Images/Page/Corner_TopLeft.png" style="display:none;" alt="Top Left Corner"/>
    <img src="Images/Page/Corner_TopRight.png" style="display:none;" alt="Top Right Corner"/>
    <img src="Images/Page/Corner_BottomLeft.png" style="display:none;" alt="Bottom Left Corner"/>
    <img src="Images/Page/Corner_BottomRight.png" style="display:none;" alt="Bottom Right Corner"/>
    <img src="Images/Nav/NavCentre.png" style="display:none;" alt="Nav Centre"/>
    <img src="Images/Nav/NavLeft.png" style="display:none;" alt="Nav Corner"/>
    <img src="Images/Nav/NavRight.png" style="display:none;" alt="Nav Corner"/>
    <img src="Images/Page/HeaderLeft.png" style="display:none;" alt="Logo"/>
     
    <!--Start of Container-->
        <div id="container">
     
    <!--Start of Header-->
            <div id="header">
     
    		    <div id="headerLeft">
    				<img src="Images/Page/HeaderLeft.png" alt="Header_Left" />
    <!--Start of Top Left Rounded Corner-->
    				<img src="Images/Page/Corner_TopLeft.png" id="tl" />
    <!--End of Top Left Rounded Corner-->
    			</div>
     
    			<div id="headerCentre">
    			</div>
     
    			<div id="headerRight">
     
    				<img src="Images/Page/HeaderRight.png" />
     
    				<object id="banner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="697" height="101" id="movie">
    					<param name="movie" value="Images/Page/banner.swf" />
    					<embed src="Images/Page/banner.swf" quality="high" width="697" height="101" name="movie" type="application/x-shockwave-flash" plug inspage="http://www.macromedia.com/go/getflashplayer" /> 
    			   </object>
    <!--Start of Top Right Rounded Corner-->
    				<img src="Images/Page/Corner_TopRight.png" id="tr" />
    <!--End of Top Right Rounded Corner-->
    			</div>
    		</div>
    <!--End of Header-->	
     
    <!--Start of Nav-->		
    		<div id="nav">
     
    			<div id="navLeft">					
    			</div>
     
    			<div id="navCentre">	
    			    <ul>
    			        <li>
    			        	<a href="index.html">Home</a>
    			        </li>
     
    			        <li>
    			        	<a href="sails.html">Sails</a>
    			            <ul>
    			                <li>
    			                    <a href="coastal.html">Coastal</a>
    			                </li>
    			                <li>
    			                    <a href="performance_cruising.html">Performance Cruising</a>
    			                </li>
    			                <li>
    			                    <a href="bluewater_cruising.html">Blue Water Cruising</a>
    			                </li>
    			                <li>
    			                    <a href="racingsails.html">Racing Sails</a>
    			                </li>
    			                <li>
    			                    <a href="cruising_downwind.html">Cruising - Downwind</a>
    			                </li>
    			                <li>
    			                    <a href="racing_downwind.html">Racing - Downwind</a>
    			                </li>
    			                <li>
    			                    <a href="storm_sails.html">Storm Sails</a>
    			                </li>
    			            </ul>		            
    			        </li>
     
    			        <li>
    			        	<a href="gallery.html">Gallery</a>
    			        </li>
     
    			        <li>
    			        	<a href="quote.html">Request a Quote</a>
    			        </li>
     
    			        <li>
    			        	<a href="contact.html">Contact Us</a>
    			        </li>
     
    			        <li>
    			        	<a href="about.html">About Us</a>
    			        </li>
    			    </ul>	
    			</div>
     
    			<div id="navRight">					
    			</div>
     
    		</div>
    <!--End of Nav-->
     
    <!--Start of Content-->	
            <div id="content">
    	        <h1>Request a Quote</h1>
    	        <p>Fields marked by an * are required</p>
    	        <br />
    	        <br />
    	        <form class="quote" runat="server">
    	        	<fieldset>
        				<legend>Contact</legend>
        				<div id="details">
         					<label for="txtName">Name*<asp:TextBox runat="server" ID="txtName"></asp:TextBox></label>
     
          					<br />
     
    				        <label for="txtContactNumber">Contact No.<asp:TextBox runat="server" ID="txtContactNumber"></asp:TextBox></label>
     
          					<br />
     
          					<label for="txtEmail">e-mail*<asp:TextBox runat="server" ID="txtEmail"></asp:TextBox></label>
     
          					<br />
     
          					<label for="txtYachtType">Yacht Type<asp:TextBox runat="server" ID="txtYachtType"></asp:TextBox></label>
     
          					<br />
     
          					<label for="txtI">I<asp:TextBox runat="server" ID="txtI"></asp:TextBox></label>      					
     
          					<br />
     
          					<label for="txtJ">J<asp:TextBox runat="server" ID="txtJ"></asp:TextBox> </label>
     
          					<br />
     
          					<label for="txtP">P<asp:TextBox  runat="server" ID="txtP"></asp:TextBox></label>
     
          					<br />
     
          					<label for="txtE">E<asp:TextBox runat="server" ID="txtE"></asp:TextBox></label>
     
        				</div>
      				</fieldset>
     
     
      				<div class="clear">
      				</div>
     
      				<br />
      				<br />
      				<br />
     
    	  			<fieldset>
    	    			<legend>Select a product range</legend>
    	    			    <select id="Range" name="Range" onChange="SelectRange();"> 
     
    	    			        <option value="CoastalCruising">Coastal Cruising</option>
    	    			        <option value="PerformanceCruising">Performance Cruising</option>
    	    			        <option value="BlueWaterCruising">Blue Water Cruising</option>
    	    			        <option value="Racing">Racing</option>
     
    	    			    </select>		
     
    	    			<legend>Sail</legend>
    	    			    <select id="Sail" name="Sail" onChange="SelectSail();">   
    	    			    </select>
    	    			<legend>Coastal</legend>
    	    			    <select id="CoastalOptions" name="CoastalOptions" onChange="SelectCoastalOptions();">   
    	    			    </select>
     
    	    			<legend>Material</legend>
    	    			    <select id="Material" name="Material" onChange="SelectMaterial();">   
    	    			    </select>
     
    	    			<legend>SailOptions</legend>
    	    			    <select id="SailOptions" name="SailOptions" onChange="SelectSailOptions();">   
    	    			    </select>
     
    	    			<legend>Class</legend>
    	    			    <select id="Class" name="Class" onChange="SelectClass();">   
    	    			    </select>		
     
    	    		    <legend>Racing Options</legend>
    	    		        <select id="RacingOptions" name="RacingOptions" onChange="SelectRacingOptions();">
    	    		        </select>
    	    	    </fieldset>
     
    	      		<br />
    	      		<br />
     
    				<div class="clear">
    				</div>
     
      				<br />
      				<br />
     
     
     
    			</form>
    	</div>
    <!--End of Content-->
     
    <!--Start of Clear Footer-->
    	    <div id="clearfooter">
    	    </div>
    <!--End of Clear Footer-->	
     
    	</div>
    <!--End of Container-->
     
    <!--Start of Footer-->
        <div id="footer">
    <!--Start of Bottom Rounded Corners-->
    	    <img src="Images/Page/Corner_BottomLeft.png" id="bl" />
    	    <img src="Images/Page/Corner_BottomRight.png" id="br" />		
    <!--End of Bottom Rounded Corners-->
        </div>
    <!--End of Footer-->
     
    </body>
    </html>

    and here's my js

    Code JavaScript:
    function SelectSail(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.Sail);
    addOption(document.drop_list.Sail, "", "Sail", "");
     
    // Populates Second Menu
    if(document.drop_list.Range.value == 'CoastalCruising'){
    addOption(document.drop_list.Sail,"Main", "Main");
    addOption(document.drop_list.Sail,"Furling Genoa", "Furling Genoa");
    addOption(document.drop_list.Sail,"Cruise Chute", "Cruise Chute");
    addOption(document.drop_list.Sail,"Spinnaker", "Spinnaker");
    addOption(document.drop_list.Sail,"Storm Sail", "Storm Sail");
    addOption(document.drop_list.Sail,"Trysail", "Trysail");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising'){
    addOption(document.drop_list.Sail,"Main", "Main");
    addOption(document.drop_list.Sail,"Furling Genoa", "Furling Genoa");
    addOption(document.drop_list.Sail,"Cruise Chute", "Cruise Chute");
    addOption(document.drop_list.Sail,"Spinnaker", "Spinnaker");
    addOption(document.drop_list.Sail,"Storm Sail", "Storm Sail");
    addOption(document.drop_list.Sail,"Trysail", "Trysail");
     
    if(document.drop_list.Range.value == 'Blue Water Cruising'){
    addOption(document.drop_list.Sail,"Main", "Main");
    addOption(document.drop_list.Sail,"Furling Genoa", "Furling Genoa");
    addOption(document.drop_list.Sail,"Cruise Chute", "Cruise Chute");
    addOption(document.drop_list.Sail,"Spinnaker", "Spinnaker");
    addOption(document.drop_list.Sail,"Storm Sail", "Storm Sail");
    addOption(document.drop_list.Sail,"Trysail", "Trysail");
     
    if(document.drop_list.Range.value == 'Racing'){
    addOption(document.drop_list.Sail,"Main", "Main");
    addOption(document.drop_list.Sail,"Genoa", "Genoa");
    addOption(document.drop_list.Sail,"Spinnaker", "Spinnaker");
    addOption(document.drop_list.Sail,"Asymmetric Spinnaker", "Asymmetric Spinnaker");
    }
    }
     
    function SelectCoastalOptions(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.CoastalOptions);
    addOption(document.drop_list.CoastalOptions, "", "CoastalOptions", "");
     
    // Populates Third Box for Coastal
    if(document.drop_list.Sail.value == 'Main'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Sail.value == 'Furling Genoa'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Sail.value == 'Cruise Chute'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Sail.value == 'Spinnaker'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Sail.value == 'Storm Sail'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Sail.value == 'Trysail'){
    addOption(document.drop_list.CoastalOptions,"Standard", "Standard");
    addOption(document.drop_list.CoastalOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.CoastalOptions,"In Mast", "In Mast");
    }
    }
     
    function SelectMaterial(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.Material);
    addOption(document.drop_list.Material, "", "Material", "");
     
    // Populates Third Box for Performance
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Main'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Furling Genoa'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Cruising Chute'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Spinnaker'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Storm Sail'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Trysail'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    // Populates Third Box for Blue Water
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Main'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Furling Genoa'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Cruising Chute'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Spinnaker'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Storm Sail'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Trysail'){
    addOption(document.drop_list.Material,"Dacron", "Dacron");
    addOption(document.drop_list.Material,"Cruise Laminate", "Cruise Laminate");
    }
    }
     
    function SelectClass(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.Class);
    addOption(document.drop_list.Class, "", "Class", "");
     
    // Populates Third Box for Racing
    if(document.drop_list.Range.value == 'Racing' && Sail.value =='Main'){
    addOption(document.drop_list.Class,"Club Racing", "Club Racing");
    addOption(document.drop_list.Class,"Off Shore Racing", "Off Shore Racing");
    addOption(document.drop_list.Class,"Grand Prix Racing", "Grand Prix Racing");
    }
     
    if(document.drop_list.Range.value == 'Racing' && Sail.value =='Genoa'){
    addOption(document.drop_list.Class,"Club Racing", "Club Racing");
    addOption(document.drop_list.Class,"Off Shore Racing", "Off Shore Racing");
    addOption(document.drop_list.Class,"Grand Prix Racing", "Grand Prix Racing");
    }
     
    if(document.drop_list.Range.value == 'Racing' && Sail.value =='Spinnaker'){
    addOption(document.drop_list.Class,"Club Racing", "Club Racing");
    addOption(document.drop_list.Class,"Off Shore Racing", "Off Shore Racing");
    addOption(document.drop_list.Class,"Grand Prix Racing", "Grand Prix Racing");
    }
    if(document.drop_list.Range.value == 'Racing' && Sail.value =='Asymmetric Spinnaker'){
    addOption(document.drop_list.Class,"Club Racing", "Club Racing");
    addOption(document.drop_list.Class,"Off Shore Racing", "Off Shore Racing");
    addOption(document.drop_list.Class,"Grand Prix Racing", "Grand Prix Racing");
    }
    }
     
    function SelectSailOptions(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.SailOptions);
    addOption(document.drop_list.SailOptions, "", "SailOptions", "");
     
    // Populates Fourth Box for Performance
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Main'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Furling Genoa'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Cruise Chute'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Spinnaker'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Storm Sail'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Performance Cruising' && Sail.value == 'Trysail'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    // Populates Fourth Box for Blue Water
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Main'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Furling Genoa'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Cruise Chute'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Spinnaker'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Storm Sail'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
     
    if(document.drop_list.Range.value == 'Blue Water Cruising' && Sail.value == 'Trysail'){
    addOption(document.drop_list.SailOptions,"Standard", "Standard");
    addOption(document.drop_list.SailOptions,"Fully Battened", "Fully Battened");
    addOption(document.drop_list.SailOptions,"In Mast", "In Mast");
    }
    }
     
    function SelectSailOptions(){
    // ON selection of category this function will work
     
    removeAllOptions(document.drop_list.RacingOptions);
    addOption(document.drop_list.RacingOptions, "", "RacingOptions", "");
     
    // Populates Fourth Box for Racing
    if(document.drop_list.Range.value == 'Racing' && Sail.value == 'Main'){
    addOption(document.drop_list.RacingOptions,"#1 Main", "#1 Main");
    addOption(document.drop_list.RacingOptions,"#2 Main", "#2 Main");
    addOption(document.drop_list.RacingOptions,"#1 Jib", "#1 Jib");
    addOption(document.drop_list.RacingOptions,"#2 Jib", "#2 Jib");
    }
     
    if(document.drop_list.Range.value == 'Racing' && Sail.value == 'Genoa'){
    addOption(document.drop_list.RacingOptions,"#1 Main", "#1 Main");
    addOption(document.drop_list.RacingOptions,"#2 Main", "#2 Main");
    addOption(document.drop_list.RacingOptions,"#1 Jib", "#1 Jib");
    addOption(document.drop_list.RacingOptions,"#2 Jib", "#2 Jib");
    }
     
    if(document.drop_list.Range.value == 'Racing' && Sail.value == 'Spinnaker'){
    addOption(document.drop_list.RacingOptions,"All Purpose", "All Purpose");
    addOption(document.drop_list.RacingOptions,"Light Runner", "Light Runner");
    addOption(document.drop_list.RacingOptions,"Heavy Runner", "Heavy Runner");
    addOption(document.drop_list.RacingOptions,"Reacher", "Reacher");
    }
     
    if(document.drop_list.Range.value == 'Racing' && Sail.value == 'Asymmetric Spinnaker'){
    addOption(document.drop_list.RacingOptions,"All Purpose", "All Purpose");
    addOption(document.drop_list.RacingOptions,"Light Runner", "Light Runner");
    addOption(document.drop_list.RacingOptions,"Heavy Runner", "Heavy Runner");
    addOption(document.drop_list.RacingOptions,"Reacher", "Reacher");
    }
    }

    I'd really appreciate any help, advice or suggestions anyone has.

    Thanks
    James

  2. #2
    SitePoint Guru james_littler's Avatar
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    775
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would this do better in the javascript forum? if so could someone move it over as i dont want to double post


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •