Real Software Forums
http://forums.realsoftware.com/

Sending Data to a Webpage Session
http://forums.realsoftware.com/viewtopic.php?f=23&t=48064
Page 1 of 1

Author:  p0wn3d [ Tue Jun 04, 2013 5:55 am ]
Post subject:  Sending Data to a Webpage Session

Hi

I need to change a label text on a specific webpage from an EasyTCPsocket recieved message event having already knowing in advance the session.identifier that I wish to interact with IE: BCF5785AA76A805F376C186BD25E801D.

Any idea's please.

Thanks

Author:  Akiland [ Tue Jun 04, 2013 6:13 am ]
Post subject:  Re: Sending Data to a Webpage Session

In the App class this should work :)
SessionWithIdentifier("BCF5785AA76A805F376C186BD25E801D", RemoteAddress).Label1.text = "Hello World"

PS. Pseudo code, not tested.
http://docs.realsoftware.com/index.php/WebApplication.SessionWithIdentifier

Author:  p0wn3d [ Tue Jun 04, 2013 6:36 am ]
Post subject:  Re: Sending Data to a Webpage Session

Hi, Akiland

Thanks I tried this but getting error "This item does not exist" for SessionWithIndentifier.

:(

Author:  Akiland [ Tue Jun 04, 2013 7:00 am ]
Post subject:  Re: Sending Data to a Webpage Session

p0wn3d wrote:
Hi, Akiland

Thanks I tried this but getting error "This item does not exist" for SessionWithIndentifier.

:(

Try this: must be used in App class.
SessionWithIdentifier("SESSIONIDENTIFIER", "REMOTEIP").WebPage1.Label1.text = "Hello World"


I'll fix an example for you real quick!

Author:  Akiland [ Tue Jun 04, 2013 7:20 am ]
Post subject:  Re: Sending Data to a Webpage Session

Here's a working example i made in 5 min :)
https://www.box.com/s/ee2q2fmhb86yjv47fo52

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/