Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Any Idea?

  1. #1
    Regular Coder
    Join Date
    Dec 2008
    Thanked 0 Times in 0 Posts

    Any Idea?

    i want to ask about something..
    i made a software using php , ajax and javscript..

    now as any product i want to make updates on my software, when any updates is available, i want to let the user knows that there is a new update with a new version so the user can download it....

    Example: like the update of mccafe, windows....etc..........

    my idea is to use the webservice and let the software when loggin-in uses the webservice to check if there is any updates and tell the user with a message the version is updated,please download new version

    but till now i can not make this webservice..

    Any idea of using webservice or any other idea???????

  2. #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 626 Times in 605 Posts
    just point to a script file on a server you control.

    fill it with something like this.
     title: "my app name",
     version: 2.002,
     updated: new Date(2010, 11, 25)
    you can edit that js file when you build and test your new version.

    in your app,
    function incomingVersionInfo(info){
     if(info.version != App.version){
       var proceed=confirm("This software is out of date!\n\n Upgrading to the new version (" + info.version+ ") from "+info.updated.toDateString() );
        // now send them to update if they want to (you code this part)
       }//end if userok
     }//end if out of date
    }//end incomingVersionInfo()
    <script src="http://myserver.com/apps/updates/myappname/ver.js"></script>
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com


Posting Permissions

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