hi all

 

the problem is that I need to “push” a CF generated xml doc into a JS variable when the page is being rendered (along with other CF values). I’m looking for another way other than using client-side “get methods” (see below) or converting the whole HTML page to XML with XSLT to render it (to overcome the mixed content).

 

I also can’t use the page to read an existing xml file on the server because of the amount of maintainance req’d to ensure it’s always cleaned up, etc. I’m looking for a solution that, as far as the MVC framework is concerned is just like getting another CF var to send to a UI custom tag.

 

can anyone suggest another way to do this that I’ve missed?

 

thanx

barry.b

 

 

=======================================

I’ve been using this to get an existing xml doc into a js variable (as a client request) but won’t help here because the doc remains on the server. <cfcontent deletefile="true"> would have to be run after the doc is loaded into the browser, and if something goes wrong, leaves it sitting on the server, requiring cfschedule or whatever to clean it up. Yuck!

<script>

            var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")

            xmlDoc.async="false"

            xmlDoc.load(path)

</script>

   ……………………………..

I use this to get an xml doc dynamically once the page has loaded (uses url vars to query and convert results to xml that then writes to the response stream) but the problem here is it’s not part of the same call to get the other CF-generated values from the controller – and it needs to be.

<script>

            var oXMLHTTP = new ActiveXObject("Msxml2.XMLHTTP");

            XMLHTTP.Open("GET", sUri, false);

            oXMLHTTP.Send(sUri);

            xmlDoc =  oXMLHTTP.responseXML;

</script>

================================

 

 

 

 

 

 

 

 

Barry Beattie

CF Web Developer

Alpha Business Systems

[EMAIL PROTECTED]

 

Ph: +61 07 3216 0999

 

Unit 1, 31 Thompson Street

Bowen Hills QLD 4006

www.alphabus.com.au

 

Virus Disclaimer: Please note that this email may contain computer-generated file(s) as an attachment.  Whereas we take every effort to protect our files from computer virus, we recommend that you check the file(s) with your own virus detection software prior to opening it.  If you would prefer to receive a hardcopy of the file please email or phone. Alpha Business Systems does not accept liability for the consequences of any computer viruses that may be transmitted with this email.

Confidentiality: This email and any attached files are intended solely for the addressee(s) and may contain confidential and privileged information. If you received this email in error, please advise us by return email or phone and disregard the contents and immediately delete it and destroy any copies

 

 

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to