This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Jquery Event Sequence

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Good Day!
Can anybody give me some advice on my problem below.
Its on the chaining of events that I cannot make things work. I used form plugin for passing ajax to my Spring 2.5 Controller

My problem is in this line


When the JSON response return with success, I am showing a jquery UI dialog. Now my problem is, all other
events happen at the same time.
What I want is to have each function run after the completion of the other.
Say, the events will be like this:

1. Display the message.
2. User click OK then
3. Disable other forms
4. Some gui update (changeQualStatus)

I am not able to code at the CLOSE event of the jquery ui dialog since I made it a global function that displays any message pass to it.

Sorry for the lengthy code but I already strip out many of it to make it readable.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you made the function that disallows what you're trying to do can't you make a function that does?
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If you made the function that disallows what you're trying to do can't you make a function that does?



Hi David, this really makes sense.

I should poke myself with this.

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic