home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1752
Discussions: 188,402, Posts: 2,243,608, Members: 232,631
Old January 2nd, 2005, 04:33 AM   Digg it!   #1 (permalink)
Ultimate Member
 
implexant's Avatar
 
Join Date: Jun 2002
Location: Vancouver, WA, USA
Posts: 2,693
Send a message via ICQ to implexant Send a message via AIM to implexant Send a message via MSN to implexant Send a message via Yahoo to implexant
JavaScript Error in IE6, but not FF 1

http://www.implexant.com/archives/20..._post_in_t.htm

Go to the above with IE 6+. It gives a JavaScript error that I can't seem to figure out. Site works like a charm in Firefox.

Any ideas?

TIA.

-Chris
__________________
http://www.implexant.com

implexant is offline   Reply With Quote
Old January 2nd, 2005, 07:05 AM     #2 (permalink)
Ultimate Member
 
Join Date: Dec 2004
Posts: 1,558
Code:
line 45:
<td width="172" bgcolor="#000000" style="font-family: Arial; font-size: 10pt;>
missing quote after 10pt;
Code:
line 95:
<td width="172" bgcolor="#5F5F5F" style="font-family: Arial; font-size: 10pt;>
missing quote after 10pt;
Code:
line 96:
<p align=">
missing quote after align="
Now that that's done, about your error. You're getting that error because it's trying to assign non-existent data to the element. In other words, you don't have a getCookie() function defined in javascript. If you need one, here's one I made:

Code:
function getCookie(cookieName){
  var cookieValue = null;
  if(document.cookie){  //only if exists
    var arr = document.cookie.split((escape(cookieName) + '=')); 
    if(2 <= arr.length){
      var arr2 = arr[1].split(';');
      cookieValue = unescape(arr2[0]);
    }
  }
  return cookieValue;
}
Just stick that in the external JS file (stm31.js) and it should be working fine.

If you don't already use a program to do syntax highlighting, I would suggest you do. It really helps track down some evasive bugs.
Araneae - basically notepad with syntax highlighting
Crimson Editor - a lot more features
PHPEdit - aimed more at editting PHP (duh)but still good for html, simple and useful but I stopped it using like 2 years ago for some reason. I think it's because it changed some setting in the Windows context menu shell and it didn't ask me so I got mad and stopped using it (yeah, I'm that anal); but overall still a good tool.


Last edited by large_nostril : January 2nd, 2005 at 07:08 AM.
large_nostril is offline   Reply With Quote
Old January 2nd, 2005, 10:49 PM     #3 (permalink)
Ultimate Member
 
implexant's Avatar
 
Join Date: Jun 2002
Location: Vancouver, WA, USA
Posts: 2,693
Send a message via ICQ to implexant Send a message via AIM to implexant Send a message via MSN to implexant Send a message via Yahoo to implexant
You're a bloody genious

Thanks a bundle.

I'll check into some of those programs, I didn't code the JavaScript, however, it came with my DHTML Nav bar making program.

Thanks again,

-Chris

implexant is offline   Reply With Quote
Old January 2nd, 2005, 11:20 PM     #4 (permalink)
Ultimate Member
 
Join Date: Dec 2004
Posts: 1,558
Quote:
You're a bloody genious
Thanks, I try to be .

Just glad I could help.
large_nostril is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No javascript popups in xp pro/ie6 ??? ^hyd^ Applications and Operating Systems 17 September 14th, 2004 11:45 AM
Internet Explorer 6 Problems vesther Applications and Operating Systems 6 June 22nd, 2004 08:22 PM
What's this error iNeb Applications and Operating Systems 15 April 15th, 2003 06:16 AM
cross browser javascript nishark Webmastering and Programming 6 January 28th, 2003 10:01 PM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Please help! multiple problems! (4)
How to transfer music from iPod.. (0)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:00 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28