Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax, Struts, and a few pesky event based issues

 
Terri Layman
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Terri Layman
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well I am not going to go through all of that code, but I have a feeling that id != name

Eric
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's reasons like this I am thankful for Javascript libraries, JSON, forEach loops and css classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic