Why will a form 'trigger' in IE but not in Firefox, Opera, etc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scubak1w1
    New Member
    • Feb 2008
    • 53

    Why will a form 'trigger' in IE but not in Firefox, Opera, etc

    Hello,

    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_ex ists('_submit_c heck', $_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_sele ct">

    <input type="hidden" name="_submit_c heck" value="1" />

    <!--- usual form stuff :-) -->

    <div id="query_execu te_icon">
    <img src="images/icon_search2.gi f" alt="INACTIVE: Submit Query" title="Select EVERY PARAMETER/s to Allow Query Execution" style="filter:a lpha(opacity=35 );-moz-opacity:0.35;op acity: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:

    Code:
    //JS
    //...
    document.getElementById('query_execute_icon').innerHTML = xmlHttp.responseText;
    //...


    The 'test' in the HTML for the button being pushed is

    [PHP]
    if(array_key_ex ists('_submit_c heck', $_POST))
    {//USER SELECTION HAS BEEN MADE
    //do the work (sic)
    }
    [/PHP]
  • scubak1w1
    New Member
    • Feb 2008
    • 53

    #2
    woops... forgot the bit of PHP that changes the query submit DIV via the xmlHttp.respons eText

    [PHP]
    /* few other changes */

    $output = "<input type=\"image\" value=\"search\ " name=\"query_wi th_parameters\" src=\"images/icon_search2.gi f\" alt=\"Submit\" title=\"Return Data, from/with selected parameter/s selection\" class=\"toggleo pacity\" />";
    $output .= "<br />";
    $output .= "<div style=\"font-style:italic; font-size:7pt\"><br />Submit Query</div>";

    //the 'return'
    print $output;
    [/PHP]

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      The only thing I can think is there could be an inconsistency between what IE is getting and what the modern browseres are getting. I know there are differences in xmlhttprequests , but you should ask about this in the PHP or javascript boards cause I don't see any problem with the html.

      Comment

      • scubak1w1
        New Member
        • Feb 2008
        • 53

        #4
        thank you... I just posted a (fuller) post in the PHP forum... this is one of those things where you forehead gets flatter and flatter as you pound it against the desk! :-)

        Comment

        Working...