URLstatus issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Rod Edwardson
Posts: 23
Joined: Sun Mar 03, 2013 1:09 am

URLstatus issue

Post by Rod Edwardson » Tue May 07, 2013 8:19 pm

Hello

I have an app and am trying to set up a basic way of users obtaining the latest version. Its a simple concept but will work for my purposes. I'm having some issues though and am wondering if someone can head me in the right direction. I have a text field (version) and its contents are the apps version number. I have a button that will look to see if the URL of the latest version matches the apps version as listed in the text field. If it does not match, then an update page URL will launch. My problem is that the URL status is not showing in the second field I have called "update". I'm new to this LiveCode gig and any help would be appreciated. Thanks in advance.

Code: Select all

  
on mouseUp
   put URLstatus("http://www.mydomain.com/" & field "version" & ".zip") into field "update"
   if field "update" = "not found" then
            Launch URL ("http:www.mydomain.com/update.html")
                    end mouseUp
     

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: URLstatus issue

Post by jmburnod » Tue May 07, 2013 8:28 pm

Hi Rod,
We made a little stack to download and unzip a zip file
It should be useful for you:
http://forums.runrev.com/phpBB2/viewtop ... =8&t=13466
Best regards
Jean-Marc
https://alternatic.ch

Post Reply