Hello everyone/anyone,
I am trying to put chained selects menu within a modal window. I have succeeded in doing this, but the problem is, the page I'm trying to implement them on has 4 different modal windows, each with it's own separate chained menu.
I have the page linked to the .js file:
HTML Code:<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script> <script language="javascript" src="chainedselects.js"></script> <script language="javascript" src="exampleconfig.js"></script>
I have the body onLoad function, which I believe is correct:
(listing is only for 2 lists)HTML Code:<body onLoad="initListGroup('headtorx', document.forms[0].make, document.forms[0].type, document.forms[0].model, document.forms[0].measurement, document.forms[0].SizeDrive); initListGroup('headhex', document.forms[0].make1, document.forms[0].type1, document.forms[0].model1, document.forms[0].measurement1, document.forms[0].SizeDrive1);">
and in the config.js file, these are the starts, as the whole code is rather extensive:
Code:addListGroup("headtorx", "head-type"); addList("head-type", "Select a head type", "", "dummy-type", 1); addList("head-type", "Button Head", "Button Head", "Button Head"); addList("head-type", "Flat Head", "Flat Head", "Flat Head");
and:
I initially had the config.js files separate, as they were used on different pages just to test.Code:addListGroup("headhex", "hexhead-type"); addList("hexhead-type", "Select a head type", "", "dummy-type", 1); addList("hexhead-type", "Button Head", "Button Head", "hexButton Head"); addList("hexhead-type", "Flat Head", "Flat Head", "hexFlat Head");
They were named config_torx and config_hex.
Now, I need to put them on the same page as separate modal windows.
The Torx menu works, but the Hex does not. It only shows a blank window.
Can anyone help.
Thanks in advance.
Andy



Reply With Quote


Bookmarks