I don't know much about activex either - you might have to write a different one for each browser as well.
I am experiencing a problem which no doubt someone else has come across before but I cant work out for the life of me what the deal is with it.
I have included code below for an onload function and its call that enables me to be able to call multiple functions on-load. There are two at the moment, one that calls the current date and time and puts it in a div and another that "refreshes" an AJAX call and places content in yet another div.
The problem that I am having is that although both functions are being called (the second one is made in another script using a version of the same function call), only the second one is actually producing visible content (in this case a text field). However if I alert a message between the function calls both bits of content are produced as expected.
function callOnLoads(pageFunction1, pageFunction2, var1, var2)
if (pageFunction1 == "getCurDateTime")
//var 1 in this case is the dirToUse variable and var 2 is the userID if (pageFunction2 == "addDocType")
addDocType("addTypeDiv", "", "", var1, var2);
The function call is made from a PHP script and the JS definition is held in a JS file.
Anybody have any ideas about this? Im guessing its something to do with the speed of execution given that if I halt it with an alert it then works!
I've taken two dropdown(select) in ASP.NET and filling first dropdownlist with CityNames and second dropdown with LocationName accordingly CityName. So i've taken an array in the array i'm having name of locations but i also want to store Location ID's for further searching.