Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.


Initial Email From:
Ernesto
Initial Email Subject: set target for a dynamic generated menu...
Support Case Month: April 2012

Hello from Switzerland,

Here a short example (running) on my actual Project.

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;');

Now I want to control the "target link" property using like url but I found no description about this.
like this (and sure... not working :)

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;link=_blank');

Maybe you can give me here some help.

Thanks.
Ernesto 

Reply From: Likno Customer Support

Dear Ernesto,

The name is “target” instead of “link”, so the code should be like:

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;target=_blank');

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Ernesto

Hello Kostas,
thanks for the short replay.
I used this statement now:

mainItem = awm_M0.newItem('style=sub_item_style;text0=HOME;url=../../main/main.aspx;target=_blank');

Tests in IE or Opera... but, it is not working.
Some Idea about.

Thanks,
Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

Can you please try the following code instead?

mainItem = awm_M0.newItem('style=sub_item_style;text0=HOME;url=../../main/main.aspx;targetframe=new');

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Ernesto

Hello Kostas,
ah, ok! This now is opening the content in a new register.
:) So this is a interesting option for us. :)
But, if you still have a new idea about how to open it in a
completely new "browser" window so thanks for the help again... 
If not.... so we will use this solution.
Thanks.
BR, Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

The only way to open it in a completely new window (the equivalent of “_blank” within the application) is to add this as a script:

mainItem = awm_M0.newItem("style=menu_main_item_style;itemid=0;text0=Home");

mainItem.script2 = "window.open('/main/main.aspx,'test','toolbar=yes, status=yes, scrollbars=yes, location=yes, fullscreen=no, menubar=yes, resizable=yes, height=600, width=500');";

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

 

Tags: , , , , , , , , , , , , , , ,