Old 09-02-2009, 06:02 AM   #1 (permalink)
Junior Member
 
Join Date: Sep 2009
Posts: 9
Default Level 1 opening blank "undefined"

When I load my menu all of my level 1 items are targeting a blank html page as "undefined" when clicked and with
Code:
 "item selected ="true"
My subitems are targeting iframe properly, it is just the level 1 items that have subitems which seem to be targeting '_blank' with 'undefined' file.

I have added the following code to my HTML doc with my flash object tag per flashPlayer 9 requirements with SWF+url's

Code:
<param name="allowScriptAccess" value="always">
Here is my xml:

Code:
<menu>
	
	<item selected="true" label="COMPANY HISTORY" >
		<subitem label="Company Story" url="company_story.html" target="main"/>
		<subitem label="Timeline" url="timeline.html" target="main"/>
	</item>
	<item label="CORPORATE PROFILE" >
		<subitem label="Mission Statement" url="mission.html" target="main" />
		<subitem label="Corporate Philosophy" url="philosophy.html" target="main" />
		<subitem label="Brands" url="brands.html" target="main" />
	</item>
	<item label="CORPORATE INFORMATION" >
	    <subitem label="Associations" url="associations.html" target="main" />
		<subitem label="Attorneys" url="attorneys.html" target="main" />
		<subitem label="Auditors" url="auditors.html" target="main" />
		<subitem label="Bank & Credit References" url="cred_ref.html" target="main" />
		<subitem label="Custom Brokers" url="custom_brokers.html" target="main" />
    </item>
	<item label="DISTRIBUTION" >
		<subitem label="Facilities" url="facilities.html" target="main" />
		<subitem label="Inventories" url="inventories.html" target="main" />
		<subitem label="Transportation" url="transportation.html" target="main" />
	</item>
	<item label="CONTACT" url="contact.html" target="main" />
	
</menu>

And my Click Handler Function AS:
Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){ 
getURL(node.attributes.url, node.attributes.target);
}
I have reviewed the help .txt file as well as this board but haven't seen this issue. I can't seem to figure what I am missing.
Thanks
-r
ranthon is offline   Reply With Quote
Old 09-02-2009, 07:35 PM   #2 (permalink)
Junior Member
 
Join Date: Sep 2009
Posts: 9
Default Easy Answer

Don't know why I didn't figure it right away, I was staring at the answer the entire time.

I just needed add the link + target from the subitem1 to the level1 item...solved.

Code:
<item selected="true" label="COMPANY HISTORY" url="company_story.html" target="main" >
		<subitem label="Company Story" url="company_story.html" target="main"/>
		<subitem label="Timeline" url="timeline.html" target="main"/>
Great file by the way...very easy to modify and look great!

Thanks again.
-r
ranthon is offline   Reply With Quote
Old 12-28-2009, 09:47 AM   #3 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default same problem undefined error

hi there i hav the same problem but i dont need level one item to go to another link how can this be fixed. Please help
regards
stephenza is offline   Reply With Quote
Old 12-28-2009, 10:33 AM   #4 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default dont wory

dont worry i got it working fine tx gr8 menu
stephenza is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:52 AM.