Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    129
    Thanks
    0
    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
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,375
    Thanks
    11
    Thanked 592 Times in 572 Posts
    just point to a script file on a server you control.

    fill it with something like this.
    ver.js:
    Code:
    incomingVersionInfo({
     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,
    Code:
    <script>
    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() );
       if(proceed){
        // now send them to update if they want to (you code this part)
       }//end if userok
     }//end if out of date
    }//end incomingVersionInfo()
    </script>
    
    <script src="http://myserver.com/apps/updates/myappname/ver.js"></script>
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


  •  

    Posting Permissions

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