Re: [Phpgedview-talk] Spam: JavaScript Usage
Brought to you by:
canajun2eh,
yalnifj
From: Nathan S. H. <nat...@uk...> - 2007-10-05 15:24:03
|
John Finlay wrote: > There are many advantages to using JavaScript. The biggest reason why JavaScript is used for menus is because they work better in a multi-lingual environment particularly in RTL languages. I've tried converting to straight HTML/CSS menus but could never get them to work correctly in all languages. Perhaps someone with more experience than I could get them to work. Of course site admins who don't need all of the language support could make their own theme however they like. > > JavaScript also provides another layer of abstraction. Instead of help.php?which=blah we use help_popup('blah') and then if we ever need to make a change we only have to change in one place. It essentially equates to the same thing with the help_popup() javascript function calling the page help_text.php?help=DBTYPE. Another advantage, javascript allows us to set the size of the window. > > The actual text is defined in languages/help_text.xx.php. Whatever is passed in through the "help" parameter is used as a key to lookup the entry in that file. The text is also run through the print_text() function to do variable replacing and other pre-processing before the text is actually printed. > > XML has been considered, but XML support is still so limited in PHP 4 that we haven't done anything with it for the languages. We also wanted to keep the format of all of the language files consistent. > > With Web 2.0 and AJAX the industry is also moving toward more JavaScript and you will find in the 4.2 branch that JavaScript is going to be used a lot more. > > --John > > OK, I think I'm sold! According to the PHP website, PHP4 support will be withdrawn at the end of the year, since PHP5 is now 3yrs old - making only security fixes until the middle of next year. Will PGV continue supporting PHP4 or use PHP5 as it's minimum version? |