[Javascript] JavaScritpt simple compression code

Eligio Morgado eligio at gmail.com
Fri Feb 18 05:59:45 CST 2005


Hi Hakan.

I have not found any way to send as POST. 

I have been doing lot of test and I can affirm that code works with GET and IIS.

This code will always run on my Internet server (IIS) and my users
always navigate with iexplorer. That's why I don't need to make code
cross-browser compatible.

Belive me that I don't like the way I do the things. My first idea was
do hidden posts. I have tried lot of bizarre ways, iframes, popups...
lot of time trying to find the way.

Finally my code works. But as I expected, it takes lot of time for
doing the GETs. Sometimes I need to split the original string in 90
pieces!! Imagine: split, send a part, wait for ASP processing, process
ASP returning.... and start again... split, send a part....

I'm googling and I have found many solutions for compression. What do
you think about using LZ for compressing the string??

The algorithm seems to be easy and quick. I don't mind in wasting 5-6
secons (for example) compressing the string if this reduce the number
of GETS.


On Fri, 18 Feb 2005 12:41:32 +0100, Hakan M (Backbase)
<hakan at backbase.com> wrote:
> There is no way you can send it as a POST instead of a GET? GET is evil,
> especially with IIS and Microsofts new "security" updates.
> It would have to be a grand novel not to fit in the size limits of a
> POST request.
> 
> Regards,
> H
> 
> Eligio Morgado wrote:
> > Hi Paul.
> >
> > I tried this as first solution after using XMLHttp :-)
> >
> > But there were many problems related with browser security when doing
> > submit on _hidden_ forms.
> >
> >
> >>What about this:  in JavaScript create a child window, write into it all
> >>the data you need to transmit to the server in a hidden form field, submit
> >>that form, and close the window.  No compression, but at least you could
> >>send everything in one go.
> >>
> >>Paul
> >>
> >>
> >
> >
> >
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


-- 
____________________________________________________________________

Este correo electrónico puede contener información confidencial y/o
privilegiada, pero también puede ser que contenga una parida. Si usted
no es el destinatario arriba mencionado del mensaje (o ha recibido
este correo electrónico por error) por favor notifíquelo
inmediatamente al remitente y destruya este e-mail así como todo el
contenido de su disco duro. Cualquier copia no autorizada, divulgación
o distribución del material incluido en este correo electrónico queda
estrictamente prohibida, o no.

This e-mail may contain guachu guachu guachu



More information about the Javascript mailing list