NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on March 26, 2013, 05:32:14 PM

Title: How to post a message to user from a browse page?
Post by: Djordje Radovanovic on March 26, 2013, 05:32:14 PM
I have a browse page with "other" button as a colon in a browse. When user push the button I have to check if action is possible and if it is not possible to notify user and return to browse. If action is possible I have some job to done and return to the browse with refresh option.

Normally in desktop application it is peace of cake but here I am out of the game. I tried with jQuery but obviously my knowledge of http and jQuery is poor and nothing happened as I expected. I only achieve that if all is good to done job properly but this was easy task.

Please help.

Djordje Radovanovic

Title: Re: How to post a message to user from a browse page?
Post by: Djordje Radovanovic on March 27, 2013, 03:28:13 AM
anyone?
Title: Re: How to post a message to user from a browse page?
Post by: Bruce on March 27, 2013, 03:59:01 AM
make sure button is of Type Button.
Then in server side code put something like;

  If Random(1,20) < 10
    p_web.popup('Hello Bruce, That''s not cool')
    do Value::Other23
  Else
    ! do something 
    Loc:Eip = 0
    do CallBrowse
  End



Where Other23 is the name of the button.