Real Software Forums

Calling Web Services in shown event of the Default Page
Page 1 of 1

Author:  JohnV [ Mon Apr 01, 2013 11:39 am ]
Post subject:  Calling Web Services in shown event of the Default Page

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)
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,", LLC",", 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?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group