Recent Questions
Q: Actually I think we've managed to figure most of the below out, so I'd be grateful if you could give us some pointers with the following instead...
How might we be able to include your javascript menu scripts within e.g. asp tags? We'd like some menu options to be hidden from some users, but I'm getting errors when I put asp tags in your data.js file.
A: It seems to me that you have syntactical error in your code.
Please, check that you don't have double quotes in your code. If you have several quotes you shoulduse back slashes before them, for example:
<%
response.Write( " ['|Test A','javascript:alert(\'Test\');', '', '', '', '', '0', '-1', '', ], " )
%>
["|Loan Profile","../pipeline/loan_profile.asp?id=<%=rsLoans('loan_id')%>", "", "","", "", "", "2"],
Q: Hello, I am trying to figure out how to use the Dynamic functionality in the java menu codes. I believe I want to use something like the dm_ext_changeItemVisibility function, and I want it to be dependent on HTML wrapped around the menu item.
Below is functionally how I want it to work:
Show menu item 1
Show menu item 2
<if condition="!is_member_of($bbuserinfo,10)">
Show menu item 3
</if>
Show menu item 4
Is there an example you can share that does something like this? I searched the site and could not find an answer.
A: Yes it's possible, please see
http://deluxe-menu.com/dynamic-functions-sample.html
Disable "Product Info/Installation" item.
and
Hide / show "Samples" item.
You can call these function via javascript depending on your conditions.
Q: How can you set an item in a html form drop down menu to just a text and not a link?
A: Don't add link in the item's link field in that case:
["Home","", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "_blank", "", "", "", ],
Q: In my page are links in subfolders (for example /ergebnisse/2006/test.htm). When I call a page in a subfolder, in first time this page is shown correctly. The next page I call could not found. I belief the pointer is in the subfolder an so the page could not found.
A: You can use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];
So, link path will be look so:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.