[Pidgin] #3067: We need to improve the downloads section

Pidgin trac at pidgin.im
Wed Sep 12 16:24:06 EDT 2007


#3067: We need to improve the downloads section
--------------------------+-------------------------------------------------
  Reporter:  kstange      |       Owner:  kstange           
      Type:  enhancement  |      Status:  new               
  Priority:  minor        |   Milestone:  Completed Web Site
 Component:  webpage      |     Version:                    
Resolution:               |    Keywords:  downloads         
   Pending:  0            |  
--------------------------+-------------------------------------------------
Comment (by Rapidgorgon):

 You could detect the user's platform with javascript using:
 "navigator.platform"
 A possible return could be "Win32".
 Next:
  an AJAX request: request code from server; send less code the first time,
 a bit more server load may be, slow when the server isn't quite that
 responsive and more platform requests are made.
 or
  a switch: see pseudo code below; send all the code to the client, pick on
 client; makes it quicker to pick another platform.
 could be made to return the appropriate code.
 {{{
 var platform = navigator.platform
 switch (platform)
 {
 case Win32:
   //insert Win32 link, information, GTK+ information..
   break
 case ...
   break

 ...

 default:
   //insert source download link, information...
 }
 }}}
 I haven't worked with PHP & AJAX before (no problem learning that if I can
 support Pidgin), but I do have some experience using regular Javascript.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3067#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list