RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
st Subject: RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea? Thanks gunnar.. I've used regex stuff for simple string manipulation.. but I can't see how it could be applied to arbitrarily reduce the length of an html string??.. at least.. not without a l

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
PROTECTED] On Behalf Of Jayson K Hanes Sent: 17. januar 2006 20:03 To: Flashcoders mailing list Subject: RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea? Thanks gunnar.. I've used regex stuff for simple string manipulation.. but I can't see how it could be applied t

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
Behalf Of Jayson K Hanes Sent: 17. januar 2006 20:03 To: Flashcoders mailing list Subject: RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea? Thanks gunnar.. I've used regex stuff for simple string manipulation.. but I can't see how it could be applied to arbitrarily red

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread pixelassembly
o many options already :) cheers, glenn - Original Message - From: "Jayson K Hanes" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, January 18, 2006 10:21 AM Subject: RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea? Hmm

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
flashcoders- > [EMAIL PROTECTED] On Behalf Of Paul BH > Sent: Tuesday, January 17, 2006 6:18 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] efficient htmltext.reduce() function? > orsimilaridea? > > so, what you are trying to do is store information, and be able

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Paul BH
sage- > > From: [EMAIL PROTECTED] [mailto:flashcoders- > > [EMAIL PROTECTED] On Behalf Of Julius - XK > > Sent: Tuesday, January 17, 2006 6:05 PM > > To: Flashcoders mailing list > > Subject: Re: [Flashcoders] efficient htmltext.reduce() function? > > orsi

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
Yes you have the issue understood! :) > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Julius - XK > Sent: Tuesday, January 17, 2006 6:05 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] efficient htmltext

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Julius - XK
back up to include the "- Original Message - From: "Jayson K Hanes" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, January 17, 2006 5:14 PM Subject: RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea? Thanks for your

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread elibol
Hey Jayson, It sounds like the only problem with your algorithm is the periodical errors it runs into, where it breaks the html. If you put some elbow grease into it you could write a serious algorithm that analyzed the tag that was being evaluated for the cutoff point, and, if it were within a ta

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
ject: Re: [Flashcoders] efficient htmltext.reduce() function? > orsimilaridea? > > Why not just strip out tags ya don't need? Using regex strip out > all "" and "" and/or the "" and "" > stuff.. When I first started readin

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Julius - XK
asking.. All I used was "xmlToObject" and "traceObject" to get to this point.. You could also rework the xmlToObject to spit out what you want.. Hope this helps :) - Original Message - From: "Jayson K Hanes" <[EMAIL PROTECTED]> To: "Flashcod

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
.. -Jayson > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of elibol > Sent: Tuesday, January 17, 2006 4:06 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] efficient htmltext.reduce() function? >

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread elibol
I think I understand now, if you have a large html text body and you want to truncate it so that only a blurb of the whole is displayed, you could use, say, 10 with the reduce(10) function, and have only 10 percent of the text displayed? Or 10 percent of the text truncated? I feel like I could be r

Re: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread elibol
> > [EMAIL PROTECTED] On Behalf Of Jayson K Hanes > > Sent: Tuesday, January 17, 2006 2:33 PM > > To: Flashcoders mailing list > > Subject: RE: [Flashcoders] efficient htmltext.reduce() function? > > orsimilaridea? > > > > Say I have this htmltext > &

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
shcoders- > [EMAIL PROTECTED] On Behalf Of Jayson K Hanes > Sent: Tuesday, January 17, 2006 2:33 PM > To: Flashcoders mailing list > Subject: RE: [Flashcoders] efficient htmltext.reduce() function? > orsimilaridea? > > Say I have this htmltext > > "hello worldabc123hi ag

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-17 Thread Jayson K Hanes
ashcoders- > [EMAIL PROTECTED] On Behalf Of elibol > Sent: Tuesday, January 17, 2006 2:25 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] efficient htmltext.reduce() function? > orsimilaridea? > > I hate to impose, but my curiousity is forcing me to question: