prakash Posted July 30, 2007 Share Posted July 30, 2007 following code works perfectly on IE but it does not works with Mozilla Firefox. What is the problem? any help!! <?php $lang=$_GET['lang']; if ($lang=="fr") { $location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cfr&u=http://www.somedomain.com/&prev=/language_tools"; } elseif ($lang=="de") { $location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cde&u=http://www.somedomain.com/&prev=/language_tools"; } elseif ($lang=="it") { $location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cit&u=http://www.somedomain.com/&prev=/language_tools"; } else { $location="http://www.somedomain.com"; } print"<script type=\"text/javascript\" language=\"JavaScript\"> window.location=\"$location\"; </script>"; ?> Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 30, 2007 Share Posted July 30, 2007 Work fine in firefox for me. Do you have javascript disabled in firefox? Quote Link to comment Share on other sites More sharing options...
prakash Posted July 31, 2007 Author Share Posted July 31, 2007 does the language changes on both browser on each language selection other than last else condition. Quote Link to comment Share on other sites More sharing options...
jitesh Posted July 31, 2007 Share Posted July 31, 2007 just try print"<script type=\"text/javascript\" language=\"JavaScript\"> window.location.href=\"$location\"; </script>"; Quote Link to comment Share on other sites More sharing options...
prakash Posted July 31, 2007 Author Share Posted July 31, 2007 same thing happen again. It works on IE but not with firefox. Have you checked it, I mean does it works there?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.