Join in the conversation!
Pick your username
Post in Forums
Create a Profile
Upload Pictures
Make Polls
Keep a Journal
Meet Friends
Have Fun
It's FREE!
Sign Up!
Forum Index: Computers & Internet: Web Design & Coding
javascript problems...
Reply to Topic
AuthorMessage
New Post! Aug 12, 2005 @ 19:43:01#1
El_Tino
booyaka!

Founder
Bogey Man
78392 points


Send PM


30/M/Las Cruces, New Mexico
Join Date: Oct 2004

ok, i'm having a crappy javascript problem.

I have a part of the script that looks like this:

var submenu = document.getElementById('SubMenu'+id);

(id is a string)

It works fine in opera, but firefox and IE don't like it.

It used to be this, but opera and IE didn't like it, only firefox understood it.

var submenu = menus.getElementsByTagName('ul').items('Menu'+id)

ANd, finally, IE only understands it when id is a number rather than an integer, and it's like this:

var submenu = menus.getElementsByTagName('ul').items(id)

On March 19, 2010
Edited: August 12, 2005 @ 19:44
Amazon.com goodies - Books - Movies - Electronics
New Post! Aug 12, 2005 @ 19:48:12#2
El_Tino
booyaka!

Founder
Bogey Man
78392 points


Send PM


30/M/Las Cruces, New Mexico
Join Date: Oct 2004

ok nevermind apparently it no longer works in opera...

I'm going to try using the name attribute rather than ID and see if i can get it to work that way...

On March 19, 2010
New Post! Aug 12, 2005 @ 19:48:50#3
catlady

Minister
10650 points


Send PM


22/NA/, Washington
Join Date: Feb 2005

On April 30, 2009
New Post! Aug 12, 2005 @ 19:55:00#4
El_Tino
booyaka!

Founder
Bogey Man
78392 points


Send PM


30/M/Las Cruces, New Mexico
Join Date: Oct 2004

wtf opera is on crack it works for like 2 minutes then stops working!

On March 19, 2010
New Post! Aug 12, 2005 @ 19:56:06#5
annski729

Giggity Goo+
126759 points


Send PM


19/F/Washington, District of Columb
Join Date: Jun 2005

Uhm yeah. I totally understood that.

On March 20, 2010
New Post! Aug 12, 2005 @ 20:01:33#6
El_Tino
booyaka!

Founder
Bogey Man
78392 points


Send PM


30/M/Las Cruces, New Mexico
Join Date: Oct 2004

ok i figured it out. I had a mistake with the ID's

On March 19, 2010
New Post! Aug 12, 2005 @ 20:56:27#7
misunderstood
Persuasive Madam!

Administrator
Hey that's my bike
193562 points


Send PM


24/F/How about you come find me....
Join Date: Jan 2005

erm.....



Look there's a butterfly *points and nods*

3 minutes ago
New Post! Jan 03, 2006 @ 14:39:06#8
bandguy07

General
382 points


Send PM


20/M/Myrtle Beach, South Carolina
Join Date: Oct 2005

yeah sure. If you say so.

On August 26, 2007
New Post! Jan 03, 2006 @ 16:13:21#9
23886

Über-Minister
15806 points

Banned

Send PM


19/M/127.0.0.1,
Join Date: Aug 2005

now if only this thread wasn't from august I'd have said that

but unfortunately I get mixed up on some simpler stuff it JS, I'm more of a C++ geek anyways

On June 30, 2009
New Post! Dec 18, 2006 @ 05:37:35#10
Pete
Moderator
Bogey Man
76689 points


Send PM


22/M/Central, United Kingdom
Join Date: Jan 2005

grr javascript

0 minutes ago
Reply to Topic<< Previous Topic | Next Topic >>

TFS Time: Sat 20 Mar 2010 01:46 pm CDT
Copyright © 2004-2010 Funky Llama Productions, LLC   |   Home   |   Contact   |   Privacy Policy   |   Terms of Service   |   Top of Page
The Forum Site - Your premier source for everything
Hate ads?