473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

scubak1w1
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_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
  1. //JS
  2. //...
  3. document.getElementById('query_execute_icon').innerHTML = xmlHttp.responseText;
  4. //...
  5.  


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]
Apr 1 '08 #1
3 1453
woops... forgot the bit of PHP that changes the query submit DIV via the xmlHttp.responseText

[PHP]
/* few other changes */

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

//the 'return'
print $output;
[/PHP]
Apr 1 '08 #2
drhowarddrfine
7,435 Expert 4TB
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.
Apr 1 '08 #3
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! :-)
Apr 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Boris | last post by:
Please open http://www.highscore.de/opera/floatleft.html in Opera 7.54 and Firefox 1.0 Preview. Who is right? In my humble opinion Opera 7.54 is right: According to CSS 2.1 a "floating box must...
36
by: Unknown User | last post by:
Opera 8 has just been released earlier this week and has had an amazing return with over 600,000 downloads the first day. Opera Internet Suite's CEO says he will swim from Norway to the USA if in...
2
by: Sharon | last post by:
Can I use request.servervariables("HTTP_USER_AGENT") to determine if the user has Firefox or Internet Explorer? Is the return string differentiated enough? Thanks for any input.
12
by: Jim Tome | last post by:
Hi, I am trying to change and pass the value of a hidden input type on a form tag to a cgi processing script based on the value of a checkbox within the form: function CheckBoxes () { if...
12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
4
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form...
6
by: jackfoust | last post by:
I'm trying to POST from a form a simple username and password onto another website. Firefox and Opera post the data and results are returned successfully. The site returns "missing user id and...
6
by: raknin | last post by:
I am creating a dynamic list on the server using php file,when I run the PHP script in all 4 browsers (IE 6, Firefox 2, opera and safari 3) every think go Ok and the list is created. but when I call...
40
by: Jukka K. Korpela | last post by:
My basic style sheet has a distinctive background and border for forms, to make the structure clearer and to make it visually evident what belongs to a form. However, as people complained that...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.