Re: Re: Loop Quirk???

Michael Graham <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
> Ok, here goes, the onChange event kick starts the request to a perl script
> which sends back the data to for innerHTML and targets the <DIV
> id="select">.  This works np in FF.

Okay, I will freely admit that I'm out of my depth with this
XMLHTTPRequest stuff.

But I'm beginning to see what you're saying.  I had originaly thought
you meant that your TMPL_LOOP was generating the javascript.

Okay.  Now I understand that in the code:

> alert(t);
> window.getObject(name).innerHTML = t;

the 't' variable contains the complete output of your Perl cgiapp
program, as generated from a TMPL_LOOP.  Have I got that right?

If alert(t) shows what you expect, then I highly doubt that this is a
problem with HTML::Template loops.

More likely, you are either (a) generating HTML that has a subtle flaw
in it (but which is ignored by Firefox), or (b) your HTML elements are
nested in in a way that IE can't deal with.

So I guess I asked you to post the wrong part.  What you really should
be looking at is the value of 't', i.e. the rendered HTML::Template
loop; examining it for strutural or syntax problems.


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.