We are having trouble with our customer center showing the navigation in the show orders screen that normally shows up at the bottom in the event that the customer has more than one page worth of orders.
Previously we had solved this problem by overloading the CSS according to the following thread we posted a few months ago.
https://usergroup.netsuite.com/users/showthread.php?t=11738&page=3&highlight=visibility%3Ahidden
For the full solution, please refer to the above post, but in short, we created something along the lines of this:
function adjustLowerPanel() {
var myRater2 = document.getElementById("div__footer");
myRater2.removeAttribute("style");
myRater2.style.cssText = "width:980px; visibility: visible; width: 980px; background-color: rgb(255,255,255);"
document.getElementById( 'div__footer').setAttribute( 'className', 'noprint;');
}
Now we are having trouble loading this function. We have added to it to do a window.alert function to confirm that it is getting called, however, we are finding it impossible to overload the "visibility: hidden" style attirbute in the div__footer block.
When we look at the source of the page, the body onload attributes are set with "resetDivSizes(); pageinit();; ccpage(); " .... the ccpage(); being the only attribute that we are adding here. However, it is not getting called on page load.
We have confirmed that our function has been loaded into the page by:
1.) Looking at the source using Firebug.
2.) Adding a window.alert function to our function ccpage();
3.) Setting another function to call our ccpage(); function on window.resize();
When you resize the page, the alert pops up as to be expected.
However, this proves that our function is not being loaded onLoad as would be expected.
The exact code that netsuite is creating is:
<body marginwidth="0" marginheight="0" onload="resetDivSizes(); page_init();;ccpage();" topmargin="0" leftmargin="0">
My questions are:
1.) Why does the pageinit() function in the body tag attributes have two semicolons after it?
2.) Why does the pagination not show up in the first place, and why does it set the style attribute to "visibility:hidden"?