NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Ubaidullah on October 28, 2011, 03:32:24 AM

Title: NetWebForm: Calling javascript after PostUpdate
Post by: Ubaidullah 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.
Title: Re: NetWebForm: Calling javascript after PostUpdate
Post by: Bruce 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
Title: Re: NetWebForm: Calling javascript after PostUpdate
Post by: Ubaidullah on October 30, 2011, 06:03:44 AM
Thanks. That worked well.