Adding a Target to the links in menu_data.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Tagg3rx
Beginner
Beginner
Posts: 2
Joined: Tue Apr 18, 2006 6:49 pm

Adding a Target to the links in menu_data.js

Post by Tagg3rx »

hello could someone please help me figure this out -

I have added AJAX functionality to my page using:
http://www.dynamicdrive.com/dynamicinde ... ontent.htm

It basicaly loads external html pages inside a named <DIV> tag

Now I need to modify my links in the menu_data.js file to point to the DIV name. The formats listed on dynamicdrive are as follows:

Normal link:

<a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>
<div id="contentarea"></div>

or static load

<script type="text/javascript">
ajaxpage('test.htm', 'rightcolumn') //load "test.htm" into "rightcolumn" DIV
</script>

the link in menudata.js reads:
aI("text=linkname;url=link.html");

Please help

Thankyou
Tagg3rx
Tagg3rx
Beginner
Beginner
Posts: 2
Joined: Tue Apr 18, 2006 6:49 pm

Post by Tagg3rx »

Scratch the req for help

I just got it

Link as follows in the .js file


aI("text=Link;url=javascript:ajaxpage('link.html', 'main')");

Awesome menu systems!
Tagg3rx
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Glad you got it. It is a terrific systems isn't it? I just love that you can personalize the design so much!

Ruth
Post Reply