Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  cool Javascript

phpMyEdit General     cool Javascript
Odoslať novú tému   Odpovedať na tému    
 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-10-08 04:56
Návrat hore  Odpovedať s citátom     

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.

Kód:
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.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov