Loading...
 
Skip to main content

Features / Usability


Javascript Errors

Hi, I am getting the following Javascript errors.


tiki_cookie_jar is not definied

Image
Copy to clipboard
function setSessionVar(name,value) { var request = getHttpRequest( "GET", "tiki-cookie-jar.php?" + name + "=" + escape(value)); request.send(''); tiki_cookie_jar[name] = value; }



document.getElementsByName(foo + "icn")(0) is undefined

Image
Copy to clipboard
function setsectionstate(foo, def, img) { var status = getCookie(foo, "menu", "o"); if (status == "o") { show(foo); if (img) src = "o" + img; } else if (status != "c" && def != 'd') { show(foo); if (img) src = "o" + img; } else /*if (status == "c")*/ { hide(foo); if (img) src = img; } if (img) document.getElementsByName(foo + 'icn')[0].src = document.getElementsByName(foo + 'icn')[0].src.replace(/[^\\\/]*$/, src); }


Also, "show/hide right/left menus" does not work in IE 7, but does work in Firefox. The error in IE says

"Could not get display property. Invalid argument."



Is anyone familiar with a fix or can tell me the problem? Thanks.

One fix is to use a *lite.css-based themeQuestion 😉. These themes, which are based on a liquid layout method developed by Tiki-dev luci, use different javascript and don't produce the error. Maybe a javascript whiz could adapt the code to table-using themes. But I don't really think many Tiki sites use the column-flipping feature, which may be why there haven't been many (any?) complaints about this error. I have asked on #tikiwiki but didn't see any response yet. If I don't hear anything, I'll submit a bug report at dev.tikiwiki.org and add this to the list of release 1.10 things to do, if it isn't at those places already.

-- Gary


I would love to use Mittwoch, however, I was waiting for your release as discussed on the themes.tikiwiki.org boards. As soon as it becomes available, I will be using it.