Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Why does this JQuery fire in Chrome but not IE?

Head out to this page: https://deaconess_spouse.ezonlineregistration.net/

You don't have to add any data, just click on "Verify." You should get an alert that says, "Hello, Jenny!" It works in Chrome, but not in IE.

Why? What do I need to improve?

Thanks!
Avatar of zephyr_hex (Megan)
zephyr_hex (Megan)
Flag of United States of America image

what version of IE ?  It works for me in IE 11
Have you checked F12 developer tools in the IE browser that isn't working for you?  Are there any errors on the console tab?
no difference...
I can see "hello Jenny" in both...

check your IE, Ctrl+F5
and make sure you dont run it on downgraded/restricted mode (check emulation on debug window, press F12 to see debug window)
Avatar of Bruce Gust

ASKER

Guys, here's the problem:

Yesterday a user called in and complained that her interface wasn't working. The frustrating thing is that it's working just fine on this end.

We were able to locate a problem with the data, but even after that was fixed she would go to click on a button and the screen would do nothing. Mind you, we could click on it on this end and the query would not only work, it would also retrieve the info.

We're at a point now where the button works (not sure why) but the answer that comes back says there's no matching rows.

I'm dumbfounded.

On thing I though I could do is see if I couldn't intercept that data before it's sent to the server just to make sure that the correct data is being sent.

I tried this:

$(document).ready( function() {
		$('#findPortalUser').click( function(event){
			
			event.preventDefault();
			
			if (validateForm()) {
				$("#verify_form").hide();
				
				var out = {
					'usrDOB' : $('#usrDOB').val(),
					'usrEEID' : $('#usrEEID').val(),
					'empPID' : 7542,
					'displayLinks' : $('#displayLinks').val()
					};
			alert(out);
			}
		});
		

Open in new window


...and I get an alert that says "object Object."

I realize I'm changing the direction of the question a little bit, but if you could help me with this code, I think it will help identify first whether or not my user's computer is sending the right info to the server.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, guys!

I'll go ahead and close this question as you have answered brilliantly and I've been able to see what's being posted both in my console as well as in the context of an alert.

The problem that I'm trying to solve still persists, however, in that I can retrieve a record with no problem. The users on the other end, however, have a problem in that initially the "verify" button did nothing. Once we got past that hurdle (I simply copied and pasted so code from the working page), now there's data being posted to the database, but it keeps coming back as "not found."

I don't understand how the same code querying the same database can come up with two different scenarios.

Again, thanks for your help. If you have any suggestions or feedback, please shoot it my way. Frankly, I'm out of ideas...
We'd need more details about what is being "posted to the database", how that is being done, and what returns "not found" (SQL doesn't return that type of message, so something else must be)