PDA

View Full Version : Javascript error dddropdown: pcontent is null



jeroenNN
04-03-2009, 07:47 AM
1) Script Title: DD Drop Down Panel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm

3) Describe problem: The script seems to work, but generates 5 times the javascript error described below (IE7/IE8/FF3). Can somebody please help me?


Error: pcontent is null
Source File: http://192.168.172.54/js/dddropdownpanel.js
Line: 112

To visit the site (you do not have to login to see the error) go to http://217.170.32.40:8082 . You will be forwarded to the site.

jscheuer1
04-03-2009, 02:38 PM
Here, in your script code:


var voicemailpanel=new ddpanel({
ids: ["voicemailpanel", "voicemailcontent", "voicemailpaneltab"], // id of main panel DIV, content DIV, and tab DIV
stateconfig: {initial: "1px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
animate: {enabled: true, steps: 8}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
pointerimage: {enabled: true, src: ["/en/images/arrow-down.gif", "/en/images/arrow-up.gif"]},
closepanelonclick: {disable: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
})


There is no element on the page by that id though. Now, perhaps after a successful login there would be, I don't know. Also, you have numerous other new ddpanel declarations. If their associated markup is not on the page, there will be an error for each one that lacks corresponding markup.