Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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