Open Tech Support
Open Tech Support Archives
Back to HomeCommunityReviewsGuidesDownloadsTech LinksMarketplaceContact Us
 »  SITE NAVIGATION
»  OTS Home
»  OTS Forums
»  OTS Archives

»  About our site
»  Search our site
»  Support our site

»  What is this site?
»  Who are we?
 
 
 »  ADVERTISMENT
 
  Pages: 1

Javascript Issues

(Click here to view the original thread with full colors/images)


Posted by: Mathias

Hey there, it's me again. For those of you who didn't know I'm a relatively seasoned coder. My most experience is with web design, so I excel at HTML, PHP/MySQL and am currently learning Javascript, though I'm likely to expand that list soon.

Anyways, I'm working on a site now where (at this stage anyway) it's basically 4 tabs connected to a large content box. If you hover over a tab, it highlights. Hover off, it goes back to normal. Click it, it stays selected and any other selected tabs go back to normal. Took me a while to learn all the Javascript to do it (since I'm more or less a newbie to Javascript), but after looking it up and doing it for about an hour or two, it's not that big a deal.

Now, I've gotten this site to work just fine and the way I want it to with the latest version of Firefox, but IE... that's another story.

I'd like you guys to look at it for yourself and see if you can tell me just what's going wrong with the site in regards to IE. The source code should show you everything, except the PHP of course. Also, if anyone notices problems with the site with other browsers, please let me know. I like to code such that a majority of users see and do what I want them to see and do.



The Site



Posted by: P0nix

You know that you can double click the little yellow stop sign in the left hand corner of IE and get the exact line that went bad in your javascript right....



Posted by: Mathias

Actually, no, I didn't.

But still, even though I know where the error is, I don't know how to make the statement work with IE.

Edit - Nevermind, I've worked out the problem. Basically IE is just stricter with Javascript Syntax and declaring a variable without 'var' before it is not allowed. Firefox let me do this just fine, so that's why I got confused.



Posted by: Ion Silverbolt

That's news. Usually it's IE that breaks the standards. Not other browsers.



 
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.