View Full Version : Any Idea?

12-29-2010, 02:03 PM
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???????

rnd me
12-30-2010, 12:51 AM
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>