I have a form pretty much as below but it only works in IE - not Firefox, Opera, etc
The AJAX changes the query button in non-IE browsers, at least in the sense it is not opaque anymore, the 'title' check changes, etc - it just doesn't "fire" when you click the icon/image in Mozilla, etc but DOES in Internet Explorer...
That is [PHP]if(array_key_exists('_submit_check', $_POST))[/PHP] seems never to be true in non-IE browsers, but works just fine in IE...
Note that I have ANOTHER form on another page where the code below is the same (triple checked side-by-side) BUT it DOES work in Firefox, etc - suggesting that the issue on the page that doesn't work is not in this part of the code... but have no idea where///
So basically - any suggestions on to how to troubleshoot this?? What should I be looking for?
TIA!!
Greg...
--------------------------------------------
[HTML]
<form action="<?PHP print $_SERVER['PHP_SELF']; ?>" method="post" name="data_select">
<input type="hidden" name="_submit_check" value="1" />
<!--- usual form stuff :-) -->
<div id="query_execute_icon">
<img src="images/icon_search2.gif" alt="INACTIVE: Submit Query" title="Select EVERY PARAMETER/s to Allow Query Execution" style="filter:alpha(opacity=35);-moz-opacity:0.35;opacity:0.35" />
<br />
<div style="font-style:italic; font-size:7pt; color:lightgray">
Submit Query
</div>
</div>
[/HTML]
With the div populated by AJAX as follows:
Expand|Select|Wrap|Line Numbers
- //JS
- //...
- document.getElementById('query_execute_icon').innerHTML = xmlHttp.responseText;
- //...
The 'test' in the HTML for the button being pushed is
[PHP]
if(array_key_exists('_submit_check', $_POST))
{//USER SELECTION HAS BEEN MADE
//do the work (sic)
}
[/PHP]