Recent Questions Opening Tree Mode Chessok MegauploadQ: I need to use an iframe within the popup window.
Is there any way I can close the dhtml window from the page loaded within the iframe?
A: You can close the popup using the following function:
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot access
element which is situated on the first page.
When you use text or object_id as window content the content of the popup will be situated
on the same page so you can access document.getElementById('win') element and hide it.
There is a workaround.
Use text as content type and add the following code inside popup:
Your link will work in that case.
A: Please, check the following parameter
This parameter sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;
-1 - the toggle mode is enabled, but no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page.
That is why you should write your own code on PHP.
You can also set the correct:
parameter on each html page.
A: Unfortunately it is really possible that you'll have problems in thatcase because the index of the content frame will be changed.
For example now you have:
<frame> //menu index=0
<frame> //content index=1
Your init function will be:
dm_initFrame("frmSet", 0, 1, 0);
But if you'll have frameset instead of content frame:
<frame> //menu index=0
<frame> // index=1
<frame> //content index=2
You should write your init function in the following way:
dm_initFrame("frmSet", 0, 2, 0);
A: Add 'link:' prefix before your links.
Try to write your links in the following way:
["Clinical","link:http://localhost:49303/Clinical_Policy.aspx", "", "", "", "Clinical Policy documents", "", "", "", ],
["Accounting","link:http://www.yahoo.com", "", "", "", "", "", "", "", ],
["Service Coordination","link:SC_Policy.aspx", "", "", "", "", "", "", "", ],
["Recruiting","link:Recruiting_Policy.aspx", "", "", "", "", "", "", "", ],
["Customer service","link:CS_Policy.aspx", "", "", "", "", "", "", "", ],
["Marketing","link:Marketing_Policy.aspx", "", "", "", "", "", "", "", ],