Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Sep 26, 2017 2:23 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Sending Data to a Webpage Session
PostPosted: Tue Jun 04, 2013 5:55 am 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
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

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: Sending Data to a Webpage Session
PostPosted: Tue Jun 04, 2013 6:13 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
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

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
 Post subject: Re: Sending Data to a Webpage Session
PostPosted: Tue Jun 04, 2013 6:36 am 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
Hi, Akiland

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

:(

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: Sending Data to a Webpage Session
PostPosted: Tue Jun 04, 2013 7:00 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
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!

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
 Post subject: Re: Sending Data to a Webpage Session
PostPosted: Tue Jun 04, 2013 7:20 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
Here's a working example i made in 5 min :)
https://www.box.com/s/ee2q2fmhb86yjv47fo52

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group