Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Navigational Treeview in Firefox

807569Jun 2 2006 — edited Jun 6 2006
Hi everyone,

Im a newbie here..
Can someone help me.. I have a problem regarding navigational treeview in Firefox browser.
My code works fine in IE but not in FF.

here's my codes:

//javascript:

var op2, ob_tb, ob_url;
function ob_wk(os, url, ctxPath) {
var ot = os.parentNode.parentNode.nextSibling.firstChild.nextSibling;
var lensrc = (os.src.length - 8);
var s = os.src.substr(lensrc, 8);
if (s == "inus.gif") {
os.src = ctxPath + "/images/treeview/plusik.gif";
ot.style.display = "none";
}
if (s == "usik.gif") {
os.src = ctxPath + "/images/treeview/minus.gif";
ot.style.display = "block";

if (url != "") {
var s = os.parentNode.nextSibling.firstChild.nextSibling.innerHTML;

if (s != "Loading ...") {

return;
}
ob_url = url;
ob_tb = os.parentNode;
window.setTimeout("ob_tm()", 100);
}
}
if (s == "ik_l.gif") {
os.src = ctxPath + "/images/treeview/minus_l.gif";
ot.style.display = "block";
if (url != "") {
var s = ot.innerText;

if (s != "Loading ...") {
return;
}
ob_url = url;
ob_tb = os.parentNode;
window.setTimeout("ob_tm()", 100);
}
}

if (s == "us_l.gif") {
os.src = ctxPath + "/images/treeview/plusik_l.gif";
ot.style.display = "none";
}
}
function ob_ex(os, url, ctxPath) {
var ot = os.parentNode.parentNode.nextSibling.firstChild.nextSibling;
var lensrc = (ost.src.length - 8);
var s = ost.src.substr(lensrc, 8);
if (s == "usik.gif") {
ot.style.display = "block";
ost.src = ctxPath + "/images/treeview/minus.gif";
if (url != "") {
var s = ot.innerText;
if (s != "Loading ...") {
return;
}

ob_url = url;
ob_tb = ost.parentNode;
window.setTimeout("ob_tm()", 100);
}
}
if (s == "ik_l.gif") {
ot.style.display = "block";
ost.src = ctxPath + "/images/treeview/minus_l.gif";
if (url != "") {
var s = ot.innerText;
if (s != "Loading ...") {
return;
}
ob_url = url;
ob_tb = os.tparentNode;
window.setTimeout("ob_tm()", 100);
}
}
}

function ob_tm() {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", ob_url, false);
xmlhttp.setRequestHeader("Content-type", "text/html");
xmlhttp.send();
ob_tb.parentNode.nextSibling.firstChild.nextSibling.innerHTML = xmlhttp.responseText;
}

function ob_ft(e) {
if (e.tagName == "TD" && e.className == "wcs_td") {
if (typeof op2 != "undefined") {
op2.className = "wcs_td";
}
e.className = "wcs_tds";
op2 = e;
}
else {
//ob_ft(e.parentNode);
}
}

function ob_os(e){
var os = e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.children(0).children(0).children(0);
if ((typeof os != "undefined") && (os.tagName == "IMG")) {
var lensrc = (os.src.length - 8);
var s = os.src.substr(lensrc, 8);
if ((s == "inus.gif") || (s == "usik.gif")) {
os.click();
}
}
else {
ob_os(e.parentNode);
}
}

I badly need help............ :(

thanks!
ann
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2006
Added on Jun 2 2006
2 comments
73 views