Subject: [xsl] XSL transformations with Javascript From: "Hasselback, Matt" <matt.hasselback@xxxxxxxxxxxxxxxx> Date: Mon, 4 Jun 2001 11:07:01 -0400 |
Hello ALL, This question is in three parts, fairly unrelated ... all fall under the but I figured to ask them in one message to not annoy those of you, with a second message... ! I apologize, its rather difficult to explain these scenarios clearly, hopefully the basics are there, and someone with experience in the matter already will pickup on it! 1.) I try to display status messages while I am doing transformations, etc... For example... If I run the following script, the "LOADING..." never gets displayed... resultDIV.innerHTML = '<TABLE ALIGN="CENTER" BORDER="0" HEIGHT="100%"><TR><TD>LOADING...</TD></TR></TABLE>'; resultDIV.innerHTML = data.transformNode(ss.XMLDocument); If I place an alert in between these statements, I can see that it does change, but just before the transformation replaces it with the transformNode() Ultimately I learned that I could call the second statement with a settimeout() and that would achieve the desired results. I feel like this is a bit of a hack, and was hoping someone could explain this in greater detail, or even explain why! Does JavaScript run asynchronously? 2.) Next I decide to replace the boring text with an animated GIF! I replaced the first line to be: resultDIV.innerHTML = '<TABLE ALIGN="CENTER" BORDER="0" HEIGHT="100%"><TR><TD><IMG SRC="images/load_data.gif"></TD></TR></TABLE>'; Problem: the GIF isn't animated. If I display the graphic on any page in the <HTML> I have no problems, and the graphic is animated... but for some reason, if I set the innerHTML of the div, with the graphic, it remains at the first layer/frame of the .GIF. Any ideas on how to make my GIF animated again? 3.) If I place a <script>alert('something here')</script> in my stylesheet, perform a transformation, the script never gets executed... is it possible to do this? Thanks for any of your time, help or information!!! -Matt XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] whitespace as a parameter, MacEwan, James (Info | Thread | Re: [xsl] XSL transformations with , David Rigby |
Re: [xsl] whitespace as a parameter, MacEwan, James (Info | Date | Re: [xsl] RE: XSL and White Space h, Thomas B. Passin |
Month |