PHP QuickRef Jave Code mod!

From: Date: Thu, 08 Mar 2001 19:32:50 +0000
Subject: PHP QuickRef Jave Code mod!
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4249@lists.php.net to get a copy of this message
Hi PHP WebMaster I like the QuickRef JavaScripts you have on your site, but likes the old one better: javascript:void(q=prompt('PHP Reference:','')); if(q)location.href='http://www.php.net/manual-lookup.php?function='+escape(q ) Now, I have taken your new one, and the old one, added a pref for the Language param also, and now it looks like this: javascript:void(q=prompt('PHP Reference Lookup:',''));if(q && q !='') {location.href='http://www.php.net/manual-lookup.php?lang=en&function='+esca pe(q)} Benefits: * Does use the Lang you set in * Does not jump the browser back, if you cancel or click OK to an empty input! I think this is the best solution. Maybe you could add a smal form where there is a Select for Language and one for Mirror site, and a Submit would generate the Bookmark Link??? :-) Jakob "Tell me why, don't we try, not to break our hearts and make it so hard for our self's" P.S.B. - 1990

« previous php.mirrors (#4249) next »