UnCroft Posted January 30, 2007 Author Report Share Posted January 30, 2007 Thnx! Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 Grey_Wolf, par void es zinu, tikai šoreiz neievēroju :). Bet vispār likt iekš href "java script:" ir evil. Vislabākais ir ielikt tur linku lapa.php?open_submenu=1 vai kaut ko tādu, kas izpildītos, ja nebūtu ieslēgts javascripts. Protams, tas prasa vairāk koda un laika. Bet toties pieejamāks saits :). - http://en.wikipedia.org/wiki/Unobtrusive_JavaScript - http://en.wikipedia.org/wiki/Fault-tolerant_system - http://en.wikipedia.org/wiki/Progressive_Enhancement Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 30, 2007 Report Share Posted January 30, 2007 andrisp --> aga <a href="#"...... ;) tik sajaa gadijumaa ja JS ir atsleegts.... taapat nekas labs nav gaidaams ;) ( tad visu jaataisa uz PHP un attieciigi lapas parlaadi.... :( ) Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 Nu jā - href="#" arī nav labi. Link to comment Share on other sites More sharing options...
v3rb0 Posted January 30, 2007 Report Share Posted January 30, 2007 (edited) href="#" var aizstāt ar <a href="http://www.google.lv" onclick="alert('daros ar js'); return false;">paliec te, vai ej uz gūgli, ja js atslēgts</a> vajadzetu darboties vienādi uz visiem browseriem. Edited January 30, 2007 by v3rb0 Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 v3rb0, jā, ļoti draudzīgs risinājums klientam :). Link to comment Share on other sites More sharing options...
Recommended Posts