NetTalk Central

Author Topic: NetWebForm: Calling javascript after PostUpdate  (Read 2956 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
NetWebForm: Calling javascript after PostUpdate
« on: October 28, 2011, 03:32:24 AM »
Hi,

I want to call some javascript code after the call to the PostUpdate routine in a NetWebForm. I put some code after the call to ntd.save(event) in the onclick event of the 'Save' button but it gets called before the call to the PostUpdate routine. How can I call some javascript code that gets executed after PostUpdate has finished?

Regards,
Ubaidullah Nubar.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebForm: Calling javascript after PostUpdate
« Reply #1 on: October 29, 2011, 03:49:42 AM »
Context will matter quite a lot here,
but I'm assuming you're  in popup mode here,
in which case, in the Post Update embed put;

p_web.Script('whatever;')

Cheers
Bruce

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: NetWebForm: Calling javascript after PostUpdate
« Reply #2 on: October 30, 2011, 06:03:44 AM »
Thanks. That worked well.