NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Tony Tetley on July 26, 2007, 11:35:16 AM

Title: Notify app frame from web server?
Post by: Tony Tetley on July 26, 2007, 11:35:16 AM
I have a program that sits in the systray and can run many processing threads.  I am adding web server support so that you can configure the program and check on the status remotely.  This is all working great.  I would like to have a web menu option that when selected I can send a Notify message to the appframe so I can execute a menu option that currently exists in the appframe menu.  Is this possible?

Thanks,
Tony
Title: Re: Notify app frame from web server?
Post by: Bruce on July 31, 2007, 11:57:23 PM
Hi Tony,

Ok, so your menu item has a URL - probably a NetWebPage procedure name or some thing like that.

It can of course be the "front page" - as in "I'm looking at the main/index page, and I click the URL, and it takes me to the page I'm looking at."

You can also add a parameter to the URL. For example
'index.htm?Notify=yes'

Then in that netwebpage put something like this :
if p_web.IfExistsValue('notify')
  NOTIFY etc etc
End

Cheers
Bruce