wudu Posted January 7, 2006 Report Share Posted January 7, 2006 lapa ir taisiita xhtml, visaam lapaam ir viens header. vajag tikai 1 konkreetai lapai paarbaudiit vai js ir iesleegts. pashreiz tiek izmantots aiz <body> noliktais <noscript><meta ... /></noscript>, kas lapu redirektee uz attieciigu pazinjojumu, ja js ir atsleegts. tas, ka meta tags nestaav ieksh <head> daljas, protams, nav labi, un taa domaa arii validators. jautaajums: vai ir veel kaada iespeeja paarlaadeet lapu? kaa jau teicu, pieejas pie <head> daljas nav (tad tas viss attiektos un visaam lapaas, kas neder). varbuut aizveert acis uz validatoru (viss iet kaa vajag) un nelikties ne zinis? Link to comment Share on other sites More sharing options...
Forbidden Posted January 7, 2006 Report Share Posted January 7, 2006 Nevar head'ā ielikt skriptu, kas pārbauda vai tā ir vajadzīgā lapa, un ja ir, tad izvada to <meta> un ja nav, tad nedara neko? Link to comment Share on other sites More sharing options...
Kristabs Posted January 7, 2006 Report Share Posted January 7, 2006 <head> ..... <?php //piemeeram if($_GET['mode'] == 'tur kur vajag man JS'){ echo "papildus lietas head daljaa"; } </head> Link to comment Share on other sites More sharing options...
wudu Posted January 7, 2006 Author Report Share Posted January 7, 2006 (edited) tieshaam, nebiju iedomaajies par tik vienkaarshu variantu =]. paldies abiem... edit: pasteidzos ar atbildi... kaa tad paliek ar nodetekteeshanu, vai js ir iesleegts/atsleegts? shitaa jau vinjsh vienmeer redirekteesies... :( Edited January 7, 2006 by wudu Link to comment Share on other sites More sharing options...
php_Stopp Posted January 7, 2006 Report Share Posted January 7, 2006 header("refresh: laiks;url=adrese"); Link to comment Share on other sites More sharing options...
Recommended Posts