Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Firefox only displays sourse code


  • Please log in to reply

#1
michael_hpp

michael_hpp

    New Member

  • Member
  • Pip
  • 2 posts
The problem seams simple......or is it?

Here's an example

www.passsmog.com/200

Firefox will only display the source code.
IE redirects properly.

Is there a setting I need to adjust in Firefox or is her nature?

Thanks for any advise
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Firefox is not happy with the script as written. It redirects using IE because of the IF statement :

if (navigator.appName=="Microsoft Internet Explorer")
window.location = "http://www.passsmog.com/200.htm";

If you add the extension .htm in the address window as it stated, Firefox will go to page when you hit Go button.

Cheers...Ron
  • 0

#3
michael_hpp

michael_hpp

    New Member

  • Topic Starter
  • Member
  • Pip
  • 2 posts
Ron, is what you are saying is that firefox will not refresh or redirect unless the address has the ".htm" typed into the URL?
Why will other browsers refresh and/or redirect through the refresh.redirect page not containing the ".htm' ?

Michael


Firefox is not happy with the script as written.  It redirects using IE because of the IF statement :

if (navigator.appName=="Microsoft Internet Explorer")
  window.location = "http://www.passsmog.com/200.htm";

If you add the extension  .htm in the address window as it stated, Firefox will go to page when you hit Go button.

Cheers...Ron

View Post


  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Firefox has a problem running some javascript along with some other browsers that are sensitive to the way it is written. This is a problem on the Internet and causes several sets of code to be written to get all browsers to work properly. It just means the script code needs to be written with Firefox in mind so it will work and redirect automatically for you. Only if you want to go to the site with Firefox will you have to type the extension in the address window and click Go button.

I will PM you with my site's URL. Use Internet Explorer to view site first and you will see a rotating clock following your cursor around. Then view it in Firefox. No rotating clock. Just haven't gotten around to cleaning this up.

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP