Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    3

    Grin Check Connection: Website Updateable files??

    I used to run a program I designed and stupidly did not save the original design file. I have no clue how to make this action work again.

    I need to have the program once started check for an internet connection, and then project either an html file already loaded to the CD or go to project the html on the internet if the connection is true.

    PLEASE HELP!!!!!!

  2. #2
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    109
    this will work

    Code:
    result = HTTP.GetConnectionState();
    if result.Connected == true then
    --open web html
    else
    --open cd html
    end

  3. #3
    Join Date
    Aug 2009
    Posts
    3
    This is a great great help. My next question is what do I use for the script to substitute "--open web html" I use Web.LoadURL("Web1", http://www.yoursite.com"); and the browser within the application does NOTHING but refresh over and over and over, making it impossible to navigate the page... maybe Im using the wrong scrip!?? Thank you SO MUCH for your help!!!

  4. #4
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    109
    where is the script located?
    i hope not on a the section "on timer" because then it will constantly refresh because you constantly give it the order to load.

    i've included an .apz to show that it works fine for me.

    and your welcome
    Attached Files
    Last edited by limboo; 08-07-2009 at 11:21 AM.

  5. #5
    Join Date
    Aug 2009
    Posts
    3
    Yeah so Im just an idot. I finally got it figured out, I was putting the script and action within the web object itself rather than the page script. The page script controlls the web object. Example:

    result = HTTP.GetConnectionState();
    if result.Connected == true then
    Web.LoadURL("Web1", "http://www.yoursite.com");

    else
    Web.LoadURL("Web1", "AutoPlay\\Docs\\yourfile.htm");

    end

    This works PERFECTLY, with the internet connection issues. If there is no internet it will direct you to your on file htm

    Thank you very very much for the help!!!!! It really helped alot and finally got it figured out!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts