koora — 2010-04-19T11:32:19-04:00 — #1
I got this page:
Everything works fine when I add DIRNAME to the array strings in PHP,
but if I want to concatenate the strings in this for loop, it gets weird.
I've tried alert() both arrays when they are the same, and there is no difference there, however when the array of files (fadeimages) is supposed to get loaded into the slideshow it doesn't get displayed.
When I look it from the Google Chrome Inspect element, the image src is the url and /i. That's the begging of the path name, but why only the first letter?
Sorry for the wrong title, I quess the string concatenation really is working.
logic_ali — 2010-04-19T22:24:12-04:00 — #2
Did you actually write fadeshow? Only this code would be responsible for your problem:
koora — 2010-04-20T05:26:21-04:00 — #3
I didn't write teh slideshow script.
Why would it be different,
IF PHP generates the array
It would look like this:
They look identical, I proved it with alerting both, when they were the same.
However one is working (PHP generated), and the other isn't.
I think the problem could be with the slideshow script,
however it doesn't make sense, unless there is some string specific thing going on.
logic_ali — 2010-04-20T06:15:02-04:00 — #4
The script appears to be expecting a two dimensional array, but that may not be what your script is producing, even if it alerts the same.