Results 1 to 2 of 2

Thread: Javascript error dddropdown: pcontent is null

  1. #1
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Javascript error dddropdown: pcontent is null

    1) Script Title: DD Drop Down Panel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.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?

    Code:
    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,920
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    Here, in your script code:

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jeroenNN (04-06-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •