Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-29-2010, 01:03 PM   PM User | #1
john_zakaria
Regular Coder

 
Join Date: Dec 2008
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
john_zakaria can only hope to improve
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???????
john_zakaria is offline   Reply With Quote
Old 12-29-2010, 11:51 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,461
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
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 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:46 AM.


Advertisement
Log in to turn off these ads.