tucker
Newbie
Posts: 1
Registered: 1/17/2004
Member Is Offline
|
| posted on 1/17/2004 at 09:58 PM |
|
|
items[...].height error
I can't get the scroll to work. I am getting an error saying:
'items[...].height' is null or not an object
I have size set to 500, 35 in scroll.tpl0.js
Any suggestions? Thanks.
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 1/20/2004 at 09:44 AM |
|
|
You've probably mistaken at items' definition. Please check your ITEMS var, it should not caontain empty items, e.g.:
{
'file': '',
'content': 'content1',
'pause_b': 1,
'pause_a': 0
},
,
//^ This mean an empty item with no members, and causes scroller error.
{
'file' : '',
'content' : 'content2',
'pause_b' : 1,
'pause_a' : 0
}
|
|
|
JugglingReferee
Junior Member
Posts: 3
Registered: 4/22/2003
Location: Waterloo, Ontario, Canada
Member Is Offline
|
| posted on 1/25/2004 at 04:42 AM |
|
|
Hmm...
I assigned a string to content (= content1). Should it be a specific value?
With 'content'='content1', the script still fails.
Ideas anyone?
Problem solved: remove the last comma in the scroll.tpl0.js file. The file should end with a closing curly brace and a closing bracket.
|
|
|