>> Any of these options make any sense against what you are trying to do
?

yes, Gary, thankyou.

>> render the XML as a string into a "generated" JS section of the page
and have JS then create an XML DOM from it.

...sounds like what I'm after.

thanx again
barry.b




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Menzel
Sent: Monday, 6 December 2004 5:35 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: load CF generated xml doc into JS

If you are using a data island (a la <xml>) then why not use a
"toString" type of thing on the XML document in CFMX and just output
it between the data island tags?

Although - I have read both the original and the restated version -
and I am not sure I completely understand what you are trying to do
either.

If I restate it again myself in more general terms...... You want a
CFMX variable passed over to a JS variable.  You used the term "data
island" so I would immediately say "Render the contents of the data
island with CFMX as a string and then read it in JS from the data
island".  If that doesn't work, then render the XML as a string into a
"generated" JS section of the page and have JS then create an XML DOM
from it.

It is even possible to create an XML data island and give it a SRC
attribute (which I am guessing could be a CFMX page) and have the data
island imported that way - then manipulate the XML DOM from JS.

Any of these options make any sense against what you are trying to do ?

Gary


On Mon, 6 Dec 2004 16:38:26 +1000, Barry Beattie
<[EMAIL PROTECTED]> wrote:
> 
> >> This isn't something that <cfwddx action="cfml2js" ... couldn't
> fix, is it?
> 
> That's part of the problem, Robin. Poor ol' wddx wouldn't be able to
> cope with such a complex document (attributes and nested child nodes
> hanging all over the place). Even if it could it'd be a case of
> (server-side) cfml2js then (client-side) js2xml since the pages are
> already using xml to do stuff, not arrays (think data island and
copying
> nodes from one xml doc to another).
> 
> so the only other ways (it seems) to get xml into a page is to
> explicitly use JS to "load" an existing document (from a given path)
as
> an object OR request and send it in the response stream (using the
> xmlhttprequest object).
> 
> that's why I'm trying to find another way...
> 
> thanx
> barry.b
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Robin
> Hilliard
> Sent: Monday, 6 December 2004 3:46 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: load CF generated xml doc into JS
> 
> Barry Beattie wrote:
> 
> > still no nibbles? gee, there seems to be a lot of "traffic" over
code
> standards and cfscript....
> >
> > ...hmmm
> 
> Your first post went over my head at least 8-)  "Push" to me means
comm
> server.  This isn't something that <cfwddx action="cfml2js" ...
couldn't
> 
> fix, is it?
> 
> Robin
> http://www.rocketboots.com.au
> 
> ---
> 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/
> 
> ---
> 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/
>

---
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/


---
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