aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax, Struts, and a few pesky event based issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax, Struts, and a few pesky event based issues" Watch "Ajax, Struts, and a few pesky event based issues" New topic
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: 60057
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 15376
    
    6
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax, Struts, and a few pesky event based issues
 
Similar Threads
Javascript input text event
Ajax, autocomplete and JavaScript (or CSS)
Struts2.0 not working in IE
Java script problem in firefox
Ajax and Client side Form validation