This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery 1.7.2 to 1.8.2

 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following js code works fine with jQuery 1.7.2 but the last servlet never gets requested when using jQuery 1.8.2

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing how any of this is wired, hard to say. But it looks like there may be a problem on line 16.
 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Without knowing how any of this is wired, hard to say. But it looks like there may be a problem on line 16.


I moved the last function call to document ready script and it works okay now. I don't know if this is correct or not. It was like the form loaded before the content was ready.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anything that references the DOM must wait until the ready handler to execute. (Or some people place the scripts at the bottom of the body.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic