Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2003, 02:26 PM   PM User | #1
pinkcat_02
Regular Coder

 
Join Date: Jan 2003
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
pinkcat_02 is an unknown quantity at this point
Unhappy 'object expected' error

mm_menu_0115121908_0.addMenuItem("on", " document.images["image1"].src = "me.gif" ");

When i try this javascript it gives and object expected error but i couldn't find where the error is.

Can anyone see where i did the mistake?

ps= i used this js for swapping the image if on option is selected from the menu.
pinkcat_02 is offline   Reply With Quote
Old 01-15-2003, 03:06 PM   PM User | #2
ahosang
Regular Coder

 
Join Date: Sep 2002
Location: Surrey, UK
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
ahosang is an unknown quantity at this point
Your quotes don't seem to match logically. I'd guess if you try this:
mm_menu_0115121908_0.addMenuItem("on", " document.images['image1'].src = 'me.gif' ");
Be careful of double quotes within double quotes
ahosang is offline   Reply With Quote
Old 01-15-2003, 08:19 PM   PM User | #3
pinkcat_02
Regular Coder

 
Join Date: Jan 2003
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
pinkcat_02 is an unknown quantity at this point
Thumbs up

i have discovered it and now i saw that u suggested the same...

cheers mate
pinkcat_02 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:17 AM.


Advertisement
Log in to turn off these ads.