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


Initial Email From:
User
Initial Email Subject: Server Side Menus API
Support Case Month: March 2012

I have followed your step by step guide but for some reason the menu won't populate I am unsure what the problem is here is the web page I followed http://www.likno.com/addins/dhtml-menu-serverside-example.html it just wont work for me.

Reply From: Likno Customer Support

Hello again,

I checked your page and it seems the problem is in your generated code. Specifically you need to encode the single quotes:

single quotes

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: User

I was wondering could it be a write issue I noticed the Javascript has a document.write command where does it make the menu seen as it probably needs write access.  Its the only thing I can think of.

Reply From: Likno Customer Support

Well, I guess you have more than one quote, which is why I suggested that you should encode anything that comes from your DB:

quate error

Please have a better look in your code and if all quote occurrences are removed and you still have a problem, let me know.

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: User

I have one more question is it possible to have the link goto a target frame such as a target="I1" or is that done on the hidden level? Or not possible?

Reply From: Likno Customer Support

Hello again,

Yes it is. Just add the corresponding property after the item

subItem=subMenu.newItem('style=sub_item_plus_style;text0=PIE CRUST;url=recipes.php?recordID=3');

subItem.targetframe="I1";

you should also be able to achieve the same thing in one line:

subItem=subMenu.newItem('style=sub_item_plus_style;text0=PIE CRUST;url=recipes.php?recordID=3;targetframe=I1');

If you have not already done so, I suggest that you read the documentation on the Server-Side API which can be found in the AllWebMenus installation folder under:

AllWebMenus5/AddIns/ServerSideMenus/Server-Side_Menus_API_Help.pdf

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: , , , , , , , , , , , , , , ,