Recent Questions Treeview Selenium
Q: My menu bar will not “center” when I view it via the Firefox and Netscape browsers.
It views fine via Internet Explorer. Is there any remedy for this?
A: Try to set exact width for the menu in "px", for example:
var menuWidth="400px";
Q: I'm experimenting with the purchased Treemenu. Looks very nice!
A question: When I set the menu width to 200px and the text of the item exceeds this width, text is not wrapped resulting in some strange display. How can I wrap the text in the java menu tree?
I can not simply use extra <br> tags because the data of the items are dynamic (php + MySQL).
A: You should set the following parameter
var tnoWrap=0;
Try that.
Q: I am very interested in your Deluxe Tuner software and specifically the Deluxe Tab software. However, I am confused on thedeluxe tab software as to where the content for each tab is imputed. Everything seems to be extremely user friendly but I am unable to understand where to put the content information.
A: See, for each item you should assign the ID property of the content DIV.
["Style Name","contentName", "", "", "", "", "1", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Style Description","contentDescription", "", "", "", "", "", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Style Variations","contentVariations", "", "", "", "", "", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Empty","", "", "", "", "", "2", "", "", ],
And on your html page you should create DIV's with such ID.
<div id="contentName" style="height: 0%; visibility: hidden;" class="tabPage">
<br><br><br> <p align=center><img src="img/style01_title.gif" width=140 height=90 alt="Glass Style Tabs"></p> <br><br><br> You should paste your content here!!!!! </div>
Q: I have another question regarding the popup window. I need to use an iframe within the popup window. Is there any way I can close the dhtml popup from the page loaded within the iframe?
A: You can close the popup using the following function:
document.getElementById('win').hide();
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot accessdocument.getElementById('win').hide();
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 situatedon 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:
<a onclick="document.getElementById('win').hide();">...</a> <iframe></iframe>
Your link will work in that case.