FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
checking javascript through php...
Message  

Reply with quote
Post checking javascript through php... 
i want to check whether the javascript on users machine(browser) is enabled or disabled through php coding.
whether it is possible or not. If yes than please tell me how.


_________________
Anil Sharda
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Reply with quote
Post  
Ammm. Hi!!! there is a way to do it through so called "dirty hack"

For instance you have a page called index.php. In this page you do this:

Code:

<?php
session_start();

if(isset($_GET['enabled']))
{
 $_SESSION['checker']=true;
}

if(isset($_SESSION['checker']) && $_SESSION['checker'])
{
  //code if javascript is enabled
}
else
{
 echo '<script language="javascript">
  function relocateToScript()
  {
   location.href='index.php?enabled';
  }
  new relocateToScript();
 </script>
';
 //code if javascript is not enabled
}
?>


should be working.

Regards,
Pratamishus.


_________________
www.eb-downloads.com
FREE E-BOOKS DOWNLOADS.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Reply with quote
Post  
thanks dear its working


_________________
Anil Sharda
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com