function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GlenSteinhardtGlenSteinhardt 

jsQuery not displaying when 'showheader="true"'

Hello,

 

I've created a visualforce page with a little 'coverflow' type thing going on...scroll the mousewheel and you can navigate through images.  

 

The page works very well when the code does not display the header or sidebar:

 

<apex:page showHeader="false" sidebar="false">

 However, when I try to display as it's intended to be seen...with the sidebar and header, nothing is displayed.

 

<apex:page showHeader="true" sidebar="true">

 All surrounding code is displayed as expected....all CSS, HTML, etc.  However, the area where the .js is being called is just a black rectangle.

 

I know this is somewhat vague, but I'm hoping this is a common error with a quick answer.  I'm happy to add supporting images / code as necessary.

 

Thank you so much for your help.  I'm racking my brain here.  It took me a while to realize that it's simply the header that's causing it and not incorrect paths to static resources, etc..

Rahul SharmaRahul Sharma

GlenSteinhardt,

All the javascipt and Css files are placed inside header of the page. 

So when you turn it on then, It might happen that your script conflicts with standard script, sometimes had happened with me while use of jQuery.

 

So, Did you checked if there is any javascript error(If not then use webdeveloper or firebug for JS debugging)?