| Author |
Ajax, Struts, and a few pesky event based issues
|
Terri Layman
Greenhorn
Joined: Nov 03, 2008
Posts: 25
|
|
I'm working on a webform that uses Struts and Ajax to prepopulate much of the data based off an ID number supplied by the user.
It works absolutely perfectly in IE.
It doesn't even think about firing the AJax calls (fired in an OnBlur() of the text box for the last part of the ID) in FireFox.
Am I missing something here?
I thought onBlur() was cross browser supported.
Similarly, I have two dependant drop downs. The second one is supposed to populate based on an onChange() of the first.
That's not working either in FireFox, but is perfect in IE.
Any thoughts about what might be wrong?
Thanks,
-Terri
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
Well, inspecting your code I see that...
Oh wait! No code!
Seriously, you'll need to show us your code. How else can we even venture a guess? Please be sure to use code tags.
It sounds likely that you are using proprietary IE script rather than coding to standards.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Terri Layman
Greenhorn
Joined: Nov 03, 2008
Posts: 25
|
|
Here's my code for that page. Sorry I didn't include it earlier.
First the main page. (rmaInit.jsp)
And here's ajaxObject.js, just in case you need to reference it.
Thanks!
-Terri
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
well I am not going to go through all of that code, but I have a feeling that id != name
Eric
|
 |
Sean Clark
Rancher
Joined: Jul 15, 2009
Posts: 377
|
|
It's reasons like this I am thankful for Javascript libraries, JSON, forEach loops and css classes.
|
I love this place!
|
 |
 |
|
|
subject: Ajax, Struts, and a few pesky event based issues
|
|
|