Hi again, that new line still has the same affect. It puts the array values in the select 4, 5 and 6 but then puts blank values in all remaining selects on the form. is there another way to restrict it to just the selects i want?
ok i have adjusted the code slightly and it now correctly updates the 5th, 6th and 7th select items on my form. however, this code is also updating the 8th select item which i do not want it to affect.. rather than putting in actual values into the 8th select it is just removing the default...
ok so just to confirm, the code works but it is applying the rule to the 1st, 2nd and 3rd select items on my form.
at present i would need the rule to apply to the 5th, 6th and 7th select items on my form.
what would i need to change?
would it be..
for(var i = 5; i < sels.length; i++){
or...
if you can get this page functioning where the named radio buttons apply the rule to the 3 selects that would be great!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript">
var FillArray=[]...
also... I do not wish to use the same radio ID's as it invalidates my code, therefore i think we need to change the following:
function init(){
var radios = document.getElementsByName('radiochoice');
for (var i=0; i < radios.length; i++) {
radios[i].addEventListener('click', function(e){...
Hi there, am just trying to edit the code now to apply to my actual website.
The code you produced did not actually specify which <select> items to apply the rule to. On the example page there were no other <select> items but on my actual form there are plenty others.
Therefore this line...
Hi thanks for the response. I know exactly what you are saying. Once my new layout is coded (with the image as the div background) I shall re post my CSS if there are any problems.
it seems as though the div will always zoom into the photo in order for it to fill the space. this of course will distort the image. is the only way around this to make an image which is guaranteed to be wider than any possible div ie 2000px? Would this then only show the visible area if it's...
i am trying to duplicate the layout of this website example
you can see that the image stretches across the width of the page, however, when you right click on the image and choose 'view background image'
here the actual image itself is not the width of the page. therefore i am assuming the css...
there is a small gap underneath an image which i cannot seem to get rid of.
Gap
also i think there is some redundant css in my stylesheet which could be removed. if you can help out with that also would be great.
thanks
page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
Thank you for that. Works great.
Just for the record, the array above FillArray[7]=[8,8,8]; actually shows options 1-7 only in the drop down menu it preifills, however you can just use FillArray[7]=[9,9,9]; to display 1-8.
Hello all
I have some radio buttons that update some drop down menus on my form.
Each radio button has a different value (1-7). The problem I am having is that even when I select radio button 5, it is updating the drop down menus as value 1.
Not quite sure why this is happening. Any help...
Hi, I have tried my best to get this working but I cannot go any further. I have working code on my website but am having difficulty incorporating a new function into the code.
There are 3 files in this project:
global.inc
OneForm.asp
OneForm.js.inc
I have a set of values in global.inc...
I have a function that changes some values in a drop down menu. This is the function:
function Repopulate_DD2(){
var dd2=document.getElementById('DDvehAttr');
dd2.options.length=0;
for(var i=0; i<=AS_Airport.dd2options.length-1;i++){
var optn = document.createElement("OPTION");
optn.text =...
ok, can someone tell me how to do the following:
i have a value called vehAttribIndex and a session called VAindex.
i need to make sure that any new drop down values i create in my function are set to vehAttribIndex and the VAindex session is updated... i think?
function Repopulate_DD2(){
var...
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.