Re: Loop Quirk??

Michael Graham <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
> alert(t);
> But when I set the innerHTML of a div immediately after like so.
>
> window.getObject(name).innerHTML = t;
>
> It removes a beginning chunk of the string
[snip]

Can you post the entire template code (just the loop part) and the
javascript source code that gets generated from it?

Where do 'name' and 't' get assigned?  If name doesn't change from
iteration to iteration, then maybe window.getObject(name).innerHTML
gets clobbered by an assignment in a later iteration of the loop?


Michael


--
Michael Graham <[email protected]>




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.