ReportingAnalyst
MIS
Hi,
I have a function which creates a cookies and sets the cookie value. The cookie stores the state of the browser which I left while I am seeing the reports so that when I come back to this page, I get to see last state I left it in. Users log into this page through Integrated Windows Authentication(IWA) where there NT ids are checked against the db. If they do not exist in the database, then a message appears that their names are not in the database.
At that time, I see an error at the Java Console - Object Expected at line 247.
Line 247 is the bold line in the following function:
What can I do to turn this off, in case there is nothing on the form?
Thanks.
I have a function which creates a cookies and sets the cookie value. The cookie stores the state of the browser which I left while I am seeing the reports so that when I come back to this page, I get to see last state I left it in. Users log into this page through Integrated Windows Authentication(IWA) where there NT ids are checked against the db. If they do not exist in the database, then a message appears that their names are not in the database.
At that time, I see an error at the Java Console - Object Expected at line 247.
Line 247 is the bold line in the following function:
Code:
function do_onload()
{
//alert("on_load");
//var cookiename=(typeof persisttype!="undefined" && persisttype=="sitewide")? "tabcontent" : window.location.pathname
var cookiename=window.location.pathname + '_tree'
var cookiecheck=get_cookie(cookiename).length != 0;
//alert(cookiename);
//alert(cookiecheck);
if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck)
{
openedItems = get_cookie(cookiename);
//alert("Here b4 '" + openedItems + "'");
var displayItems = openedItems.split("&");
for(i=0; i<displayItems.length; i++)
{
if (displayItems[i].length != 0)
{
// Set the value to 'block'
//alert(displayItems[i]);
obj = document.getElementById(displayItems[i]).style;
[b]obj.display = 'block';[/b]
}
}
}
What can I do to turn this off, in case there is nothing on the form?
Thanks.