Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Ajax, Struts, and a few pesky event based issues

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67601
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's reasons like this I am thankful for Javascript libraries, JSON, forEach loops and css classes.
reply
    Bookmark Topic Watch Topic
  • New Topic