NetTalk Central

Author Topic: Validate onclick calling a popup how?  (Read 3376 times)

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Validate onclick calling a popup how?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Validate onclick calling a popup how?
« Reply #1 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Validate onclick calling a popup how?
« Reply #2 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.