NetTalk Central

Author Topic: Notify app frame from web server?  (Read 5026 times)

Tony Tetley

  • Newbie
  • *
  • Posts: 2
    • View Profile
Notify app frame from web server?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Notify app frame from web server?
« Reply #1 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