[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Rodrigo Paiva

You can gzip the response on the fly. You can use ob_* functions and
gzcompress() to send the content gzipped.


On Oct 19, 11:01 am, "Sridhar Kuppalli" <[EMAIL PROTECTED]>
wrote:
> Thanks man,
>
> Its really a good one, my request time for jquery library has been reduced
> by 50%.
> In the similar way I have to do for other js files also. Is there any way to
> achive gziping?
> I cannot configure apache.
>
> Regards
> Sridhar K N
>
> On Sun, Oct 19, 2008 at 3:34 PM, poncz <[EMAIL PROTECTED]> wrote:
>
> > You can use
> >http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
> > it is minified, gzip, and the load is not on your servers.
> > It is a free google ajax service.
>
> > Enjoy,


[jQuery] each() odd behavior

2008-09-04 Thread Rodrigo Paiva

Hello.

I'm trying to make external links open in a new window but the each()
seems a little strange.

Am I missing something in the code below?
Because "this" gets the "href" attribute of the element, instead of
getting the current element itself.
The strangest of it all is when I run this snippet right into
firebug's console, it works! And when I place it into my jQuery scope,
it doesn't.

$('a[rel*="external"]').each
(
function()
{
$(this).click
(
function()
{
window.open(this.href);
return false;
}
);
}
);