...

XML Data Array Error

Skyzyx
01-30-2003, 03:25 PM
Hey guys...

I'm getting an error on line 126 of calJS.js, and I can't seem to figure out why. I've set some alert()'s to try to debug, and I think they're still in there.

I'm trying to dig through an XML file for information to populate into my calendar script. I haven't yet added that functionality, cause I keep running into this error:

"xmlDateArr[k] has no properties."

I get the same error in Moz 1.3 and IE6.

I've attached the complete source...

Skyzyx
01-31-2003, 01:52 AM
Nevermind...


// Instead of
for (x=0; x<=xmlDateArr.length; x++)

// I needed
for (x=0; x<=xmlDateArr.length-1; x++)


Thanks anyways...

mpjbrennan
02-01-2003, 02:18 PM
Hi Skyzyx,

Glad you could solve you problem - that js error message is no real help - if it just said 'array index out of range or something like that it might be useful.

patrick



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum