Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Nov 12, 2019 7:29 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Calling Web Services in shown event of the Default Page
PostPosted: Mon Apr 01, 2013 11:39 am 
Offline

Joined: Sun Jan 28, 2007 2:38 pm
Posts: 231
I am using a third party service to Geolocate the City of the user:

I am testing a simple label on the page to DIsplay the city and state: Its called on the shown event of the label.

dim myString as string
dim mycity as string
dim myst as string
Dim http As New HTTPSocket


http.Yield = True
myString=http.Get("http://calltomyGeoProvider", 30)
mycity=NthField(myString,",",5)
myst=NthField(myString,",",3)
me.text=mycity+" "+myST



MyString Returns The correct information:

US,"United States",NV,Nevada,"Las Vegas",36.1440,-115.0323,839,702,America/Los_Angeles,NA,89142,"Macminicolo.net, LLC","Macminicolo.net, LLC",,"AS23005 SWITCH Communications Group LLC",Corporate,residential,999,80,15,16,10,


However the Load hangs 3 out of 4 time with the "loading progress bar at 75%

If I move the call to a timer and get the county 1 second after the page loads: all works just fine.

How do I sort out the load IP traffic voodoo?


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

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group