[flexcoders] Re: Viewing HTML

2006-06-09 Thread Suzy Lawson
Drome- Thank you so much for your help. I was able to modify your regEx to make it work for my needs. I just needed to add in a piece for return characters and form feeds as well. The regex i used was: var pattern:RegExp = /\n|\r|\f/gi var htmlstr : String = htmlTextString.replace(pattern,

[flexcoders] Re: Viewing HTML

2006-06-09 Thread drome.dario
Glad to be useful. --- In flexcoders@yahoogroups.com, Suzy Lawson [EMAIL PROTECTED] wrote: Drome- Thank you so much for your help. I was able to modify your regEx to make it work for my needs. I just needed to add in a piece for return characters and form feeds as well. The regex i

[flexcoders] Re: Viewing HTML

2006-06-08 Thread Suzy Lawson
Yeah, that was Christophe's blog I believe. The problem with that is the iFrame is loading an HTML page that already exists on a server. What I need is a way to display HTML stored in client-side memory as a String. (wether it be in javascript or FLex). --- In flexcoders@yahoogroups.com, Phil

[flexcoders] Re: Viewing HTML

2006-06-08 Thread tonyx_788
hi Suzy i think Phil is talking about coenraets blog, this is the link hope it helps http://www.coenraets.com/apps/iframe/index.htm **Saludos** Tony --- In flexcoders@yahoogroups.com, Phil Marston [EMAIL PROTECTED] wrote: Hi Suzy, I can't remember which blog I saw it on (one of the Adobe

[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Suzy, Taking Christophe's example, I think that you can inject your in- memory-html into the HTMLDocument inside the iframe. --- In flexcoders@yahoogroups.com, Suzy Lawson [EMAIL PROTECTED] wrote: Yeah, that was Christophe's blog I believe. The problem with that is the iFrame is loading an

[flexcoders] Re: Viewing HTML

2006-06-08 Thread Brian Riggs
One thing you could try is to assign the String to an (e4x) XML object, set XML.ignoreWhitespace to true, and then output the result using XML.toXMLString(). This should cause whitespace between tags to be stripped out. -- Brian --- In flexcoders@yahoogroups.com, Suzy Lawson [EMAIL

[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Hi, It is not a problem with whitespace between tags, as Suzy said, it is a problem because of the cr/lf in the html code, let me explain: Supose that we have a string variable named param whose value is hello Brian\nHow are you?, then when one uses, i.e., ExternalInterface.call(jsFunc, param)

[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Just a thing I missed: I think that the effect being experienced by Suzy is a bug in the flex/flash serializer used by ExternalInterface. Let's hope that some adobe engineer read this or may exist any effective place where to send a request for bug consideration? --- In