Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  cool Javascript

phpMyEdit General     cool Javascript
Post new topic   Reply to topic    
 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2009-10-08 04:56
Back to top  Reply with quote     

Near the the bottom of the following link are INPUT buttons 2007, 2006, etc., which swap out different tables of data.
http://www.city-data.com/zips/53511.html

There's a ton of Javascript in the above page, but it looks like the following function is the control.

Code:
function Sw(c, n)
{
document.getElementById(eval(c)).style.display = 'none';
document.getElementById(n).style.display = '';
document.getElementById('n' + eval(c)).className = 'ffiec'
document.getElementById('n' + n).className = 'ffiec active'
document.getElementById('n' + n).blur();
eval(c + " = n;");
}


If any of you are Javascript geniuses, perhaps you can devise a method to utilize this technique in phpMyEdit, somehow, as some sort of filter. And otherwise, it's just a clever idea that might be implemented in non-phpMyEdit lists.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy