I can't get the following working on Chrome. It works on Firefox and IE (even without the 3rd argument-this-to raiseEvent). I have narrowed it down to something to do with the call to raiseEvent (or the raiseEvent code which I have also included) because if you substitute it with an alert, there is no problem.
<form action="projects.php?" method="post" name="mainForm">
<select name="dllSelectedProject" id="dllSelectedProject" onchange="raiseEvent('SelectProject','0',this);">
<option value="0"> Select a Project </option>
<option value="185">jljkljkl</option>
<option value="184">tyutyu</option>
<option value="183">werwe</option>
<option value="177">ffg2</option>
<option value="178">ouy</option>
</select>
Here's the raiseEvent code.....
function raiseEvent(ievent, iargument, elem)
{
if(elem)
clickedElement = elem;
if(clickedElement == null)
{
if(timeoutID != "")
clearTimeout(timeoutID);
timeoutID = setTimeout("raiseEvent(\'" + ievent + "\', \'" + iargument + "\')", 50);
return;
}
var name = "";
try {
name = clickedElement.name.split("_");
}
catch (e)
{ }
var groupName = "";
if(name.length > 1)
groupName = name[1];
//alert(groupName);
clickedElement = null;
//alert(window.ValidatePage != null);
if (window.ValidatePage && (iargument == "" || iargument == "undefined"))
{
if(!ValidatePage(groupName))
return false;
}
document.%s.__EVENT.value = ievent;
document.%s.__ARGUMENT.value = iargument;
document.%s.submit();
}
The switch statement for satisfying the option SelectProject is (just a skeleton of the whole statement):
switch($_PAGE->Event) {
case "AddURLtoProject":
.
.
break;
case "SelectProject":
.
.
.
break;
.
.
break;
}
Any help will be greatly appreciated.


LinkBack URL
About LinkBacks



Reply With Quote
