• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Ajax, Struts, and a few pesky event based issues

 
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
 
Sheriff
Posts: 67390
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
 
author
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
 
Rancher
Posts: 377
Android Spring Java
  • 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.
 
Look ma! I'm selling my stuff!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic