Re: Internet Check Connection
I had the same problem due to our proxy/firewall. I have attached a sample project that works for me. It uses a WebBrowser1 to check to see if it can connect to www.yahoo.com. When navigation is complete it fills a variable with the title text. This can then be used in the Test Internet Connection button and load your page in WebBrowser2. I hope that this helps.
27033-internettest.zip
Announcement
Collapse
No announcement yet.
Internet Check Connection
Collapse
X
-
Re: Internet Check Connection
<IR_ACTIONS_LIST>
<Action name="Check Connection">
<Type>67</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%IsConnected%</Variable>
<SiteToConnectTo>http://www.bakerfurniture.com</SiteToConnectTo>
</Action>
<Action name="IF">
<Type>200</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Condition>%IsConnected%=TRUE</Condition>
</Action>
<Action name="Open">
<Type>7</Type>
<Function>0</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>http://www.bakerfurniture.com</FileName>
<Verb>open</Verb>
<WorkingDir/>
<RunMode>0</RunMode>
</Action>
<Action name="ELSE">
<Type>206</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
</Action>
<Action name="Jump">
<Type>1</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<PageName>not_connected</PageName>
</Action>
<Action name="END IF">
<Type>201</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
</Action>
<Action name="Close">
<Type>130</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<hWnd>%MenuHWnd%</hWnd>
<IfRunning>0</IfRunning>
<ProgramDescription>AutoPlay Media Studio 4.0</ProgramDescription>
</Action>
</IR_ACTIONS_LIST>
Leave a comment:
-
-
Re: Internet Check Connection
our CD which checks a URL
Corey Milner
Creative Director, Indigo Rose Software
Leave a comment:
-
-
Re: Internet Check Connection
If you do a search, there are a couple of posts on this subject. I have had this happen through my work proxy. I think it boils down to an autoproxy thing. In the previous posts there are some suggestions on ways to get around this. If I remember it involves having another web object sized to 1x1 and having it navigate to a web page. Then upon navigation complete have it get the URL and if the URL = "the title of the webpage" then you are connected. If not then you are not and you would need to ask them to connect.
HTH
Tigg
Leave a comment:
-
-
Internet Check Connection
What variables could affect Checking the Internet Connection? We have a client trying to run our CD which checks a URL then opens it if the Internet Connection is detected, but Checking the Internet Connection is failing, although they claim they are connected. Could there be a proxy, firewall or other problem?Tags: None
-
Leave a comment: