NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jorgemir on April 25, 2011, 04:21:47 PM

Title: Validate onclick calling a popup how?
Post by: jorgemir on April 25, 2011, 04:21:47 PM
I need to fire some code on server onclick a butto who calls a popup. As I see in your reply to other post, this is not possible. as I understand, the onclick goes direct to the url or the procedure called. Where do I can put this code in order to fire exactly before the procedure is called?
Thanks
Jorge
Title: Re: Validate onclick calling a popup how?
Post by: Bruce on April 25, 2011, 11:17:18 PM
The popup is called by the _browser_. In other words the user clicks on the button, the popup shell opens (that's all done in the browser) then the browser sends a request to the server to populate the contents of the popup.

In other words, you can't run code on the server "immediately before the popup is called" because the first time the server is aware of the click is _when_ the popup is called.

Cheers
Bruce
Title: Re: Validate onclick calling a popup how?
Post by: kevin plummer on April 26, 2011, 02:42:25 PM
You can run some code at the start of the pop-up procedure. Pass a parameter to trigger the code you want to run.