*** Just saw Kyle's response, and he is correct. *** However, in order not to waste some typing.... :)
Well, you need to understand the difference between the actual DOM object that you are referring to with it's associated properties and methods vs. the text contained within the DOM object itself. First, did you test the DOM Object using the values .innerHTML and .value ? It's not clear that you did that. Second, does .toString() actually return the equivalent of what you are looking for? If so, then you need to pass your result through some sort of encoding algorithm to not break SWFObject's sensibilities. This is reasonable, IMO. If you actually want the DOM Object and all the properties associated with it, then I believe you will need to look into JSON, which specifically addresses converting Javascript objects into a portable string notation. But even then, depending on what you're looking to do with in in Flash/Actionscript, an encodeURIComponentized innerHTML representation is as good as it gets. Vincent On Wed, Jul 22, 2009 at 10:54 AM, Chris <[email protected]> wrote: > > I'm actually interested (if it is possible) in converting the DOM > object into a string (rather than just it's value), because I'd like > to use it as XML in Flash. > > So, for example, the html I'm trying to pull is: > > <div id="pageTitle"><h2>About Our Partnership & Services</h2></ > div> > > which obviously does have standard html tags. Can those not be > converted to a string? I suppose the quotes around "pageTitle" would > be an issue. I hadn't thought that the tags were a problem. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
