Results 1 to 2 of 2

Thread: Pause up-down scroller "undefined" for one entry

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Pause up-down scroller "undefined" for one entry

    1) Script Title: Pause Up-Down Scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    3) Describe problem: I have implemented this scroller as a web part on a portal page and it works great. The only issue that I can't seem to overcome is that when the scroller is populated with a dataset, and there is only one entry the first time through the scroller displays the first entry and then scrolls "undefined". After the initial run the scroller only displays the valid data.

    I've tried to change the .js file's div tags and content array, checking for "", null value, and < 0 length with no success thus far. Any help with this matter would be greatly appreciated. Thank you.

  2. #2
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    I figured out the problem - The issue was not with the attached .js file, it was within the C# class that was handling the population of the dataset for the scroller array.

    Thanks to the post by jscheuer1 ( http://www.dynamicdrive.com/forums/s...02&postcount=6 ) I made the appropriate adjustment to the for loop that read the dataset and decrimented the counter to repeat the first item in the array if there is only one.

    Thanks to all who've posted to this forum and for the great scripts!

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
  •