Ajax / javascript Poll Problem -:\ Need Help

Discussion in 'HTML & Website Design' started by jfontestad, Jan 28, 2007.

  1. #1
    I have an AJAX poller that i downloaded from http://www.dhtmlgoodies.com/index.html?whichScript=ajax-poller. Here is the problem.

    I'm trying to add it to my website, but i'm getting javascript errors when I do.

    I've tryed a few things.

    1) I tryed running it within the <body> tag. and it worked fine.
    2) I added a <div> and it worked fine again.

    3) I added another <div> [code would be]<body><div><div>(script code here) , but this doesn't work. For some reason when it's in the 2nd div it doesn't work properly. :\ Get a javascript error " 'length' is null or not an object."

    Can anyone help me out with this?
     
    jfontestad, Jan 28, 2007 IP
  2. pbmods

    pbmods Guest

    Messages:
    18
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you getting a line number with that error?

    Check to see where you're trying to access something.length and figure out whether or not that something is defined at that point.
     
    pbmods, Jan 28, 2007 IP