[jQuery] Re: New plugin - Linked Selects

2007-09-14 Thread Erik Beeson
Looks great. Wanted to let you know that it works on Safari/OSX.

--Erik


On 9/14/07, Rob D <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Sometime ago I built my first plugin called linkedSelects and I would
> finally like to
> announce it to the list.
>
> You can see it in action and download the code here:
>
> http://www.msxhost.com/jquery/linked-selects/json/
>
> I have only been able to test it in the latest versions of Firefox and IE.
>
> I would like to thank Remy Sharp for the initial idea, Joel Birch for
> some pointers on building plugins and especially my good friend Shelane
> Enos for the collaboration.
>
> I would appreciate any feedback in the way of suggestions and
> improvements.
>
> Have a great weekend everyone...
>
> Rob
>


[jQuery] Re: New plugin - Linked Selects

2007-09-14 Thread Richard D. Worth
Nice work! I just played with it for a second, but it's great. This is going
on my short list :) Thank you.

- Richard

On 9/14/07, Rob D <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Sometime ago I built my first plugin called linkedSelects and I would
> finally like to
> announce it to the list.
>
> You can see it in action and download the code here:
>
> http://www.msxhost.com/jquery/linked-selects/json/
>
> I have only been able to test it in the latest versions of Firefox and IE.
>
> I would like to thank Remy Sharp for the initial idea, Joel Birch for
> some pointers on building plugins and especially my good friend Shelane
> Enos for the collaboration.
>
> I would appreciate any feedback in the way of suggestions and
> improvements.
>
> Have a great weekend everyone...
>
> Rob
>


[jQuery] New plugin - Linked Selects

2007-09-14 Thread Rob D


Hi,

Sometime ago I built my first plugin called linkedSelects and I would 
finally like to

announce it to the list.

You can see it in action and download the code here:

http://www.msxhost.com/jquery/linked-selects/json/

I have only been able to test it in the latest versions of Firefox and IE.

I would like to thank Remy Sharp for the initial idea, Joel Birch for 
some pointers on building plugins and especially my good friend Shelane 
Enos for the collaboration.


I would appreciate any feedback in the way of suggestions and improvements.

Have a great weekend everyone...

Rob


[jQuery] Re: OT: Hosting Service

2007-09-14 Thread Benjamin Sterling
I've been using site5.com for the past two years and all has been good.

On 9/14/07, DaveG <[EMAIL PROTECTED]> wrote:
>
>
> I've been using asmallorange.com for a few years now, and have had
> nothing but good experience. Very cheap, as many add-ons/parked domains
> as you like. Pretty much the only restriction is bandwidth and disk space.
>
>   ~ ~ Dave
>
> Glen Lipka wrote:
> > I used to use Powweb, but the site was unbearably slow for me.  Pings
> > were 3x slower than anywhere else.
> > So I switched to LunarPages.  It has good speed, but the service fails
> > every other day.
> > (using siteUptime.com to check every 5 minutes)
> > http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056
> >  -
> LAME
> >
> > For the company site, I switched to MediaTemple.  Good service, has not
> > been down, with good speed.  But It's too expensive for me personally
> > and the Plesk UI makes me dizzy.
> >
> > Does anyone have a strong recommendation for a host?
> >
> > Requirements:
> >
> >1. Wordpress
> >2. PHP
> >3. Free Parked Domains
> >4. Sub Domains
> >5. Fast
> >6. Reliable
> >7. Nice UI
> >8. Inexpensive.
> >
> > Anyone have experience with bluehost.com ?
> >
> > Thanks,
> >
> > Glen
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Interacting with the MultiFile Upload Plugin

2007-09-14 Thread musetracks


I'm working on a project where I'm using two plugins in tandem, if you will. 
I'm using the MultiFile plugin and the AjaxFileUpload plugin together to
validate files (size, etc.) at the time they're selected.  The sequence
looks like this:

1.  User selects a file which triggers the change event.
2.  The MultiFile plugin's built-in handler does its then and then a custom
handler uses the ajaxFileUpload plugin to upload the selected file for
validation, etc.
3.  Any errors are returned and reported.

My question is similar to that asked in 
http://www.nabble.com/Get-File-Count--%2B-Extended-error-message.-tf4344574s15494.html
this thread .  If there's an error, I need to remove the invalid input. 
I've done this manually, but the manual operation doesn't decrement the
counter that is tested for compliance with any max fields setting.

How can I interact more effectively with the MultiFile plugin? 
Specifically, I'd really like to know if/how I can trigger the plugin's
native function to delete a file input.  If I can make that happen, then the
counter will be decremented automatically for me.

Any help would be much appreciated.  Everything I've tried has failed. 
Badly.

Thank you.

Rob Wilkerson
-- 
View this message in context: 
http://www.nabble.com/Interacting-with-the-MultiFile-Upload-Plugin-tf4446230s15494.html#a12686559
Sent from the jQuery Multiple File Upload mailing list archive at Nabble.com.



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Karl Swedberg

Hi Glen,

Actually, I stumbled upon the DEFLATE option when I searched for  
"gzip" on my web host's wiki (http://wiki.dreamhost.com/DEFLATE). I  
imagine some hosts allow gzip, some mod_deflate and some both. I  
think mod_deflate requires Apache 2, so if your hosting provider's  
server is an older Apache version, it probably won't work. Since this  
is something that depends on the server, you should dig around in  
your host's documentation or send their tech support an email and see  
if they can help you with that. I hope your host allows DEFLATE,  
because it's so ridiculously easy.



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 14, 2007, at 9:41 PM, Glen Lipka wrote:

I did.  Maybe they font have those modules enabled?  How could I  
check?



Glen

On 9/14/07, Joan Piedra <[EMAIL PROTECTED] > wrote:
Glen, just put that .htaccess in the webroot and should work pretty  
well, note that your server needs the deflate and headers modules  
to be enabled.


Hope this can be useful to anyone :)

On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
Where does that .htaccess file go?  Just in the root?  Or in every  
folder that has a page?


Glen

On 9/14/07, Joan Piedra <[EMAIL PROTECTED] > wrote:
I've found this to be the easiest and unobstrusive way to gzip my  
files with a .htaccess file.





# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml  
application/x-javascript


# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html






On 9/14/07, seedy < [EMAIL PROTECTED]> wrote:


I also had the same thing happen.
14kb is only after it has been gzipped by your server.
The version you are downloading has been minified, Its up to you to  
do the

gzipping.


lukwe wrote:
>
>
> When I go to the GoogleCode page for the minified version it  
idsplays a 46

> kb file to download;
> seems like the file had been deflated again by the server (?!?).
>
> Is anyone else experiencing this ??!?
>
>
> ciao
>

--
View this message in context: http://www.nabble.com/Downloading-1.2- 
minified%2C-getting-46kb-instead-of-14kb---%21-- 
tf4442334s15494.html#a12676468

Sent from the JQuery mailing list archive at Nabble.com.




--
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/




--
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/





[jQuery] Re: OT: Hosting Service

2007-09-14 Thread DaveG


I've been using asmallorange.com for a few years now, and have had 
nothing but good experience. Very cheap, as many add-ons/parked domains 
as you like. Pretty much the only restriction is bandwidth and disk space.


 ~ ~ Dave

Glen Lipka wrote:
I used to use Powweb, but the site was unbearably slow for me.  Pings 
were 3x slower than anywhere else.
So I switched to LunarPages.  It has good speed, but the service fails 
every other day. 
(using siteUptime.com to check every 5 minutes) 
http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056 
 - LAME


For the company site, I switched to MediaTemple.  Good service, has not 
been down, with good speed.  But It's too expensive for me personally 
and the Plesk UI makes me dizzy.


Does anyone have a strong recommendation for a host?

Requirements:

   1. Wordpress
   2. PHP
   3. Free Parked Domains
   4. Sub Domains
   5. Fast
   6. Reliable
   7. Nice UI
   8. Inexpensive.

Anyone have experience with bluehost.com ?

Thanks,

Glen


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Glen Lipka
I did.  Maybe they font have those modules enabled?  How could I check?


Glen

On 9/14/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
>
> Glen, just put that .htaccess in the webroot and should work pretty well,
> note that your server needs the deflate and headers modules to be enabled.
>
> Hope this can be useful to anyone :)
>
> On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> >
> > Where does that .htaccess file go?  Just in the root?  Or in every
> > folder that has a page?
> >
> > Glen
> >
> > On 9/14/07, Joan Piedra <[EMAIL PROTECTED] > wrote:
> > >
> > > I've found this to be the easiest and unobstrusive way to gzip my
> > > files with a .htaccess file.
> > >
> > > 
> > > 
> > >
> > > # Compress some text file types
> > > AddOutputFilterByType DEFLATE text/html text/css text/xml
> > > application/x-javascript
> > >
> > > # Deactivate compression for buggy browsers
> > > BrowserMatch ^Mozilla/4 gzip-only-text/html
> > > BrowserMatch ^Mozilla/4\.0[678] no-gzip
> > > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
> > >
> > > 
> > > 
> > >
> > >
> > > On 9/14/07, seedy < [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > > I also had the same thing happen.
> > > > 14kb is only after it has been gzipped by your server.
> > > > The version you are downloading has been minified, Its up to you to
> > > > do the
> > > > gzipping.
> > > >
> > > >
> > > > lukwe wrote:
> > > > >
> > > > >
> > > > > When I go to the GoogleCode page for the minified version it
> > > > idsplays a 46
> > > > > kb file to download;
> > > > > seems like the file had been deflated again by the server (?!?).
> > > > >
> > > > > Is anyone else experiencing this ??!?
> > > > >
> > > > >
> > > > > ciao
> > > > >
> > > >
> > > > --
> > > > View this message in context: 
> > > > http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> > > >
> > > > Sent from the JQuery mailing list archive at Nabble.com.
> > > >
> > > >
> > >
> > >
> > > --
> > > Joan Piedra  ||  Frontend web developer
> > > http://www.justaquit.com/  ||  http://www.joanpiedra.com/
> >
> >
> >
>
>
> --
> Joan Piedra  ||  Frontend web developer
> http://www.justaquit.com/  ||  http://www.joanpiedra.com/
>


[jQuery] Re: OT: Hosting Service

2007-09-14 Thread Rey Bango


Try HostMySite.com. Great support and excellent reputation.

Rey

Glen Lipka wrote:

I used to use Powweb, but the site was unbearably slow for me.  Pings were
3x slower than anywhere else.
So I switched to LunarPages.  It has good speed, but the service fails every
other day.
(using siteUptime.com to check every 5 minutes)
http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056 - LAME

For the company site, I switched to MediaTemple.  Good service, has not been
down, with good speed.  But It's too expensive for me personally and the
Plesk UI makes me dizzy.

Does anyone have a strong recommendation for a host?

Requirements:

   1. Wordpress
   2. PHP
   3. Free Parked Domains
   4. Sub Domains
   5. Fast
   6. Reliable
   7. Nice UI
   8. Inexpensive.

Anyone have experience with bluehost.com?

Thanks,

Glen



[jQuery] Re: OT: Hosting Service

2007-09-14 Thread Erik Beeson
I've recently moved over to dreamhost from 1and1, mainly because dreamhost
gives me ssh access with a meaningful username and 1and1 made my username
something like u2039442532. I run half a dozen small sites off of my one
account, with different domains and sub-domains and mail. The Control Panel
UI is at least as nice as any other I've ever used.

Also, you get a $97 discount when you first sign up. There's a lot of
brouhaha surrounding the promo codes, but I used MAX97 and got the full $97
discount, which made the first year pretty cheap.

While I'm at it, my company uses Contegix for our managed hosting, and we've
been extremely happy with them.

--Erik


On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> I used to use Powweb, but the site was unbearably slow for me.  Pings were
> 3x slower than anywhere else.
> So I switched to LunarPages.  It has good speed, but the service fails
> every other day.
> (using siteUptime.com to check every 5 minutes)
> http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056 - LAME
>
> For the company site, I switched to MediaTemple.  Good service, has not
> been down, with good speed.  But It's too expensive for me personally and
> the Plesk UI makes me dizzy.
>
> Does anyone have a strong recommendation for a host?
>
> Requirements:
>
>1. Wordpress
>2. PHP
>3. Free Parked Domains
>4. Sub Domains
>5. Fast
>6. Reliable
>7. Nice UI
>8. Inexpensive.
>
> Anyone have experience with bluehost.com?
>
> Thanks,
>
> Glen
>


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Joan Piedra
Glen, just put that .htaccess in the webroot and should work pretty well,
note that your server needs the deflate and headers modules to be enabled.

Hope this can be useful to anyone :)

On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> Where does that .htaccess file go?  Just in the root?  Or in every folder
> that has a page?
>
> Glen
>
> On 9/14/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
> >
> > I've found this to be the easiest and unobstrusive way to gzip my files
> > with a .htaccess file.
> >
> > 
> > 
> >
> > # Compress some text file types
> > AddOutputFilterByType DEFLATE text/html text/css text/xml
> > application/x-javascript
> >
> > # Deactivate compression for buggy browsers
> > BrowserMatch ^Mozilla/4 gzip-only-text/html
> > BrowserMatch ^Mozilla/4\.0[678] no-gzip
> > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
> >
> > 
> > 
> >
> >
> > On 9/14/07, seedy < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > I also had the same thing happen.
> > > 14kb is only after it has been gzipped by your server.
> > > The version you are downloading has been minified, Its up to you to do
> > > the
> > > gzipping.
> > >
> > >
> > > lukwe wrote:
> > > >
> > > >
> > > > When I go to the GoogleCode page for the minified version it
> > > idsplays a 46
> > > > kb file to download;
> > > > seems like the file had been deflated again by the server (?!?).
> > > >
> > > > Is anyone else experiencing this ??!?
> > > >
> > > >
> > > > ciao
> > > >
> > >
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> > >
> > > Sent from the JQuery mailing list archive at Nabble.com.
> > >
> > >
> >
> >
> > --
> > Joan Piedra  ||  Frontend web developer
> > http://www.justaquit.com/  ||  http://www.joanpiedra.com/
>
>
>


-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: filter(fn)

2007-09-14 Thread Pluthos

Thanks Klaus and Wizzud

I really don't know what the problem is. Here is the latest thing I
tried.

// $
("#app_content_2356318").children('div').children('table').filter(function(index)
{ return false; }) ; // does not works with or without the index as
parameter. Nothing is removed

$
("#app_content_2356318").children('div').children('table').remove() ; //
works! The table is removed.

Really simple but I must be missing something crucial.
Some background: I am using Greasemonkey and Firebug. I am not using
the $(document).ready(function() {  because it does not seem to work
with Greasemonkey.

Pluthos


On Sep 10, 2:56 am, Wizzud <[EMAIL PROTECTED]> wrote:
> Yes, I must admit I did not test the actual documented example - I was
> heading more at the root of the problem, ie what wasn't working with
> Pluthos' script that caused him to try the example in the first place!
>
>
>
> Klaus Hartl wrote:
>
> > Pluthos wrote:
> >> Hi everyone,
>
> >> I am new to this group. I have been trying to get filter(function) to
> >> work for a few days without success. My goal was to remove DOM
> >> elements that did not belong to a pre-arranged array. Out of
> >> desperation I tried the example given in the on line documentation at
> >>http://docs.jquery.com/Traversing/filter#fn. The example is:
>
> >> $("p").filter(function(index) {
> >>   return $("ol", this).length == 0;
> >> });
>
> >> with the corresponding HTML code:
>
> >> HelloHow are you?
>
> >> THIS DID NOT WORK!
>
> >> Is it a bug in jQuery or am I doing something wrong? Could one of you
> >> try this same example? Thank you.
>
> >> Pluthos
>
> > This is because a  element cannot contain a  element and the
> > filter like any other related selector simply does not match, because
> > the browser's tag soup parser closes the  element before the 
> > starts.
>
> > As of lately this problem was discussed pretty often, see the following
> > thread:
> >http://groups.google.com/group/jquery-en/browse_thread/thread/e8790c0...
>
> > And the problem explained in more detail:
> >http://groups.google.com/group/jquery-en/browse_thread/thread/50fa1b3...
>
> > --Klaus
>
> --
> View this message in 
> context:http://www.nabble.com/filter%28fn%29-tf4411567s15494.html#a12589785
> Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: OT: Hosting Service

2007-09-14 Thread Mike Alsup

>  So I switched to LunarPages.  It has good speed, but the service fails
> every other day.
> (using siteUptime.com to check every 5 minutes)
> http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056
> - LAME

Huh?  You've had 99.8% uptime for three months running.

I use Lunarpages and I never notice any outages.

Mike


[jQuery] OT: Hosting Service

2007-09-14 Thread Glen Lipka
I used to use Powweb, but the site was unbearably slow for me.  Pings were
3x slower than anywhere else.
So I switched to LunarPages.  It has good speed, but the service fails every
other day.
(using siteUptime.com to check every 5 minutes)
http://www.siteuptime.com/prem_statistics.php?Id=8892&&UserId=69056 - LAME

For the company site, I switched to MediaTemple.  Good service, has not been
down, with good speed.  But It's too expensive for me personally and the
Plesk UI makes me dizzy.

Does anyone have a strong recommendation for a host?

Requirements:

   1. Wordpress
   2. PHP
   3. Free Parked Domains
   4. Sub Domains
   5. Fast
   6. Reliable
   7. Nice UI
   8. Inexpensive.

Anyone have experience with bluehost.com?

Thanks,

Glen


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Rey Bango


Hi Alexandre,


Yet IMO the facts harshly presented by Stephan are to be heard.


Absolutely. I'm not asking him stop expressing his concerns. This list 
is open and friendly and if there's a valid concern, we want to hear about.


Rey...


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: vendredi 14 septembre 2007 22:20
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb
??!?


Being called "underhanded" or saying that the team intentionally mislead
people isn't something that I'm comfortable with.

Rey...

Alexandre Plennevaux wrote:
Personally, i think Stephen has a point. I don't see any reason for 
disappointment in this, but the min size should be taken as a reference.
On a side note, on the human level, let's not judge each other on 
alleged intents ("procès d'intentions" in French). It brings nothing 
else than bad feelings and is completely not constructive. And we are 
all here to construct, now, aren't we?


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
On Behalf Of Stephan Beal

Sent: vendredi 14 septembre 2007 21:43
To: jQuery (English)
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead 
of 14kb ??!?



On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
I think "underhanded" is a little harsh and I'm not sure John Resig, 
who is the one who put that up there, was attempting to do anything

wrong.
Perhaps "misleading" is a better term than "underhanded", but only 
slighlty so. It would be poor form to upload 1.2 and say "only 46kb", 
after 1.1.x's claim to fame was "only 21kb". Everyone would think that 
code bloat had set in. But claiming that jQuery is now 14k is highly 
misleading - it definitely is not 14k unless the user takes (and is 
able to take) extra measures to ensure that he gets that space savings.


Considering how involved you are on the list and knowing how much 
effort everyone on the project puts into the jQuery, I'm a little 
disappointed that you would make such remarks.
Just as disappointed as i was to see the "only partially true" link 
which claims that jQuery 1.2 is 14k.


jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk 
down with extra client-side support. Not everyone has the technical 
know-how for how to get it shrunk down. Not everyone has the 
administrative access to change their .htaccess (and those who can may 
not have access to mod_deflate or mod_gzip - my hoster doesn't offer 
them, for example). And those who are running under ASP/IIS 
environments might not have any option at all for compression. For 
them, jQuery 1.2 is 46kb. Likewise for people working from local HTML

files, without an intermediary web server.
The link on the home page claiming that jQ 1.2 is 14kb is going to 
cause a large number of posts to this list, just like this thread, 
asking if the size discrepancy is a bug. My answer is, "yes, it's a 
bug on the home page, where it is misleadingly labeled as 14kb." That 
said, i'll stop responding to those posts and will let others point 
the confused users to the proper entry in the FAQ.


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 
13/09/2007

21:48
 





Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 





[jQuery] Re: cool cycle demo and using .load("foo.html")

2007-09-14 Thread Mike Alsup

Hi Mitch,

For this one, try moving the call to cycle into the callback of the
load function:

$('#noteframe').load("demo_text.html", function() {
$('#birds, #noteframe').cycle({
fx: 'fade',
speed:  'fast',
timeout: 0,
next:   '#next2',
prev:   '#prev2' }
);
});

You don't want to invoke cycle before the content is available.

Mike



On 9/11/07, Mitch <[EMAIL PROTECTED]> wrote:
>
> I have a simple product demo that uses the fabulous "cycle" plug in.
>
> http://www.whatbird.com/wwwroot/Components/Tour%20Tabbed%20Interface%20Final.html
>
> I want to move the text that appears in the box into its own HTML file
> that would be loaded with
>
> $('#noteframe').load("demo_text.html");
>
> So I did this and it doesnt work right as you can see here
>
> http://www.whatbird.com/wwwroot/Components/Tour%20Tabbed%20Interface%20Final2.html
>
> As you can see it loads the entire HTML page into the noteframe
> container and defeats the cycle plug in.
>
> Is what I am trying to do impossible?
>
> Here is the core code:
>
> $(document).ready(function(){
> $('#noteframe').load("demo_text.html");
>
> $('#birds, #noteframe').cycle(
> {   fx: 'fade',
> speed:  'fast',
> timeout: 0,
> next:   '#next2',
> prev:   '#prev2' }
> );
>
> });
>
> 
>  style="margin-left: auto; margin-right: auto ">
>   
> 
>cellspacing="0" style="margin-left: auto; margin-right: auto; ">
> 
>    
> 
> 
>   
>  
>   
>   
> 
>cellspacing=0>
> 
>HEIGHT=58 ALT="" />
>HEIGHT=58 ALT="" />
>HEIGHT=58 ALT="" />
> 
> 
>HEIGHT=320 ALT="" />
>  src="../images/winged_explorer/Splash_Progress_0001_Layer Comp
> 2.jpg"  />src="../images/winged_explorer/Splash_Progress_0004_Layer Comp
> 5.jpg"  />src="../images/winged_explorer/Splash_Progress_0007_Layer Comp
> 8.jpg"  /> 
>HEIGHT=320 ALT="" />
> 
> 
>HEIGHT=178 ALT="" />
>HEIGHT=178 ALT="" />
>HEIGHT=178 ALT="" />
> 
>   
> 
>   
>   
>   
>   
>   
>   Start
>   Prev
>   Next
> 
> 
> 
>   
>   
> 
> 
> 
>
>


[jQuery] Re: blockUI scope / $.unblockUI not closing

2007-09-14 Thread Mike Alsup

Brook,

Do you have a page that demonstrates this problem?  I've not seen any
case in which unblockUI fails to unblock.  For reference, all the
elements used by blockUI have a class of "blockUI" so you can find
them that way.

Mike


On 9/11/07, Brook Davies <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hello,
>
>
>
> How can I reference the blockUI window if $.unblockUI will not close it?
>
>
>
> I am using blockUI and can't get it to close from an event handler within an
> object using $.unblockUI. The object that contains the call to  $.unblockUI.
> is not the same object that called  $.blockUI().
>
>
>
> Brook
>
>


[jQuery] Re: BlockUI fadeout

2007-09-14 Thread Mike Alsup

Keith,

Do you have a page that demonstrates this problem?  I haven't been
able to duplicate it.

Mike


On 9/10/07, quayfee <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> I'm using the blockUI plugin for dialogs throughout the site, Content is
> loaded using $(element).load(... into a div created on on the fly.
>
> when unblocking the div with the content loaded disappears before the whole
> thing has faded. I would like to have this wait until the animation has
> completed, but can't find any information on the blockUI site about a
> callback on the fadeout method. Is there one?
>
> Cheers
>
> Keith
> --
> View this message in context: 
> http://www.nabble.com/BlockUI-fadeout-tf4414799s15494.html#a12593120
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Re: blockUI IE6 checkbox

2007-09-14 Thread Mike Alsup

Thanks for the fix, Ted!  Great work!   I've made the change and checked it in.

http://jqueryjs.googlecode.com/svn/trunk/plugins/blockUI/jquery.blockUI.js

Mike


On 9/13/07, Theodore Ni <[EMAIL PROTECTED]> wrote:
> I took a quick look at the blockUI code, and you can fix the problem by
> changing the bind function to this:
>
> // bind/unbind the handler
> bind: function(b, el) {
> var full = el == window;
> // don't bother unbinding if there is nothing to unbind
> if (!b && (full && !this.pageBlock || !full && !el.$blocked))
> return;
> if (!full) el.$blocked = b;
> var $e = $(el).find('a,:input');
>
> $.each(['mousedown','mouseup','keydown','keypress','click'],
> function(i,o) {
> $e[b?'bind':'unbind'](o, $.blockUI.impl.handler);
> });
> },
>
> I don't know if this will have any other side effects, so use with care
> until Mike can let us know for sure.
>
>
> On 9/13/07, seedy < [EMAIL PROTECTED]> wrote:
> >
> >
> > sorry for the delay, finally got one up
> >
> > http://devweb1.ttisolutions.com/jqueryTests/blockui/
> >
> > The problem seems to happen in all browsers I test it in, althought the
> > element blocking doesnt seem to have a problem in firefox.
> >
> >
> >
> > malsup wrote:
> > >
> > >
> > > Do you have a sample page that shows the problem?  That would be
> > > helpful for me.  Thanks.
> > >
> > > Mike
> > >
> > >
> > > On 9/5/07, seedy <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >> Setting the fade to false does not appear to be solving the issue for
> me.
> > >>
> > >>
> > >>
> > >> malsup wrote:
> > >> >
> > >> > seedy,
> > >> >
> > >> > Try adding this to your page:
> > >> >
> > >> > $.blockUI.defaults.fadeOut = false;
> > >> >
> > >> > I think this is an issue with animation.
> > >> >
> > >> > Mike
> > >> >
> > >> >
> > >> >
> > >> > On 9/4/07, seedy < [EMAIL PROTECTED]> wrote:
> > >> >>
> > >> >>
> > >> >>
> > >> >> Has anyone been able to reproduce this or am I just crazy ?
> > >> >>
> > >> >>
> > >> >> seedy wrote:
> > >> >> >
> > >> >> > I have a few checkboxes that fire an ajax request, and use blockUI
> > >> to
> > >> >> > block an element during this request.
> > >> >> > Problem is, the checkbox gets 'unchecked' whenever blockUI shows
> up.
> > >> >> > Its reproducible with the following code (appears to not just
> affect
> > >> >> > element blocking)
> > >> >> >
> > >> >> > 
> > >> >> > 
> > >> >> >   check me 
> > >> >> > 
> > >> >> >  > >> >> > src="jquery-1.1.4.pack.js" >
> > >> >> >  > >> >> src="jquery.blockUI.js"
> > >> >> > >
> > >> >> > 
> > >> >> >  $(function(){
> > >> >> >   $('input:checkbox').click(function(){
> alert('booga');
> > >> >> $.blockUI();
> > >> >> });
> > >> >> >  });
> > >> >> > 
> > >> >> > 
> > >> >> >
> > >> >> > You will see the box get checked, then when the alert goes away,
> it
> > >> >> > magically becomes unchecked.  Any ideas?
> > >> >> >
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >>
> http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12478271
> > >> >> Sent from the JQuery mailing list archive at Nabble.com.
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >> --
> > >> View this message in context:
> > >>
> http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12499248
> > >> Sent from the JQuery mailing list archive at Nabble.com.
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/blockUI-IE6-checkbox-tf4361472s15494.html#a12661238
> > Sent from the JQuery mailing list archive at Nabble.com.
> >
> >
>
>
>
> --
> Ted


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Alexandre Plennevaux

Indeed Rey, that's what i call in my approximate English "judgement on
alleged intents" which is unfair and brings hard feelings_ (it's typical
symptom of paranoia if you want to return the favor to Stephan :)). Yet IMO
the facts harshly presented by Stephan are to be heard.
To compare apples with apples , the homepage should display the pack size by
default, and offer the gzip instructions as an add on. 
This is because the audience now takes filesize as a very important argument
(Not me personally: i understand the value of small file size, but below
100k minified, it's perfectly fine to me as long as the framework holds its
promisses - and jquery is a blessing in that regard, but that's my personal
position - i don't claim to speak God's truth (i leave that to my wife :)
)).  

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: vendredi 14 septembre 2007 22:20
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb
??!?


Being called "underhanded" or saying that the team intentionally mislead
people isn't something that I'm comfortable with.

Rey...

Alexandre Plennevaux wrote:
> Personally, i think Stephen has a point. I don't see any reason for 
> disappointment in this, but the min size should be taken as a reference.
> On a side note, on the human level, let's not judge each other on 
> alleged intents ("procès d'intentions" in French). It brings nothing 
> else than bad feelings and is completely not constructive. And we are 
> all here to construct, now, aren't we?
> 
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of Stephan Beal
> Sent: vendredi 14 septembre 2007 21:43
> To: jQuery (English)
> Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead 
> of 14kb ??!?
> 
> 
> On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
>> I think "underhanded" is a little harsh and I'm not sure John Resig, 
>> who is the one who put that up there, was attempting to do anything
wrong.
> 
> Perhaps "misleading" is a better term than "underhanded", but only 
> slighlty so. It would be poor form to upload 1.2 and say "only 46kb", 
> after 1.1.x's claim to fame was "only 21kb". Everyone would think that 
> code bloat had set in. But claiming that jQuery is now 14k is highly 
> misleading - it definitely is not 14k unless the user takes (and is 
> able to take) extra measures to ensure that he gets that space savings.
> 
>> Considering how involved you are on the list and knowing how much 
>> effort everyone on the project puts into the jQuery, I'm a little 
>> disappointed that you would make such remarks.
> 
> Just as disappointed as i was to see the "only partially true" link 
> which claims that jQuery 1.2 is 14k.
> 
> jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk 
> down with extra client-side support. Not everyone has the technical 
> know-how for how to get it shrunk down. Not everyone has the 
> administrative access to change their .htaccess (and those who can may 
> not have access to mod_deflate or mod_gzip - my hoster doesn't offer 
> them, for example). And those who are running under ASP/IIS 
> environments might not have any option at all for compression. For 
> them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
files, without an intermediary web server.
> 
> The link on the home page claiming that jQ 1.2 is 14kb is going to 
> cause a large number of posts to this list, just like this thread, 
> asking if the size discrepancy is a bug. My answer is, "yes, it's a 
> bug on the home page, where it is misleadingly labeled as 14kb." That 
> said, i'll stop responding to those posts and will let others point 
> the confused users to the proper entry in the FAQ.
> 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 
> 13/09/2007
> 21:48
>  
> 
> 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 



[jQuery] Stripping query string from URI?

2007-09-14 Thread Stosh

There's a ticket opened for this:
http://dev.jquery.com/ticket/1579

But does anyone know the rationale here?  Is there any chance we can
get this fixed in 1.2.1?  I like the concept, but there needs to be
some way of disabling this functinality for the $.ajax() method to be
truly usable like it had been.  I'm also kind of surprised to not see
this in the changelog anywhere?

Side note, excellent work on 1.2 as a whole!

Pax,
- Stan



[jQuery] Re: Strip out HTML tags

2007-09-14 Thread Stosh

For the most part, yes text() should work - but looking at the source
text() only filters nodes of type COMMENT_NODE and ELEMENT_NODE, so
its theoretically possible something else could works its way in
there, seeing as there are 10 other node types left.  The regular
expression is not failsafe, but I suspect there are potential problems
with using text() in this fashion also.

I do wonder what the performance of each is comparitively?  I don't
think either option is necessarily fail-safe.

Pax.


On Sep 14, 2:42 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> Doesn't $().text(); automatically do this?
>
> So:
>
> var text = $(html).text();
>
> Would solve your problem, I think.
>
> - jake
>
> On 9/14/07, Stosh <[EMAIL PROTECTED]> wrote:
>
>
>
> > In Prototype there is a method called stripTags(), it's source looks
> > like:
>
> > stripTags: function() {
> > return this.replace(/<\/?[^>]+>/gi, '');
> > }
>
> > To do it the jQuery way, I might consider doing something like this...
>
> > jQuery.fn.stripTags = function() {
> > return this.replaceWith( this.html().replace(/<\/?[^>]+>/gi, '')
> > );
> > };
>
> > Hope this helps, Pax.
>
> > - Stan
>
> > On Sep 11, 11:08 am, AnandG <[EMAIL PROTECTED]> wrote:
> > > I retrieve a lot of strings from a JSON file. These strings can contain
> > HTML
> > > tags.
>
> > > I would like to show the strings (for example a description of a
> > product)
> > > but with a limit on the number of characters.
>
> > > So I have to count the number of characters and I would like to set a
> > limit
> > > to 200 characters. But I want to exclude the
> > > characters of the HTML tags. The easiest method seems to me to strip
> > HTML
> > > tags in the strings.
>
> > > I have searched in this forum and found some posts that deal with
> > stripping
> > > out HTML tags:
>
> > >http://www.nabble.com/Strip-a-href-links-from-a-div-tf4372556s15494.h...
> > > Strip a href links from a div
>
> > >http://www.nabble.com/stripping-out-tags...-tf2583359s15494.html#a720...
> > > Stripping out tags
>
> > > But they all require that you send a HTML tag as a parameter. But that's
> > > difficult if i'm not sure which HTML tag is going to be used.
>
> > > --
> > > View this message in context:
> >http://www.nabble.com/Strip-out-HTML-tags-tf4421390s15494.html#a12611168
> > > Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Rey Bango


Thanks Theodore. I'll pass that along to John.

Rey...

Theodore Ni wrote:

I'm not going to enter this argument, but I do suggest that both gzipped and
non-gzipped file sizes be present, because a download link should have the
accurate download size. Otherwise, I agree that with the big gains gzipping
provides (less than 1/3 file size!), the gzipped size should be present to
alert users that a 46kb footprint is not what they have to settle with.

@Glen,

I'm not an expert on Apache and .htaccess, but it might be possible that
your server httpd.conf file is preventing certain .htaccess rules from
working. Just speculation on my part ;-)

On 9/14/07, Erik Beeson <[EMAIL PROTECTED]> wrote:

I could understand this complaint if the "21kb packed" link from the
previous version were replaced with a "14kb min/gzip" link, but that isn't
the case. The "21kb packed" link became a "26kb packed" link, and a link to
a minified version, which is ideal for gzipping, along with a link to a page
describing how to use said version was ADDED.

I think making that the first link is ideal because it's the best solution
for most cases. I'm pretty sure all the browsers that jQuery supports
support gzipped content.

It isn't like it's advertising it went from 21kb to 14kb. I think you're
being a little too harsh.

--Erik


On 9/14/07, Stephan Beal <[EMAIL PROTECTED]> wrote:


On Sep 14, 4:30 pm, seedy <[EMAIL PROTECTED]> wrote:

I also had the same thing happen.
14kb is only after it has been gzipped by your server.
The version you are downloading has been minified, Its up to you to do

the

gzipping.

This is correct. The webmaster/developers/whoever chose to be a bit
underhanded there and say it's 14k "with gzip", but fail to mention
that the user must arrange for the code to get gzipped. Shame on them.
They've metamorphed from programmers to marketing people.

You cannot simply gzip the file and serve it as-is - that won't work
(at least, not on most browsers). You need to arrange for your web
server to feed the data compressed. There are a number of ways to do
this, but (IMO) none of them are suitable for beginners (and all of
them require either configuration changes on your web server or coding
in a second language, like PHP).

Follow the "gzipped" link from jquery.com and you'll find an article
which covers one way to accomplish this with PHP. Alternately, search
this forum, going back about 1 month, to find some discussions on it.
The approach proposed at the link mentioned above is sub-optimal
because it requires writing a file to your web server, which won't
work under all hosted accounts (for reasons described in my comments
posted at that site).







[jQuery] Re: [Announce] Horizontal Accordion plugin 1.00 alpha

2007-09-14 Thread Mark

Looks nice!
but doesn't work smooth at all.. but than again.. it's still alpha.


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Theodore Ni
I'm not going to enter this argument, but I do suggest that both gzipped and
non-gzipped file sizes be present, because a download link should have the
accurate download size. Otherwise, I agree that with the big gains gzipping
provides (less than 1/3 file size!), the gzipped size should be present to
alert users that a 46kb footprint is not what they have to settle with.

@Glen,

I'm not an expert on Apache and .htaccess, but it might be possible that
your server httpd.conf file is preventing certain .htaccess rules from
working. Just speculation on my part ;-)

On 9/14/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
>
> I could understand this complaint if the "21kb packed" link from the
> previous version were replaced with a "14kb min/gzip" link, but that isn't
> the case. The "21kb packed" link became a "26kb packed" link, and a link to
> a minified version, which is ideal for gzipping, along with a link to a page
> describing how to use said version was ADDED.
>
> I think making that the first link is ideal because it's the best solution
> for most cases. I'm pretty sure all the browsers that jQuery supports
> support gzipped content.
>
> It isn't like it's advertising it went from 21kb to 14kb. I think you're
> being a little too harsh.
>
> --Erik
>
>
> On 9/14/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Sep 14, 4:30 pm, seedy <[EMAIL PROTECTED]> wrote:
> > > I also had the same thing happen.
> > > 14kb is only after it has been gzipped by your server.
> > > The version you are downloading has been minified, Its up to you to do
> > the
> > > gzipping.
> >
> > This is correct. The webmaster/developers/whoever chose to be a bit
> > underhanded there and say it's 14k "with gzip", but fail to mention
> > that the user must arrange for the code to get gzipped. Shame on them.
> > They've metamorphed from programmers to marketing people.
> >
> > You cannot simply gzip the file and serve it as-is - that won't work
> > (at least, not on most browsers). You need to arrange for your web
> > server to feed the data compressed. There are a number of ways to do
> > this, but (IMO) none of them are suitable for beginners (and all of
> > them require either configuration changes on your web server or coding
> > in a second language, like PHP).
> >
> > Follow the "gzipped" link from jquery.com and you'll find an article
> > which covers one way to accomplish this with PHP. Alternately, search
> > this forum, going back about 1 month, to find some discussions on it.
> > The approach proposed at the link mentioned above is sub-optimal
> > because it requires writing a file to your web server, which won't
> > work under all hosted accounts (for reasons described in my comments
> > posted at that site).
> >
> >
>


-- 
Ted


[jQuery] Selecting relative or absolute positioned elements

2007-09-14 Thread Geoffrey Knutzen
Inside a given div, say of id #test,  how do I select all elements that have
relative or absolute positioning?

 

Can't figure this one out

 

Thanks

-Geoff



[jQuery] Re: Tablesorter 2.0

2007-09-14 Thread James Dempster

The problem with Zebra Striping widget in tablesorter is because it
uses a little bit of xpath, which has been taken out of jQuery 1.2, to
fix this replace the format function on line 819 or around there with

$("> tbody:first > tr:visible",table)
  .filter(':even')
  
.removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0])
  .end().filter(':odd')
  
.removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1])
;
I've changed the way it works, benchmarks show that this method is
faster
If you want to keep the same function the simpler change is to replace
the / with > in the jQuery expression its around about the same line.

I've also noticed that if you have any events bound to items within
the table, they are lost on sort. After some kind help from Brandon
Aron we worked out that the changes to the empty() in 1.2 is much
better on memory management and cleans the bound events from the
browser. To fix this change around line 245 to
  tableBody = $("tbody:first",table),
  rows = [];
  tableBody.innerHTML = '';

This has been tested in most browsers but needs to be checked out
fully by Christian Bach developer of tablesorter, I've not seen him
online for a while, but as soon as I do I'll point him in this
direction.

Hope this helps.

On Sep 14, 9:39 pm, pixelwizzard <[EMAIL PROTECTED]> wrote:
> Hi all I just ran into a problem with Tablesorter and JQuery 1.2 now
> working with the zebra.  had to go back to JQuery 1.1.3.  Anyone know
> what happened?
>
> On Sep 11, 9:09 am, rortelli <[EMAIL PROTECTED]> wrote:
>
> > Hi all,tablesorter2.0 has some strange behaviours with jQuery 1.2, thezebra
> > stripes seems not to work correctly... ;)
>
> > On Sep 10, 11:55 am, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hello,
>
> > > On 20 aug, 11:33, lukek <[EMAIL PROTECTED]> wrote:
>
> > > > By the way I had another question. -- In the unpacked version of the
> > > > latest script your comment on line 555 says "apply easy methods that
> > > > trigger binded events".
>
> > > > Does this mean I can insert function calls in here - ie around line
> > > > 560?
>
> > > > I say this because I have added a call to applyWidget() as I reckon
> > > > all the widgets should be reloaded when the update event is triggered
> > > > - eg after I insert rows I want to reapply thezebrawidget.
>
> > > I'm not sure if this helps anyone, but as this thread gave some
> > > pointers for my issue, here goes:
>
> > > I also wanted to reapply thezebrawidget each time I add rows to the
> > > table. However in my case the rows are coming from an AJAX query,
> > > similar tohttp://tablesorter.com/docs/example-ajax.html
> > > The example there just applies a defined sorting when new data arrives
> > > with triggering "sorton" (after "update") - this will also reapply the
> > >zebrafrom the sort operation. However I didn't want to loose the
> > > sorting that the user might have had already changed to, away from the
> > > default, and I wanted the arriving data to get sorted into the pre-
> > > existing data according to the sort selection. I didn't find a good
> > > way to get to the configuration saved, so I just ended up with this:
>
> > > $("table").trigger("update");
> > > var current_sort = $("table.tablesorter").get(0).config.sortList;
> > > $("table").trigger("sorton", [current_sort]);
>
> > > Hopefully there already is (that I don't know of yet), or will be, a
> > > good way to keep the sorting selection in tact. Maybe something like
> > > this in tablesorter2 itself:
>
> > > $this.bind("resort", function(e) {
> > > // update header count index
> > > updateHeaderSortCount(this,sortList);
>
> > > //set css for headers
> > > setHeadersCss(this,$headers,config.sortList,sortCSS);
>
> > > // sort the table and append it to the dom
> > > appendToTable(this,multisort(this,config.sortList,cache));
>
> > > });
>
> > > Some of these calls (like setHeadersCss) is probably not necessary
> > > from just a resort, as everything in the headers remains the same.
>
> > > Best Regards,
> > > Mart Raudsepp



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Erik Beeson
I could understand this complaint if the "21kb packed" link from the
previous version were replaced with a "14kb min/gzip" link, but that isn't
the case. The "21kb packed" link became a "26kb packed" link, and a link to
a minified version, which is ideal for gzipping, along with a link to a page
describing how to use said version was ADDED.

I think making that the first link is ideal because it's the best solution
for most cases. I'm pretty sure all the browsers that jQuery supports
support gzipped content.

It isn't like it's advertising it went from 21kb to 14kb. I think you're
being a little too harsh.

--Erik


On 9/14/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 14, 4:30 pm, seedy <[EMAIL PROTECTED]> wrote:
> > I also had the same thing happen.
> > 14kb is only after it has been gzipped by your server.
> > The version you are downloading has been minified, Its up to you to do
> the
> > gzipping.
>
> This is correct. The webmaster/developers/whoever chose to be a bit
> underhanded there and say it's 14k "with gzip", but fail to mention
> that the user must arrange for the code to get gzipped. Shame on them.
> They've metamorphed from programmers to marketing people.
>
> You cannot simply gzip the file and serve it as-is - that won't work
> (at least, not on most browsers). You need to arrange for your web
> server to feed the data compressed. There are a number of ways to do
> this, but (IMO) none of them are suitable for beginners (and all of
> them require either configuration changes on your web server or coding
> in a second language, like PHP).
>
> Follow the "gzipped" link from jquery.com and you'll find an article
> which covers one way to accomplish this with PHP. Alternately, search
> this forum, going back about 1 month, to find some discussions on it.
> The approach proposed at the link mentioned above is sub-optimal
> because it requires writing a file to your web server, which won't
> work under all hosted accounts (for reasons described in my comments
> posted at that site).
>
>


[jQuery] TableSorter properties

2007-09-14 Thread Rigent


I'm loving the tablesorter plugin, everything works splendidly except I can't
get a column to sort dates.

Here's the init function I'm using to:
- set the two CSS classes for the active TH,
- disable sorting on the first column,
- sort the 5th column by date,
- force the first column sort onload, and
- adding the Zebra rows widget.

$("#sorttable").tablesorter( {cssAsc:"sortasc",cssDesc:"sortdesc", headers:
{0: {sorter: false}, 4: {sorter: "date"}}, sortList: [[1,0]], widgets:
['zebra']} );

All of these work except the date sorting. I'm using the same date format
used in the example on tablesorter.com and I've tried all the different ways
to apply it that I can think of or that I've seen here in discussions.
There's a great variety of examples, including putting '{sorter: "date"}' as
a class in the TH!

I was using JQuery 1.2 but the Zebra plugin seems to have a problem under
1.2 so I'm using an earlier version.

I must be missing something as I'm not normally this clueless but it just
won't work for me. Here's an example of the table I'm using:


   

   
  Initiative
  Lead Agency 
  Description
  Last Updated 

   
   

   # Edit 
   view.php?id= A Name of the Initiative 
  Organization name
  Promoting healthy lifestyles...
  Apr 24, 2007 


   # Edit 
   view.php?id= B Name of the Initiative 
  Organization name
  A program designed...
  Jul 21, 2007 

etc

Any advice gratefully received, thanks!
-- 
View this message in context: 
http://www.nabble.com/TableSorter-properties-tf4445562s15494.html#a12684633
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Glen Lipka
I tried Joans methdod with no luck.  Couldn't get it to work. :(

Glen

On 9/14/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> Joan,
> Thanks so much for this!!
>
> I just added the "AddOutputFilterByType DEFLATE ..." line to my .htaccess
> file a couple days ago, and wow! what a difference! But, I didn't know bout
> the whole "Deactivate compression for buggy browsers" part. I will drop that
> in my .htaccess file tonight.
>
> Thanks again!
>
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
> On Sep 14, 2007, at 3:45 PM, Joan Piedra wrote:
>
> I've found this to be the easiest and unobstrusive way to gzip my files
> with a .htaccess file.
>
> 
> 
>
> # Compress some text file types
> AddOutputFilterByType DEFLATE text/html text/css text/xml
> application/x-javascript
>
> # Deactivate compression for buggy browsers
> BrowserMatch ^Mozilla/4 gzip-only-text/html
> BrowserMatch ^Mozilla/4\.0[678] no-gzip
> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>
> 
> 
>
>
> On 9/14/07, seedy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I also had the same thing happen.
> > 14kb is only after it has been gzipped by your server.
> > The version you are downloading has been minified, Its up to you to do
> > the
> > gzipping.
> >
> >
> > lukwe wrote:
> > >
> > >
> > > When I go to the GoogleCode page for the minified version it idsplays
> > a 46
> > > kb file to download;
> > > seems like the file had been deflated again by the server (?!?).
> > >
> > > Is anyone else experiencing this ??!?
> > >
> > >
> > > ciao
> > >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> >
> > Sent from the JQuery mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Joan Piedra  ||  Frontend web developer
> http://www.justaquit.com/  ||  http://www.joanpiedra.com/
>
>
>


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Karl Swedberg

Joan,

Thanks so much for this!!

I just added the "AddOutputFilterByType DEFLATE ..." line to  
my .htaccess file a couple days ago, and wow! what a difference! But,  
I didn't know bout the whole "Deactivate compression for buggy  
browsers" part. I will drop that in my .htaccess file tonight.


Thanks again!


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 14, 2007, at 3:45 PM, Joan Piedra wrote:

I've found this to be the easiest and unobstrusive way to gzip my  
files with a .htaccess file.





# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml  
application/x-javascript


# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html





On 9/14/07, seedy <[EMAIL PROTECTED]> wrote:


I also had the same thing happen.
14kb is only after it has been gzipped by your server.
The version you are downloading has been minified, Its up to you to  
do the

gzipping.


lukwe wrote:
>
>
> When I go to the GoogleCode page for the minified version it  
idsplays a 46

> kb file to download;
> seems like the file had been deflated again by the server (?!?).
>
> Is anyone else experiencing this ??!?
>
>
> ciao
>

--
View this message in context: http://www.nabble.com/Downloading-1.2- 
minified%2C-getting-46kb-instead-of-14kb---%21-- 
tf4442334s15494.html#a12676468

Sent from the JQuery mailing list archive at Nabble.com.




--
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/




[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Theodore Ni
Unless you have other .htaccess files in your subdirectories which overwrite
Joan's .htaccess rules, then I believe only one in the root folder should
work.

On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> Where does that .htaccess file go?  Just in the root?  Or in every folder
> that has a page?
>
> Glen
>
> On 9/14/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
> >
> > I've found this to be the easiest and unobstrusive way to gzip my files
> > with a .htaccess file.
> >
> > 
> > 
> >
> > # Compress some text file types
> > AddOutputFilterByType DEFLATE text/html text/css text/xml
> > application/x-javascript
> >
> > # Deactivate compression for buggy browsers
> > BrowserMatch ^Mozilla/4 gzip-only-text/html
> > BrowserMatch ^Mozilla/4\.0[678] no-gzip
> > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
> >
> > 
> > 
> >
> >
> > On 9/14/07, seedy < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > I also had the same thing happen.
> > > 14kb is only after it has been gzipped by your server.
> > > The version you are downloading has been minified, Its up to you to do
> > > the
> > > gzipping.
> > >
> > >
> > > lukwe wrote:
> > > >
> > > >
> > > > When I go to the GoogleCode page for the minified version it
> > > idsplays a 46
> > > > kb file to download;
> > > > seems like the file had been deflated again by the server (?!?).
> > > >
> > > > Is anyone else experiencing this ??!?
> > > >
> > > >
> > > > ciao
> > > >
> > >
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> > >
> > > Sent from the JQuery mailing list archive at Nabble.com.
> > >
> > >
> >
> >
> > --
> > Joan Piedra  ||  Frontend web developer
> > http://www.justaquit.com/  ||  http://www.joanpiedra.com/
>
>
>


-- 
Ted


[jQuery] Re: Tablesorter 2.0

2007-09-14 Thread pixelwizzard

Hi all I just ran into a problem with Tablesorter and JQuery 1.2 now
working with the zebra.  had to go back to JQuery 1.1.3.  Anyone know
what happened?


On Sep 11, 9:09 am, rortelli <[EMAIL PROTECTED]> wrote:
> Hi all,tablesorter2.0 has some strange behaviours with jQuery 1.2, thezebra
> stripes seems not to work correctly... ;)
>
> On Sep 10, 11:55 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hello,
>
> > On 20 aug, 11:33, lukek <[EMAIL PROTECTED]> wrote:
>
> > > By the way I had another question. -- In the unpacked version of the
> > > latest script your comment on line 555 says "apply easy methods that
> > > trigger binded events".
>
> > > Does this mean I can insert function calls in here - ie around line
> > > 560?
>
> > > I say this because I have added a call to applyWidget() as I reckon
> > > all the widgets should be reloaded when the update event is triggered
> > > - eg after I insert rows I want to reapply thezebrawidget.
>
> > I'm not sure if this helps anyone, but as this thread gave some
> > pointers for my issue, here goes:
>
> > I also wanted to reapply thezebrawidget each time I add rows to the
> > table. However in my case the rows are coming from an AJAX query,
> > similar tohttp://tablesorter.com/docs/example-ajax.html
> > The example there just applies a defined sorting when new data arrives
> > with triggering "sorton" (after "update") - this will also reapply the
> >zebrafrom the sort operation. However I didn't want to loose the
> > sorting that the user might have had already changed to, away from the
> > default, and I wanted the arriving data to get sorted into the pre-
> > existing data according to the sort selection. I didn't find a good
> > way to get to the configuration saved, so I just ended up with this:
>
> > $("table").trigger("update");
> > var current_sort = $("table.tablesorter").get(0).config.sortList;
> > $("table").trigger("sorton", [current_sort]);
>
> > Hopefully there already is (that I don't know of yet), or will be, a
> > good way to keep the sorting selection in tact. Maybe something like
> > this in tablesorter2 itself:
>
> > $this.bind("resort", function(e) {
> > // update header count index
> > updateHeaderSortCount(this,sortList);
>
> > //set css for headers
> > setHeadersCss(this,$headers,config.sortList,sortCSS);
>
> > // sort the table and append it to the dom
> > appendToTable(this,multisort(this,config.sortList,cache));
>
> > });
>
> > Some of these calls (like setHeadersCss) is probably not necessary
> > from just a resort, as everything in the headers remains the same.
>
> > Best Regards,
> > Mart Raudsepp



[jQuery] Re: $.load() javascript problems in IE and Safari

2007-09-14 Thread Jim Marion

I did some looking at the code. The $.load in 1.1.4 and 1.2 actually
does eval scripts on IE without adding evalScripts back into the lib.
The eval is in the domManip. It looks like $.load calls .html which
calls .append. append calls domManip. The only problem is that the
code doesn't do a deep search for script tags in IE. Therefore, for
IE, you script tags have to be at the top level. They don't appear to
get evaluated if they are buried deeper in the document.

On Sep 11, 10:03 am, Jolyon Terwilliger <[EMAIL PROTECTED]> wrote:
> Check out the revisions made to .load() and the new getScript feature
> of 1.2:  http://docs.jquery.com/Release:jQuery_1.2/Ajax
>
> These may help you solve your problems!
>
> peace,
>
> Jt
>
> On Sep 11, 3:05 am, Stamen Georgiev <[EMAIL PROTECTED]> wrote:
>
> > I'm having the same problems here.
> > And it looks the same with the latest release (1.2) :-(
>
> > Help, anyone?
>
> > On Sep 10, 7:26 pm, Bryan Blakey <[EMAIL PROTECTED]> wrote:
>
> > > As many others have already noted, if your page makes anAJAXcall
> > > that returnsjavascriptand HTML, for some reasonIEand Safari are
> > > unwilling to execute any of thejavascript.  Looking through the
> > > jQuery code, I noticed that there *used* to be an evalScripts function
> > > in the same object as the load function, but that is deprecated in
> > > light of the fact that there is now a globalEval function that should
> > > be called with certain of the the HTML injection methods.  However,
> > > after numerous tests, it seems that this wasn't working all the time
> > > in either Safari orIE.  I dediced to add the evalScripts function
> > > back in like so:
>
> > > evalScripts: function( self ){
> > > var scripts = self.get(0).getElementsByTagName( 'script' 
> > > );
> > > $(scripts).each(function(){
> > > if ( window.execScript ) {
> > > window.execScript( $(this).html() );
> > > }
> > > else if ( jQuery.browser.safari ) {
> > > window.setTimeout( $(this).html(), 0 );
> > > }
> > > else {
> > >eval.call( window, $(this).html() );
> > > }
> > > });
> > > }
>
> > > This gets called by load if the oncomplete status is "success" with:
>
> > > self.evalScripts( self );
>
> > > Can anyone tell me if this is a bad idea (and if so, why?) as well as
> > > any insights into why the built in globalEval function doesn't always
> > > work inIEor Safari?



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Rey Bango


Being called "underhanded" or saying that the team intentionally mislead 
people isn't something that I'm comfortable with.


Rey...

Alexandre Plennevaux wrote:

Personally, i think Stephen has a point. I don't see any reason for
disappointment in this, but the min size should be taken as a reference. 
On a side note, on the human level, let's not judge each other on alleged

intents ("procès d'intentions" in French). It brings nothing else than bad
feelings and is completely not constructive. And we are all here to
construct, now, aren't we?

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephan Beal
Sent: vendredi 14 septembre 2007 21:43
To: jQuery (English)
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb
??!?


On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
I think "underhanded" is a little harsh and I'm not sure John Resig, 
who is the one who put that up there, was attempting to do anything wrong.


Perhaps "misleading" is a better term than "underhanded", but only slighlty
so. It would be poor form to upload 1.2 and say "only 46kb", after 1.1.x's
claim to fame was "only 21kb". Everyone would think that code bloat had set
in. But claiming that jQuery is now 14k is highly misleading - it definitely
is not 14k unless the user takes (and is able to take) extra measures to
ensure that he gets that space savings.

Considering how involved you are on the list and knowing how much 
effort everyone on the project puts into the jQuery, I'm a little 
disappointed that you would make such remarks.


Just as disappointed as i was to see the "only partially true" link which
claims that jQuery 1.2 is 14k.

jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk down
with extra client-side support. Not everyone has the technical know-how for
how to get it shrunk down. Not everyone has the administrative access to
change their .htaccess (and those who can may not have access to mod_deflate
or mod_gzip - my hoster doesn't offer them, for example). And those who are
running under ASP/IIS environments might not have any option at all for
compression. For them, jQuery 1.2 is 46kb. Likewise for people working from
local HTML files, without an intermediary web server.

The link on the home page claiming that jQ 1.2 is 14kb is going to cause a
large number of posts to this list, just like this thread, asking if the
size discrepancy is a bug. My answer is, "yes, it's a bug on the home page,
where it is misleadingly labeled as 14kb." That said, i'll stop responding
to those posts and will let others point the confused users to the proper
entry in the FAQ.

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 





[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Rey Bango


Then we'll agree to disagree. And again, I'm truly surprised and 
completely disappointed by your continued assertion that there was an 
attempt to mislead anyone.


If you felt there was disconnect in the way someone might interpret the 
link on the homepage, then making a suggestion would've been perfectly 
fine. I'm sure John and the team would've been open to hearing about 
this and possibly making a change.


But to accuse the team of being "underhanded", and now "misleading", is 
irresponsible. You've completely mishandled your method of communication 
here Stephan. If you can't see that you're choice of words was totally 
inappropriate, then we most certainly don't have anything further to 
say. You don't make accusations without having some basis in truth.


As for not offering to support users who might be confused with this, 
that's entirely your choice.


Rey...
jQuery Project Team

Stephan Beal wrote:

On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:

I think "underhanded" is a little harsh and I'm not sure John Resig, who
is the one who put that up there, was attempting to do anything wrong.


Perhaps "misleading" is a better term than "underhanded", but only
slighlty so. It would be poor form to upload 1.2 and say "only 46kb",
after 1.1.x's claim to fame was "only 21kb". Everyone would think that
code bloat had set in. But claiming that jQuery is now 14k is highly
misleading - it definitely is not 14k unless the user takes (and is
able to take) extra measures to ensure that he gets that space
savings.


Considering how involved you are on the list and knowing how much effort
everyone on the project puts into the jQuery, I'm a little disappointed
that you would make such remarks.


Just as disappointed as i was to see the "only partially true" link
which claims that jQuery 1.2 is 14k.

jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk
down with extra client-side support. Not everyone has the technical
know-how for how to get it shrunk down. Not everyone has the
administrative access to change their .htaccess (and those who can may
not have access to mod_deflate or mod_gzip - my hoster doesn't offer
them, for example). And those who are running under ASP/IIS
environments might not have any option at all for compression. For
them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
files, without an intermediary web server.

The link on the home page claiming that jQ 1.2 is 14kb is going to
cause a large number of posts to this list, just like this thread,
asking if the size discrepancy is a bug. My answer is, "yes, it's a
bug on the home page, where it is misleadingly labeled as 14kb." That
said, i'll stop responding to those posts and will let others point
the confused users to the proper entry in the FAQ.




[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Alexandre Plennevaux

Personally, i think Stephen has a point. I don't see any reason for
disappointment in this, but the min size should be taken as a reference. 
On a side note, on the human level, let's not judge each other on alleged
intents ("procès d'intentions" in French). It brings nothing else than bad
feelings and is completely not constructive. And we are all here to
construct, now, aren't we?

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephan Beal
Sent: vendredi 14 septembre 2007 21:43
To: jQuery (English)
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb
??!?


On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> I think "underhanded" is a little harsh and I'm not sure John Resig, 
> who is the one who put that up there, was attempting to do anything wrong.

Perhaps "misleading" is a better term than "underhanded", but only slighlty
so. It would be poor form to upload 1.2 and say "only 46kb", after 1.1.x's
claim to fame was "only 21kb". Everyone would think that code bloat had set
in. But claiming that jQuery is now 14k is highly misleading - it definitely
is not 14k unless the user takes (and is able to take) extra measures to
ensure that he gets that space savings.

> Considering how involved you are on the list and knowing how much 
> effort everyone on the project puts into the jQuery, I'm a little 
> disappointed that you would make such remarks.

Just as disappointed as i was to see the "only partially true" link which
claims that jQuery 1.2 is 14k.

jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk down
with extra client-side support. Not everyone has the technical know-how for
how to get it shrunk down. Not everyone has the administrative access to
change their .htaccess (and those who can may not have access to mod_deflate
or mod_gzip - my hoster doesn't offer them, for example). And those who are
running under ASP/IIS environments might not have any option at all for
compression. For them, jQuery 1.2 is 46kb. Likewise for people working from
local HTML files, without an intermediary web server.

The link on the home page claiming that jQ 1.2 is 14kb is going to cause a
large number of posts to this list, just like this thread, asking if the
size discrepancy is a bug. My answer is, "yes, it's a bug on the home page,
where it is misleadingly labeled as 14kb." That said, i'll stop responding
to those posts and will let others point the confused users to the proper
entry in the FAQ.

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 



[jQuery] Re: unsubscribe

2007-09-14 Thread Bil Corry


[EMAIL PROTECTED] wrote on 9/14/2007 3:44 PM: 

How do I unsubscribe from this list?


Go here, select "unsubscribe" from the list of choices under "Subscription 
Type":



Note, you can choose to remain a member and select "No email" which then allows 
you to post and browse the messages online instead of getting them in your inbox.

- Bil



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Glen Lipka
The original claim of 20k is based on a packed JS.  Not Minified.
On the home page, it is packed at 26k.  So it increased 6k.  I wouldn't call
the Bloat Police too quickly.

However, the POINT of gzipping is that you can deliver it smaller than 26k
with a different strategy.  Minified and Gzipped.  It's not for everyone,
but its available.

RE: The julienlecomte article.  I dont get where to put that script?

Glen



On 9/14/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
>
> Hmmm ... jQuery can still be packed and gzipping can be done in IIS
> without much effort. We are doing it for our .Net projects.
>
> --
> Brandon Aaron
>
> On 9/14/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> > > I think "underhanded" is a little harsh and I'm not sure John Resig,
> > who
> > > is the one who put that up there, was attempting to do anything wrong.
> >
> >
> > Perhaps "misleading" is a better term than "underhanded", but only
> > slighlty so. It would be poor form to upload 1.2 and say "only 46kb",
> > after 1.1.x's claim to fame was "only 21kb". Everyone would think that
> > code bloat had set in. But claiming that jQuery is now 14k is highly
> > misleading - it definitely is not 14k unless the user takes (and is
> > able to take) extra measures to ensure that he gets that space
> > savings.
> >
> > > Considering how involved you are on the list and knowing how much
> > effort
> > > everyone on the project puts into the jQuery, I'm a little
> > disappointed
> > > that you would make such remarks.
> >
> > Just as disappointed as i was to see the "only partially true" link
> > which claims that jQuery 1.2 is 14k.
> >
> > jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk
> > down with extra client-side support. Not everyone has the technical
> > know-how for how to get it shrunk down. Not everyone has the
> > administrative access to change their .htaccess (and those who can may
> > not have access to mod_deflate or mod_gzip - my hoster doesn't offer
> > them, for example). And those who are running under ASP/IIS
> > environments might not have any option at all for compression. For
> > them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
> > files, without an intermediary web server.
> >
> > The link on the home page claiming that jQ 1.2 is 14kb is going to
> > cause a large number of posts to this list, just like this thread,
> > asking if the size discrepancy is a bug. My answer is, "yes, it's a
> > bug on the home page, where it is misleadingly labeled as 14kb." That
> > said, i'll stop responding to those posts and will let others point
> > the confused users to the proper entry in the FAQ.
> >
> >
>


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Jeffrey Kretz

I have to comment on this.  When I saw the "14kb minified and Gzipped", I
immediately clicked on the link next it, which took me to Julien's excellent
article on Gzipping javascript files:

http://www.julienlecomte.net/blog/2007/08/21/gzip-your-minified-javascript-f
iles/

I hadn't known about gzipping javascript files before this.  After reading
the article, I implemented it successfully for the first time yesterday.

It wasn't misleading in the slightest bit.  I went from having no
familiarity with gzipping javascript to a successful implementation by
following the link right next to the file on the jquery home page.

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephan Beal
Sent: Friday, September 14, 2007 1:43 PM
To: jQuery (English)
Subject: [jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb
??!?


On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> I think "underhanded" is a little harsh and I'm not sure John Resig, who
> is the one who put that up there, was attempting to do anything wrong.

Perhaps "misleading" is a better term than "underhanded", but only
slighlty so. It would be poor form to upload 1.2 and say "only 46kb",
after 1.1.x's claim to fame was "only 21kb". Everyone would think that
code bloat had set in. But claiming that jQuery is now 14k is highly
misleading - it definitely is not 14k unless the user takes (and is
able to take) extra measures to ensure that he gets that space
savings.

> Considering how involved you are on the list and knowing how much effort
> everyone on the project puts into the jQuery, I'm a little disappointed
> that you would make such remarks.

Just as disappointed as i was to see the "only partially true" link
which claims that jQuery 1.2 is 14k.

jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk
down with extra client-side support. Not everyone has the technical
know-how for how to get it shrunk down. Not everyone has the
administrative access to change their .htaccess (and those who can may
not have access to mod_deflate or mod_gzip - my hoster doesn't offer
them, for example). And those who are running under ASP/IIS
environments might not have any option at all for compression. For
them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
files, without an intermediary web server.

The link on the home page claiming that jQ 1.2 is 14kb is going to
cause a large number of posts to this list, just like this thread,
asking if the size discrepancy is a bug. My answer is, "yes, it's a
bug on the home page, where it is misleadingly labeled as 14kb." That
said, i'll stop responding to those posts and will let others point
the confused users to the proper entry in the FAQ.




[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Brandon Aaron
Hmmm ... jQuery can still be packed and gzipping can be done in IIS without
much effort. We are doing it for our .Net projects.

--
Brandon Aaron

On 9/14/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> > I think "underhanded" is a little harsh and I'm not sure John Resig, who
> > is the one who put that up there, was attempting to do anything wrong.
>
> Perhaps "misleading" is a better term than "underhanded", but only
> slighlty so. It would be poor form to upload 1.2 and say "only 46kb",
> after 1.1.x's claim to fame was "only 21kb". Everyone would think that
> code bloat had set in. But claiming that jQuery is now 14k is highly
> misleading - it definitely is not 14k unless the user takes (and is
> able to take) extra measures to ensure that he gets that space
> savings.
>
> > Considering how involved you are on the list and knowing how much effort
> > everyone on the project puts into the jQuery, I'm a little disappointed
> > that you would make such remarks.
>
> Just as disappointed as i was to see the "only partially true" link
> which claims that jQuery 1.2 is 14k.
>
> jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk
> down with extra client-side support. Not everyone has the technical
> know-how for how to get it shrunk down. Not everyone has the
> administrative access to change their .htaccess (and those who can may
> not have access to mod_deflate or mod_gzip - my hoster doesn't offer
> them, for example). And those who are running under ASP/IIS
> environments might not have any option at all for compression. For
> them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
> files, without an intermediary web server.
>
> The link on the home page claiming that jQ 1.2 is 14kb is going to
> cause a large number of posts to this list, just like this thread,
> asking if the size discrepancy is a bug. My answer is, "yes, it's a
> bug on the home page, where it is misleadingly labeled as 14kb." That
> said, i'll stop responding to those posts and will let others point
> the confused users to the proper entry in the FAQ.
>
>


[jQuery] unsubscribe

2007-09-14 Thread [EMAIL PROTECTED]


How do I unsubscribe from this list?



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Stephan Beal

On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> I think "underhanded" is a little harsh and I'm not sure John Resig, who
> is the one who put that up there, was attempting to do anything wrong.

Perhaps "misleading" is a better term than "underhanded", but only
slighlty so. It would be poor form to upload 1.2 and say "only 46kb",
after 1.1.x's claim to fame was "only 21kb". Everyone would think that
code bloat had set in. But claiming that jQuery is now 14k is highly
misleading - it definitely is not 14k unless the user takes (and is
able to take) extra measures to ensure that he gets that space
savings.

> Considering how involved you are on the list and knowing how much effort
> everyone on the project puts into the jQuery, I'm a little disappointed
> that you would make such remarks.

Just as disappointed as i was to see the "only partially true" link
which claims that jQuery 1.2 is 14k.

jQuery 1.2 (minified) is 46kb, and that's that. It can only be shrunk
down with extra client-side support. Not everyone has the technical
know-how for how to get it shrunk down. Not everyone has the
administrative access to change their .htaccess (and those who can may
not have access to mod_deflate or mod_gzip - my hoster doesn't offer
them, for example). And those who are running under ASP/IIS
environments might not have any option at all for compression. For
them, jQuery 1.2 is 46kb. Likewise for people working from local HTML
files, without an intermediary web server.

The link on the home page claiming that jQ 1.2 is 14kb is going to
cause a large number of posts to this list, just like this thread,
asking if the size discrepancy is a bug. My answer is, "yes, it's a
bug on the home page, where it is misleadingly labeled as 14kb." That
said, i'll stop responding to those posts and will let others point
the confused users to the proper entry in the FAQ.



[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Glen Lipka
Where does that .htaccess file go?  Just in the root?  Or in every folder
that has a page?

Glen

On 9/14/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
>
> I've found this to be the easiest and unobstrusive way to gzip my files
> with a .htaccess file.
>
> 
> 
>
> # Compress some text file types
> AddOutputFilterByType DEFLATE text/html text/css text/xml
> application/x-javascript
>
> # Deactivate compression for buggy browsers
> BrowserMatch ^Mozilla/4 gzip-only-text/html
> BrowserMatch ^Mozilla/4\.0[678] no-gzip
> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>
> 
> 
>
>
> On 9/14/07, seedy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I also had the same thing happen.
> > 14kb is only after it has been gzipped by your server.
> > The version you are downloading has been minified, Its up to you to do
> > the
> > gzipping.
> >
> >
> > lukwe wrote:
> > >
> > >
> > > When I go to the GoogleCode page for the minified version it idsplays
> > a 46
> > > kb file to download;
> > > seems like the file had been deflated again by the server (?!?).
> > >
> > > Is anyone else experiencing this ??!?
> > >
> > >
> > > ciao
> > >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> >
> > Sent from the JQuery mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Joan Piedra  ||  Frontend web developer
> http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: file selector/ directory browser

2007-09-14 Thread Alexandre Plennevaux
mmjager sent me this link offlist, i thought that would be of interest to
everyone. Done with mootools. I think it's a very promising interface: 

HYPERLINK
"http://www.k1der.net/modules/blogs/public/country/demo/brooser.html"http://
www.k1der.net/modules/blogs/public/country/demo/brooser.html

 

although i find that it's a bit too much, which slows a little bit the whole
interface.


   _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alexandre Plennevaux
Sent: vendredi 14 septembre 2007 18:03
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: file selector/ directory browser


thank you Benjamin!

   _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: vendredi 14 septembre 2007 16:51
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: file selector/ directory browser


Check out HYPERLINK
"http://wanderinghorse.net/computing/javascript/jquery/bogofolders/demo-bogo
folders.html"http://wanderinghorse.net/computing/javascript/jquery/bogofolde
rs/demo-bogofolders.html, not sure if it does exactly what you want. 

Also, run that site through HYPERLINK
"http://translate.google.com"translate.google.com

HYPERLINK
"http://translate.google.com/translate?u=http%3A%2F%2Fwww.sitespotting.it%2F
esempi%2F002%2F&langpair=it%7Cen&hl=en&ie=UTF8"http://translate.google.com/t
ranslate?u=http%3A%2F%2Fwww.sitespotting.it%2Fesempi%2F002%2F&langpair=it%7C
en&hl=en&ie=UTF8


On 9/14/07, Alexandre Plennevaux mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: 

hi all,
 
i'm in desperate need of a folder browser/ file selection widget. I wondered
if anyone found a nice one? Basically, i just need some widget that takes a
directory  sitting on the server, display its content of images, user clicks
on one, UI disappears and feeds the form input with the url of the selected
image.
 
anyone has seen anything in that area?
 
I saw HYPERLINK "http://www.sitespotting.it/esempi/002/";
\nhttp://www.sitespotting.it/esempi/002/ which could be tweaked to do that,
but it's all in italian...
 
 
thanks mates,
 
Alexandre
 

Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104
B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium 

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
http://www.lab-au.com
http://www.mediaruimte.be

__ 

The information in this e-mail is intended only for the addressee named
above.  If you are not that addressee, please note that any disclosure,
distribution or copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this
communication cannot be guaranteed.

__

 


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48





-- 
Benjamin Sterling
HYPERLINK "http://www.KenzoMedia.com"http://www.KenzoMedia.com
HYPERLINK "http://www.KenzoHosting.com"http://www.KenzoHosting.com 


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48



Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 


[jQuery] Re: stop animation

2007-09-14 Thread Joan Piedra
Looks like we won't need to do this after all :)

On 8/19/07, Cybolic <[EMAIL PROTECTED]> wrote:
>
>
> You're absolutely correct John, it does not stop animation, thanks for
> clearing that up.
> I'm sorry for misleading you guys, I should have tested my claim more
> thoroughly.
>
> To try and make up for my mistake, I've packaged John's new code into
> a plugin and added a skip function that skips the current animation
> (and goes to the next in queue).
>
> You can find it here:
>
>   demo:
>   http://untied.dk/jquery/stop/index.html
>
>   plugin:
>   http://untied.dk/jquery/stop/jquery.animstop.js
>
> Sorry for the confusion.
>
> - Christian Dannie Storgaard
>
> P.S. I haven't added the full new effect code from John's latest
> version, just the stuff needed to make stop work, so there may be
> something that doesn't work, but I haven't found anything so far.
>
> On Aug 19, 6:36 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote:
> > John, i now completely get what u mean... This is actually not stopping
> > animation ;-).
> >
> > :-( we will wait for jquery 1.2 in the meantime... Thanks for letting us
> > know.
> >
> > -GTG
> >
> > On 8/18/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Ok, there is no way i can oppose that. You are an authority in what u
> r
> > > talking about and i comletely agree with u. I also understand exactly
> what u
> > > mean when u say that...
> >
> > > That said, the interesting part is, in the case of my lavalamp plugin
> > >http://www.gmarwaha.com/jquery/lavalamp/test/test.html, this code seems
> > > to solve the problem that could be solved by stopping animations in
> the
> > > middle. I don't understand how this works then. I willd be glad if you
> can
> > > explain that please.
> >
> > > -GTG
> >
> > >  On 8/18/07, John Resig <[EMAIL PROTECTED]> wrote:
> >
> > > > That code doesn't work - it doesn't stop any animations, it only
> > > > clears the animation queue (stopping any future queued animations).
> >
> > > > You can't build a true stop animation without modifying jQuery core.
> > > > Here's a page that demonstrates that code that's going into jQuery
> > > > 1.2:
> > > >http://dev.jquery.com/~john/ticket/stop/
> >
> > > > --John
> >
> > > > On 8/17/07, Cybolic <[EMAIL PROTECTED]> wrote:
> >
> > > > > You can start and stop an animation like so:
> >
> > > > > // start
> > > > > $('#animationElement').animate({width: 50}, slow);
> >
> > > > > // stop
> > > > > $.dequeue($('#animationElement').get(0), "fx");
> >
> > > > > You can of course define a helper for it like so:
> >
> > > > > $.fn.stop = function(){
> > > > > this.each(function(){
> > > > > $.dequeue(this, "fx");
> > > > > });
> > > > > return this;
> > > > > };
> >
> > > > >  - now you can just do: $('#animationElement').stop();
> >
> > > > > This should really be added to the documentation, or given a
> shortcut.
> > > > > If anyone would do this, or tell me how to do it, that'd be great.
> >
> > > > > Cheers,
> > > > > Christian Dannie
> >
> > > > > On Aug 4, 6:40 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]>
> wrote:
> > > > > > hi friends,
> >
> > > > > > is there a way to stop an animation after it has started? any
> hack
> > > > that will
> > > > > > make this happen will be useful...
> >
> > > > > > thanks in advance,
> > > > > > -GTG
>
>


-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Joan Piedra
I've found this to be the easiest and unobstrusive way to gzip my files with
a .htaccess file.




# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml
application/x-javascript

# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html





On 9/14/07, seedy <[EMAIL PROTECTED]> wrote:
>
>
>
> I also had the same thing happen.
> 14kb is only after it has been gzipped by your server.
> The version you are downloading has been minified, Its up to you to do the
> gzipping.
>
>
> lukwe wrote:
> >
> >
> > When I go to the GoogleCode page for the minified version it idsplays a
> 46
> > kb file to download;
> > seems like the file had been deflated again by the server (?!?).
> >
> > Is anyone else experiencing this ??!?
> >
> >
> > ciao
> >
>
> --
> View this message in context:
> http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: New book: "jQuery in Action"

2007-09-14 Thread Joan Piedra
This looks interesting, will look at the demo chapters :)
Thanks for this book guys!

On 9/13/07, Fred Janon <[EMAIL PROTECTED]> wrote:
>
> Just got an email annoucing the early access to the book:
>
>  jQuery in 
> Action
> EARLY ACCESS *
> *Bear Bibeault and Yehuda Katz
> MEAP Release: September 2007
> Softbound print: December 2007 | 300 pages
> ISBN: 1933988355
>
> http://www.manning.com/bibeault/
>
> The first chapter is free http://www.manning.com/bibeault/
>
> Any feedback would be appreciated!
>
> Thanks
>
> Fred
>
>



-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: Thumbnail Gallery

2007-09-14 Thread Joan Piedra
Thanks Benjamin, I will release a new versión of this plugin soon :)

On 9/14/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
>
> Joan, thats a nice piece of work you have there.
>
> On 9/13/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
> >
> > I created a simple plugin that can help you to mimic thumbnails
> > "cropping" big images.
> > http://www.joanpiedra.com/jquery/thumbs/
> >
> >
> > On 9/13/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Pardon for the beginner's question, Has anyone seen jquery used to
> > > provide a thumbnail gallery?  I want to create a series of thumbnail
> > > images that (on hover) will load a larger image into a stage beside
> > > them.  I wanted to use jquery to get the fade effects on the hover,
> > > but haven''t seen something like this out there,
> > >
> > > Thanks for the help,
> > >
> > > patrick
> > >
> > >
> >
> >
> > --
> > Joan Piedra  ||  Frontend web developer
> > http://www.justaquit.com/  ||   http://www.joanpiedra.com/
>
>
>
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: file selector/ directory browser

2007-09-14 Thread mmjaeger

maybe this is something you're looking for:
http://www.k1der.net/modules/blogs/public/country/demo/brooser.html


On Sep 14, 6:34 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> hi all,
>
> i'm in desperate need of a folder browser/ file selection widget. I wondered 
> if anyone found a nice one? Basically, i just need some widget that takes a 
> directory  sitting on the server, display its content of images, user clicks 
> on one, UI disappears and feeds the form input with the url of the selected 
> image.
>
> anyone has seen anything in that area?
>
> I saw HYPERLINK 
> "http://www.sitespotting.it/esempi/002/"http://www.sitespotting.it/esempi/002/which
>  could be tweaked to do that, but it's all in italian...
>
> thanks mates,
>
> Alexandre
>
> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
> Lakensestraat/Rue de Laeken 104
> B-1000 Brussel-Bruxelles-Brussels
> Belgie-Belgique-Belgium
>
> Tel:+32(0)2.219.65.55
> Fax:+32(0)2.426.69.86
> Mobile:+32(0)476.23.21.42
> HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
> HYPERLINK "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be
>
> HYPERLINK 
> "blocked::http://www.mediaruimte.be/"__
>
> The information in this e-mail is intended only for the addressee named 
> above.  If you are not that addressee, please note that any disclosure, 
> distribution or copying of this e-mail is prohibited.
> Because e-mail can be electronically altered, the integrity of this 
> communication cannot be guaranteed.
>
> __
>
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007 
> 21:48



[jQuery] Re: Workin Internet Explorer Example

2007-09-14 Thread 0xCAFE

AA!

I found it !  \o/

The problem was that in my AJAXCheckUsername.jsp, I was not setting
the content-type !
So I added this line : Response.addHeader("Content-Type: text/plain;
charset=iso-8859-1");

Now Internet Explorer is not giving any error and it looks like
Firefox is getting the response faster too (~150ms instead of ~300ms).

Things to remember when using Ajax with IE
--

1) Specify the content-type in the response object
2) Specify the cache directives (Pragma: no-cache, Cache-Control: no-
cache, Expires: [past time])

Thanks for all your help on this !
I really appreciated your efforts !

0xCAFE



[jQuery] Re: "No such interface supported" error in Internet Explorer

2007-09-14 Thread 0xCAFE

I found it !  \o/

The problem was that in my AJAXCheckUsername.jsp, I was not setting
the content-type !
So I added this line : Response.addHeader("Content-Type: text/plain;
charset=iso-8859-1");

Now Internet Explorer is not giving any error and it looks like
Firefox is getting the response faster too (~150ms instead of ~300ms).

Things to remember when using Ajax with IE
--

1) Specify the content-type in the response object
2) Specify the cache directives (Pragma: no-cache, Cache-Control: no-
cache, Expires: [past time])

Thanks for all your help on this !
I really appreciated your efforts !

0xCAFE



[jQuery] [Announce] Horizontal Accordion plugin 1.00 alpha

2007-09-14 Thread Alexander Graef
I have just moved my horizontal Accordion tutorial to a real jQuery plugin.
The plugin provides extensive options to configure its layout and behaviour.

 

More about it here:

http://dev.portalzine.de/index?/Horizontal_Accordion--print

 

It is still an alpha release, which has only been tested on IE and Firefox
so far. Will be doing some more work on it next week, so enjoy the
pre-release :-) 

 

Have a nice weekend and btw jQuery 1.2 rocks ;)

 

Cheers

Alexander

 

 

-

portalZINE(R)- innovation uncovered 

  http://www.portalzine.de

 

dev.portalZINE(R) - all about development

  http://dev.portalzine.de

 

pro.portalZINE(R) - customized experience

http://pro.portalzine.de

 



[jQuery] Re: fouc, with no css involved

2007-09-14 Thread [EMAIL PROTECTED]

New information:

If I switch to fadeIn/fadeOut - no fouc.  If I use slideDown - fouc.
Looks like the issue is just related to sliding.

Also, in case I wasn't clear - there is no css used in my page.  This
is not a css-fouc issue.  It appears to be a jQuery-fouc issue (as far
as this noob can tell).

Cam


On Sep 14, 10:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have some nested ULs where I slideToggle them by clicking on an img
> in the parent LI.
>
> Clicking at any particular level will briefly (split-second) reveal
> the entire child UL, then it will disappear, then slide open as
> expected.  Clicking to slideToggle the child UL back (so that it is
> hidden) performs as expected until it finally disappears - then there
> is another split-second reveal of the whole child UL before it is
> finally hidden.
>
> This happens in IE6, but not in FF2 (no "fouc" in FF2).
>
> The HTML:
> 
> 
> 
>  Nest 1
> 
>
>  Nest 1 1
> 
>  Nest 1 1 1
> 
> oh, yeah
> 
> 
> Nest 1 1 2
> 
> 
>  Nest 1 2
> 
> Nest 1 2 1
> Nest 1 2 2
> 
> 
> 
> 
> 
>  Nest 2
> 
> Nest 2 1
>
> Nest 2 2
> 
> 
> 
> 
>
> The jQuery:
> $(document).ready(function() {
> $("#div1").find("ul:gt(0)").hide().end().find("ul > li >
> img").click(function() {
> if (this.src.search(/plus/)>0) {
> $(this).attr("src", "minus.gif");
> } else {
> $(this).attr("src", "plus.gif");
> }
> $(this).next("ul").slideToggle();
> return false;
> });
> });
>
> Has anyone else experienced this?
> Cam



[jQuery] Re: problem with spaces between html elements in ie

2007-09-14 Thread mrsheep

i got it solved, it wasn't a html problem (creating the same tagcloud
statically worked without problems).
it was probably a jquery bug related to space trimming, i was using
jquery 1.1.3.1, upgrading to 1.2 got it solved.
thanks to all.

On Sep 13, 12:27 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Good call on option B Richard, I will second that.
>
> On 9/13/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I know this doesn't answer the question you're asking, but I wonder if you
> > have/would consider:
>
> > A. Using css to space each link, instead of the space character
> > - or -
> > B. Using an unordered list of links, and then with css float them in the
> > cloud.
>
> > Here's a great article that argues for Option B (UL > LI > A) as more
> > semantic than DIV > A, and then goes on to show a way of making the tag
> > cloud accessible:
>
> >http://24ways.org/2006/marking-up-a-tag-cloud
>
> > - Richard
>
> > On 9/12/07, mrsheep <[EMAIL PROTECTED]> wrote:
>
> > > hi, i'm trying to load tags into a tagcloud dynamically doing
> > > something like:
>
> > > ...
> > > 
> > > 
>
> > > tags= ["first", "second", "third"];
> > > $.each (tags, function (i, textval) {
> > > var newTag= $("").text(textval).attr ("tagId", i);
> > > newTag.addClass ("tag");
> > > $("#tagcloud").append(newTag).append(" ");
> > > });
>
> > > and that works fine in ff and opera but in ie (6-7) the tags appear
> > > without spaces in between ('firstsecondthird').
> > > any suggestion?
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Re: Strip out HTML tags

2007-09-14 Thread Jake McGraw
Doesn't $().text(); automatically do this?

So:

var text = $(html).text();

Would solve your problem, I think.

- jake

On 9/14/07, Stosh <[EMAIL PROTECTED]> wrote:
>
>
> In Prototype there is a method called stripTags(), it's source looks
> like:
>
> stripTags: function() {
> return this.replace(/<\/?[^>]+>/gi, '');
> }
>
> To do it the jQuery way, I might consider doing something like this...
>
> jQuery.fn.stripTags = function() {
> return this.replaceWith( this.html().replace(/<\/?[^>]+>/gi, '')
> );
> };
>
> Hope this helps, Pax.
>
> - Stan
>
>
>
> On Sep 11, 11:08 am, AnandG <[EMAIL PROTECTED]> wrote:
> > I retrieve a lot of strings from a JSON file. These strings can contain
> HTML
> > tags.
> >
> > I would like to show the strings (for example a description of a
> product)
> > but with a limit on the number of characters.
> >
> > So I have to count the number of characters and I would like to set a
> limit
> > to 200 characters. But I want to exclude the
> > characters of the HTML tags. The easiest method seems to me to strip
> HTML
> > tags in the strings.
> >
> > I have searched in this forum and found some posts that deal with
> stripping
> > out HTML tags:
> >
> > http://www.nabble.com/Strip-a-href-links-from-a-div-tf4372556s15494.h...
> > Strip a href links from a div
> >
> > http://www.nabble.com/stripping-out-tags...-tf2583359s15494.html#a720...
> > Stripping out tags
> >
> > But they all require that you send a HTML tag as a parameter. But that's
> > difficult if i'm not sure which HTML tag is going to be used.
> >
> > --
> > View this message in context:
> http://www.nabble.com/Strip-out-HTML-tags-tf4421390s15494.html#a12611168
> > Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Re: Strip out HTML tags

2007-09-14 Thread Stosh

In Prototype there is a method called stripTags(), it's source looks
like:

stripTags: function() {
return this.replace(/<\/?[^>]+>/gi, '');
}

To do it the jQuery way, I might consider doing something like this...

jQuery.fn.stripTags = function() {
return this.replaceWith( this.html().replace(/<\/?[^>]+>/gi, '') );
};

Hope this helps, Pax.

- Stan



On Sep 11, 11:08 am, AnandG <[EMAIL PROTECTED]> wrote:
> I retrieve a lot of strings from a JSON file. These strings can contain HTML
> tags.
>
> I would like to show the strings (for example a description of a product)
> but with a limit on the number of characters.
>
> So I have to count the number of characters and I would like to set a limit
> to 200 characters. But I want to exclude the
> characters of the HTML tags. The easiest method seems to me to strip HTML
> tags in the strings.
>
> I have searched in this forum and found some posts that deal with stripping
> out HTML tags:
>
> http://www.nabble.com/Strip-a-href-links-from-a-div-tf4372556s15494.h...
> Strip a href links from a div
>
> http://www.nabble.com/stripping-out-tags...-tf2583359s15494.html#a720...
> Stripping out tags
>
> But they all require that you send a HTML tag as a parameter. But that's
> difficult if i'm not sure which HTML tag is going to be used.
>
> --
> View this message in 
> context:http://www.nabble.com/Strip-out-HTML-tags-tf4421390s15494.html#a12611168
> Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: How to turn keywords into links?

2007-09-14 Thread Olivier Percebois-Garve

just a thought, but for SEO you'd better to do this server-side...

-Olivier

Glen Lipka wrote:

Start with the Search Highlight plugin.
http://www.jquery.info/spip.php?article50 



Option 1.  Change the way the plugin works to add A links instead of 
spans.

See the line in the code that says:
var repl = $.merge([],$(""+newtext+"")[0].childNodes);
Change that to use ...

Option 2. Use the livejQuery plugin after the searchHighlight works.
http://brandonaaron.net/docs/livequery/

This allows you to listen for span class="hilite" and add a "click" 
function to them.

$('span.hilite')
.livequery('click', function(event) {
var theGuysName = $("this").text();
runRedirectFunction(theGuysName);
return false;
});

Completely untested.  Does it get you going?

Glen

On 9/14/07, *Dan* <[EMAIL PROTECTED] > wrote:


Hi there,

I'm a relative jQuery newcomer, and I've googled high and low but
can't seem to find an answer to my problem.

I've got a page of concerts for this conductor I'm working on, it
generates the page contents from a mysql database.

There are certain composers which are particularly important and have
their own dedicated pages elsewhere on the site.

What I would like to do is scan through the page for mentions of each
composer and then turn these instances into links to each composer's
page.

Is this possible or is there a plugin that might do what I want? I'm
going insane here.

Thanks in advance,
Dan






[jQuery] Re: jEditable - Name of class

2007-09-14 Thread Dylan Verheul

See below

-- Forwarded message --
From: Adrian Lynch <[EMAIL PROTECTED]>
Date: Sep 4, 2007 2:07 PM
Subject: [jQuery] Re: editable accessing clicked element for extraParam
To: "jQuery (English)" 



I came up with a clunky work around involving changing the editable
code which wasn't ideal. Talking to Dylan, he suggested doing the
following which works like a charm.

$(".editable").each(function(i) {

   $(this).editable("page-update.cfm?action=updatePageName", {
   paramName: "pageName",
   callback: doneUpdatingPageName,
   saving: "Saving... ",
   extraParams: {
   pageID: this.id.split("-")[1]
   }
   });

});

Using each() to apply editable() to each element in turn.

On 9/14/07, Dylan Verheul <[EMAIL PROTECTED]> wrote:
> You should wrap your editable calls with an each(), ad assign the
> class names from there. Example code was posted to this list not too
> long ago, I'll see if I can find it for you.
>
> Dylan
>
> On 9/14/07, Zerutreck <[EMAIL PROTECTED]> wrote:
> >
> > I want to catch the name of the classroom that is being edited at the
> > moment , So that my script php knows of which div is come the
> > information.
> >
> > If div link 1 or div link 2 or div link3 that it was edited, I try
> > with the code, $('div').attr('class'), but he did not function
> >
> >
> > $(".link1, .link2, .link3, .link4").editable("http://localhost/somzoom/
> > index.php/admin/atualizaVideos/1/", {
> > id  : 'elementid',
> > name  : $('div').attr('class'),
> > submit: 'Modificar',
> > indicator : " > src='http://localhost/somzoom/img/load.gif'>",
> > tooltip   : 'Clique para editar...'
> > });
> >
> > Link 1
> > Link 2
> > Link 3
> > 

[jQuery] fouc, with no css involved

2007-09-14 Thread [EMAIL PROTECTED]

I have some nested ULs where I slideToggle them by clicking on an img
in the parent LI.

Clicking at any particular level will briefly (split-second) reveal
the entire child UL, then it will disappear, then slide open as
expected.  Clicking to slideToggle the child UL back (so that it is
hidden) performs as expected until it finally disappears - then there
is another split-second reveal of the whole child UL before it is
finally hidden.

This happens in IE6, but not in FF2 (no "fouc" in FF2).

The HTML:



 Nest 1


 Nest 1 1

 Nest 1 1 1

oh, yeah


Nest 1 1 2


 Nest 1 2

Nest 1 2 1
Nest 1 2 2





 Nest 2

Nest 2 1

Nest 2 2





The jQuery:
$(document).ready(function() {
$("#div1").find("ul:gt(0)").hide().end().find("ul > li >
img").click(function() {
if (this.src.search(/plus/)>0) {
$(this).attr("src", "minus.gif");
} else {
$(this).attr("src", "plus.gif");
}
$(this).next("ul").slideToggle();
return false;
});
});

Has anyone else experienced this?
Cam



[jQuery] Re: jEditable - Name of class

2007-09-14 Thread Dylan Verheul

You should wrap your editable calls with an each(), ad assign the
class names from there. Example code was posted to this list not too
long ago, I'll see if I can find it for you.

Dylan

On 9/14/07, Zerutreck <[EMAIL PROTECTED]> wrote:
>
> I want to catch the name of the classroom that is being edited at the
> moment , So that my script php knows of which div is come the
> information.
>
> If div link 1 or div link 2 or div link3 that it was edited, I try
> with the code, $('div').attr('class'), but he did not function
>
>
> $(".link1, .link2, .link3, .link4").editable("http://localhost/somzoom/
> index.php/admin/atualizaVideos/1/", {
> id  : 'elementid',
> name  : $('div').attr('class'),
> submit: 'Modificar',
> indicator : " src='http://localhost/somzoom/img/load.gif'>",
> tooltip   : 'Clique para editar...'
> });
>
> Link 1
> Link 2
> Link 3
> 

[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Andy Matthews

Alex...

I doubt that the table would ever have more than 200 rows. Putting the
contents of the table into an array might not be a bad idea, I'll look into
it. Thank you for your input. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Ezell
Sent: Friday, September 14, 2007 12:44 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Code Review: Table filtering...


How big do you expect this table to get?

I'm not sure, but on a really large table, it might be pretty slow to do a
.each() over all the elements on each keypress.

Maybe a better way would be to have a function to parse the table results
and build some sort of data structure (array, JSON object,
etc.) which you might be able to filter quicker. I'm not *sure* that it
would be faster, but it's something to explore.

/alex

On 9/14/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> Yeah...I saw that after I wrote my own actually. Mine is only like 5 
> lines of code, I'm guessing the plugin is far larger than that.
>
> At this point, I'm just looking for feedback to tell me if my code is 
> any good.
>
> :)
>
>
> andy
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of Chris W. Parker
> Sent: Friday, September 14, 2007 11:49 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Code Review: Table filtering...
>
>
> On Friday, September 14, 2007 9:25 AM Bil Corry said:
>
> > Andy Matthews wrote on 9/14/2007 8:11 AM:
> >> Yesterday I asked on the list for suggestions on how to filter the 
> >> contents of a table using an autocomplete type interface. Didn't 
> >> get any answers so last night I wrote it myself.
> >
> > Sorry, I must have missed your post (I find it difficult to keep up 
> > with the traffic on this list).  This is what I've been using for 
> > many years, the only tweak I made to it was to make it
> > case-insensitive:
> >
> > 
>
> And if you prefer a jQuery plugin (this is the one I was talking about):
>
> http://ideamill.synaptrixgroup.com/?page_id=16
>
>
>




[jQuery] Re: How to turn keywords into links?

2007-09-14 Thread Glen Lipka
Start with the Search Highlight plugin.
http://www.jquery.info/spip.php?article50

Option 1.  Change the way the plugin works to add A links instead of spans.
See the line in the code that says:
var repl = $.merge([],$(""+newtext+"")[0].childNodes);
Change that to use ...

Option 2. Use the livejQuery plugin after the searchHighlight works.
http://brandonaaron.net/docs/livequery/

This allows you to listen for span class="hilite" and add a "click" function
to them.
$('span.hilite')
.livequery('click', function(event) {
var theGuysName = $("this").text();
runRedirectFunction(theGuysName);
return false;
});

Completely untested.  Does it get you going?

Glen

On 9/14/07, Dan <[EMAIL PROTECTED]> wrote:
>
>
> Hi there,
>
> I'm a relative jQuery newcomer, and I've googled high and low but
> can't seem to find an answer to my problem.
>
> I've got a page of concerts for this conductor I'm working on, it
> generates the page contents from a mysql database.
>
> There are certain composers which are particularly important and have
> their own dedicated pages elsewhere on the site.
>
> What I would like to do is scan through the page for mentions of each
> composer and then turn these instances into links to each composer's
> page.
>
> Is this possible or is there a plugin that might do what I want? I'm
> going insane here.
>
> Thanks in advance,
> Dan
>
>


[jQuery] How to turn keywords into links?

2007-09-14 Thread Dan

Hi there,

I'm a relative jQuery newcomer, and I've googled high and low but
can't seem to find an answer to my problem.

I've got a page of concerts for this conductor I'm working on, it
generates the page contents from a mysql database.

There are certain composers which are particularly important and have
their own dedicated pages elsewhere on the site.

What I would like to do is scan through the page for mentions of each
composer and then turn these instances into links to each composer's
page.

Is this possible or is there a plugin that might do what I want? I'm
going insane here.

Thanks in advance,
Dan



[jQuery] Re: FCKeditor replacement which works in Safari

2007-09-14 Thread Jacob Stuart

I played around with tinyMCE (v 2.1.0) a few months back and really
enjoyed it: simple and lightweight. However I ran into a bug that made
it impossible for me to use in the application I was developing. If a
user is browsing with IE and Content Advisor enabled (in Tools >
Internet Options then the Content tab) the browser will crash EVERY
time. Unfortunately my code was to be used by a corporate kiosk system
that was controlled by another department and they limited the system
to IE and controlled browsing using Content Advisor. I was forced to
change to FCKEditor to meet my needs. This probably isn't an issue for
you (since you're looking for Safari support), but it's still a good
thing to bear in mind for other projects if the intended audience
might be very broad.

On Sep 14, 6:35 am, Michael Price <[EMAIL PROTECTED]> wrote:
> Eridius wrote:
>
> > There is always tinyMCE
>
> >http://tinymce.moxiecode.com/
>
> Am toying with that one at this very minute - it shows early promise.
> That Asbrusoft one looked quite cool as well but I think I'm heading for
> TinyMCE at the moment.
>
> Thanks for the posts so far!
>
> Regards,
> Michael Price



[jQuery] Re: Superfish Question (v1.3.1)

2007-09-14 Thread Jacob Stuart

Thanks for the reply Joel. If it is indeed something that isn't really
needed then you can take all the time you need ;).

Cheers,
Jacob Stuart

On Sep 14, 6:06 am, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Jacob,
>
> I don't have time right now to reply in as much detail as I would
> like, but I will make time to do so tomorrow. Short answer is: it
> seems like that line is not needed anymore so feel free to remove it
> as future versions of Superfish will not include it.
>
> I'll respond properly when I get chance.
>
> Joel Birch.



[jQuery] Re: Firefox not working with css child selectors (?!?)

2007-09-14 Thread [EMAIL PROTECTED]

Wow - well there you go.  I'll compare the two and figure out what I
did wrong.  *Thank you*, Erik.  I really appreciate this.

Cam

On Sep 14, 5:14 am, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> Seems to work for me:
>
> http://erikandcolleen.com/erik/projects/jquery/nestedul/
>
> Maybe there's a problem with your HTML?
>
> --Erik
>
> On 9/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is there an issue with FF understanding css child selectors?  I
> > wouldn't think so, but I'm having an issue.
>
> > I'm trying to hide/reveal nested ULs based on which LI's child img is
> > clicked.  This code works in IE6, but not FF2.
>
> > In FF: I've determined that the hide() is working, the alert() is
> > working, and the img.src replacement is working - but the slideToggle
> > on the nested UL is not.
>
> > $(document).ready(function() {
> >$("#div1").find("ul:gt(0)").hide().end().find("ul:first > li >
> > img").click(function() {
> >alert(this.id);
> >$(this).parent("li").children("ul:first").slideToggle();
> >   if (this.src.search(/plus/)>0) {
> >  $(this).attr("src", "minus.gif");
> >   } else {
> >  $(this).attr("src", "plus.gif");
> >   }
> >   return false;
> >});
> > });
>
> > Thank you for any information!



[jQuery] Selector scape

2007-09-14 Thread Pedro Gonçalves
Hi guys!

I have a input that the name is like "listaFuncaoatividade[1].atividade"

but when i use the jquery's selector
$("[EMAIL PROTECTED]".indexNumber."].atividade]") makes
conflict with selector's clasp.

how can i do do make a scape of my input name?

thanks!

-- 
Pedro Gonçalves
031-8415 5423
[EMAIL PROTECTED]
www.izap.com.br


[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Alex Ezell

How big do you expect this table to get?

I'm not sure, but on a really large table, it might be pretty slow to
do a .each() over all the elements on each keypress.

Maybe a better way would be to have a function to parse the table
results and build some sort of data structure (array, JSON object,
etc.) which you might be able to filter quicker. I'm not *sure* that
it would be faster, but it's something to explore.

/alex

On 9/14/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> Yeah...I saw that after I wrote my own actually. Mine is only like 5 lines
> of code, I'm guessing the plugin is far larger than that.
>
> At this point, I'm just looking for feedback to tell me if my code is any
> good.
>
> :)
>
>
> andy
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Chris W. Parker
> Sent: Friday, September 14, 2007 11:49 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Code Review: Table filtering...
>
>
> On Friday, September 14, 2007 9:25 AM Bil Corry said:
>
> > Andy Matthews wrote on 9/14/2007 8:11 AM:
> >> Yesterday I asked on the list for suggestions on how to filter the
> >> contents of a table using an autocomplete type interface. Didn't get
> >> any answers so last night I wrote it myself.
> >
> > Sorry, I must have missed your post (I find it difficult to keep up
> > with the traffic on this list).  This is what I've been using for many
> > years, the only tweak I made to it was to make it
> > case-insensitive:
> >
> > 
>
> And if you prefer a jQuery plugin (this is the one I was talking about):
>
> http://ideamill.synaptrixgroup.com/?page_id=16
>
>
>


[jQuery] Re: Firefox not working with css child selectors (?!?)

2007-09-14 Thread [EMAIL PROTECTED]

The issue with the html was that in my code, I did this:

[li]text[/li]
[ul]
[li]more text[/li]
[/ul]

...and the correct code is:

[li]text
[ul]
[li]more text[/li]
[/ul]
[/li]

On Sep 14, 5:14 am, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> Seems to work for me:
>
> http://erikandcolleen.com/erik/projects/jquery/nestedul/
>
> Maybe there's a problem with your HTML?
>
> --Erik
>
> On 9/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is there an issue with FF understanding css child selectors?  I
> > wouldn't think so, but I'm having an issue.
>
> > I'm trying to hide/reveal nested ULs based on which LI's child img is
> > clicked.  This code works in IE6, but not FF2.
>
> > In FF: I've determined that the hide() is working, the alert() is
> > working, and the img.src replacement is working - but the slideToggle
> > on the nested UL is not.
>
> > $(document).ready(function() {
> >$("#div1").find("ul:gt(0)").hide().end().find("ul:first > li >
> > img").click(function() {
> >alert(this.id);
> >$(this).parent("li").children("ul:first").slideToggle();
> >   if (this.src.search(/plus/)>0) {
> >  $(this).attr("src", "minus.gif");
> >   } else {
> >  $(this).attr("src", "plus.gif");
> >   }
> >   return false;
> >});
> > });
>
> > Thank you for any information!



[jQuery] i6 performance

2007-09-14 Thread [EMAIL PROTECTED]

Hi everybody.
Tryng to hide or show a div containing 1000 or plus div inside I
noticed different performance in different browsers. In short : ie6
very very slow ie7 and ff ok.
Any trick to speedup in ie6?
thank you.



[jQuery] Re: Workin Internet Explorer Example

2007-09-14 Thread 0xCAFE

I agree it works in IE7.  The q.cfc script is outputing JavaScript.
In my case, it's outputing either the word "Available" or "Not
Available".

I have modified a strip-down version of my code to work similarily as
the one on co-opcookbook.com








After running it in FF or Safari, I get the following :
alert(result)  => ajax_result = ""; ajax_result = "Not Available"
alert(ajax_result) => Not Available

The exact same code in IE7 gives me the "System error: -1072896658.".

The code resides on the same server as AJAXCheckUsername.jsp

Thanks



[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Andy Matthews

Yeah...I saw that after I wrote my own actually. Mine is only like 5 lines
of code, I'm guessing the plugin is far larger than that.

At this point, I'm just looking for feedback to tell me if my code is any
good.

:)


andy 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris W. Parker
Sent: Friday, September 14, 2007 11:49 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Code Review: Table filtering...


On Friday, September 14, 2007 9:25 AM Bil Corry said:

> Andy Matthews wrote on 9/14/2007 8:11 AM:
>> Yesterday I asked on the list for suggestions on how to filter the 
>> contents of a table using an autocomplete type interface. Didn't get 
>> any answers so last night I wrote it myself.
> 
> Sorry, I must have missed your post (I find it difficult to keep up 
> with the traffic on this list).  This is what I've been using for many 
> years, the only tweak I made to it was to make it
> case-insensitive:   
> 
> 

And if you prefer a jQuery plugin (this is the one I was talking about):

http://ideamill.synaptrixgroup.com/?page_id=16




[jQuery] Bug in slide up/down? Contents of target hide as well, but don't show also.

2007-09-14 Thread Andy Matthews
I'm using slide up/down on a div which contains a table. When I slide the
div up it works just fine. When I slide it down it works fine as well, until
the animation is complete at which point the table vanishes.
 
Is this a bug or a "feature"? Do I need to explicitly show the table in my
code?
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com  
 
<>

[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Chris W. Parker

On Friday, September 14, 2007 9:10 AM Glen Lipka said:

> Viola!  All my JS files were significantly smaller. (check my site to
> see evidence)

I prefer the cello. But that's just me.


(See http://wsu.edu/~brians/errors/voila.html)


[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Chris W. Parker

On Friday, September 14, 2007 9:25 AM Bil Corry said:

> Andy Matthews wrote on 9/14/2007 8:11 AM:
>> Yesterday I asked on the list for suggestions on how to filter the
>> contents of a table using an autocomplete type interface. Didn't get
>> any answers so last night I wrote it myself.
> 
> Sorry, I must have missed your post (I find it difficult to keep up
> with the traffic on this list).  This is what I've been using for
> many years, the only tweak I made to it was to make it
> case-insensitive:   
> 
> 

And if you prefer a jQuery plugin (this is the one I was talking about):

http://ideamill.synaptrixgroup.com/?page_id=16


[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Bil Corry


Andy Matthews wrote on 9/14/2007 8:11 AM: 

Yesterday I asked on the list for suggestions on how to filter the contents
of a table using an autocomplete type interface. Didn't get any answers so
last night I wrote it myself.


Sorry, I must have missed your post (I find it difficult to keep up with the 
traffic on this list).  This is what I've been using for many years, the only 
tweak I made to it was to make it case-insensitive:




- Bil



[jQuery] Re: jQuery 1.2 and jCarousel

2007-09-14 Thread Josh Nathanson


jCarouselLite has a couple lt and gt methods (removed from 1.2), and also 
suffers from the negative pixel issue that was discussed on this list 
earlier this week.


Can't speak for jCarousel though.

If you roll back to 1.1.4 for jCarouselLite you should be ok for now.  The 
negative pixel issue is slated to be fixed this weekend.  Hopefully Ganeshji 
will fix jCarouselLite soon to be 1.2 compliant, or you can mod it yourself 
in the meantime.


-- Josh


- Original Message - 
From: "Maurizio Mangione" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Friday, September 14, 2007 3:15 AM
Subject: [jQuery] jQuery 1.2 and jCarousel




Hi,
  I've tried to implement jCarousel and jCarousel lite with the new
version of jQuery but doesn't works.

Any suggestion to solve this problem?

Thanks in advance,
-Maurizio





[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Glen Lipka
I just recently decided to figure out how to gzip my own JS files.
This might not be the best method, but I...

   1. Renamed all the js files to be php instead.
   2. Changed the links in my html to point to php instead of html.
   3. At the top of each JS, I put 
   4. At the bottom of each JS, I put 

Viola!  All my JS files were significantly smaller. (check my site to see
evidence)

Regarding the underhanded thing.  I agree!  We should call the File Size
Police and have them throw John into the Hooskow!  Misleading the Public in
the Second Degree!  10 years in the clink!  Come on people!  Grab your
pitchforks!  We got ourselves an outlaw!  YeeeHaaa!!
There is a new sheriff in town, he don't take lightly to
gzip-packed-minified confusion!

Glen


On 9/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Hi Stephan,
>
> I think "underhanded" is a little harsh and I'm not sure John Resig, who
> is the one who put that up there, was attempting to do anything wrong.
>
> Also, we're not trying to be "marketing people" as you so incorrectly
> described the folks on this project. We're trying to provide the
> community with various options for using the jQuery library, especially
> in terms of performance and file size. That's why the link, which
> describes how to use gzipped files, was added next to the download.
>
> Considering how involved you are on the list and knowing how much effort
> everyone on the project puts into the jQuery, I'm a little disappointed
> that you would make such remarks.
>
> Rey...
> jQuery Project Team
>
> > This is correct. The webmaster/developers/whoever chose to be a bit
> > underhanded there and say it's 14k "with gzip", but fail to mention
> > that the user must arrange for the code to get gzipped. Shame on them.
> > They've metamorphed from programmers to marketing people.
>


[jQuery] Re: file selector/ directory browser

2007-09-14 Thread Alexandre Plennevaux
thank you Benjamin!

   _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: vendredi 14 septembre 2007 16:51
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: file selector/ directory browser


Check out HYPERLINK
"http://wanderinghorse.net/computing/javascript/jquery/bogofolders/demo-bogo
folders.html"http://wanderinghorse.net/computing/javascript/jquery/bogofolde
rs/demo-bogofolders.html, not sure if it does exactly what you want. 

Also, run that site through HYPERLINK
"http://translate.google.com"translate.google.com

HYPERLINK
"http://translate.google.com/translate?u=http%3A%2F%2Fwww.sitespotting.it%2F
esempi%2F002%2F&langpair=it%7Cen&hl=en&ie=UTF8"http://translate.google.com/t
ranslate?u=http%3A%2F%2Fwww.sitespotting.it%2Fesempi%2F002%2F&langpair=it%7C
en&hl=en&ie=UTF8


On 9/14/07, Alexandre Plennevaux mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: 

hi all,
 
i'm in desperate need of a folder browser/ file selection widget. I wondered
if anyone found a nice one? Basically, i just need some widget that takes a
directory  sitting on the server, display its content of images, user clicks
on one, UI disappears and feeds the form input with the url of the selected
image.
 
anyone has seen anything in that area?
 
I saw HYPERLINK "http://www.sitespotting.it/esempi/002/";
\nhttp://www.sitespotting.it/esempi/002/ which could be tweaked to do that,
but it's all in italian...
 
 
thanks mates,
 
Alexandre
 

Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104
B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium 

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
http://www.lab-au.com
http://www.mediaruimte.be

__ 

The information in this e-mail is intended only for the addressee named
above.  If you are not that addressee, please note that any disclosure,
distribution or copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this
communication cannot be guaranteed.

__

 


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48





-- 
Benjamin Sterling
HYPERLINK "http://www.KenzoMedia.com"http://www.KenzoMedia.com
HYPERLINK "http://www.KenzoHosting.com"http://www.KenzoHosting.com 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 


[jQuery] Re: Code Review: Table filtering...

2007-09-14 Thread Chris W. Parker

On Friday, September 14, 2007 6:12 AM Andy Matthews said:

> Yesterday I asked on the list for suggestions on how to filter the
> contents of a table using an autocomplete type interface. Didn't get
> any answers so last night I wrote it myself.

I'm positive there is a plugin out there that does this. Did you check
the plugin repository?

> http://www.commadelimited.com/code/filter
> 
> I was wondering if I could get some of you gurus to take a quick peek
> at it and offer suggestions or critiques on what I could to to
> improve it. Any suggestions, no matter how small, will be
> appreciated. It's the only way I'm going to improve.   

It should filter based on any part of the tring. Typing "abed" doesn't
get any results but it should because there is "Jonathan Abed".

Also I think it tries to filter too quickly. Since it's a bit slow (I
don't know if that can be rememedied through improved code), don't
filter on each keypress (which it seems to be doing). Instead, have it
wait for 500ms or so after each keypress to capture the next one before
filtering starts.



Chris.


[jQuery] Re: file selector/ directory browser

2007-09-14 Thread Benjamin Sterling
Check out
http://wanderinghorse.net/computing/javascript/jquery/bogofolders/demo-bogofolders.html,
not sure if it does exactly what you want.

Also, run that site through translate.google.com

http://translate.google.com/translate?u=http%3A%2F%2Fwww.sitespotting.it%2Fesempi%2F002%2F&langpair=it%7Cen&hl=en&ie=UTF8

On 9/14/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
>
>  hi all,
>
> i'm in desperate need of a folder browser/ file selection widget. I
> wondered if anyone found a nice one? Basically, i just need some widget that
> takes a directory  sitting on the server, display its content of images,
> user clicks on one, UI disappears and feeds the form input with the url of
> the selected image.
>
> anyone has seen anything in that area?
>
> I saw http://www.sitespotting.it/esempi/002/ which could be tweaked to do
> that, but it's all in italian...
>
>
> thanks mates,
>
> Alexandre
>
>
> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
> Lakensestraat/Rue de Laeken 104
> B-1000 Brussel-Bruxelles-Brussels
> Belgie-Belgique-Belgium
>
> Tel:+32(0)2.219.65.55
> Fax:+32(0)2.426.69.86
> Mobile:+32(0)476.23.21.42
> http://www.lab-au.com
> http://www.mediaruimte.be
>
> __
>
> The information in this e-mail is intended only for the addressee named
> above.  If you are not that addressee, please note that any disclosure,
> distribution or copying of this e-mail is prohibited.
> Because e-mail can be electronically altered, the integrity of this
> communication cannot be guaranteed.
>
> __
>
>
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date:
> 13/09/2007 21:48
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] file selector/ directory browser

2007-09-14 Thread Alexandre Plennevaux
hi all,
 
i'm in desperate need of a folder browser/ file selection widget. I wondered if 
anyone found a nice one? Basically, i just need some widget that takes a 
directory  sitting on the server, display its content of images, user clicks on 
one, UI disappears and feeds the form input with the url of the selected image.
 
anyone has seen anything in that area?
 
I saw HYPERLINK 
"http://www.sitespotting.it/esempi/002/"http://www.sitespotting.it/esempi/002/ 
which could be tweaked to do that, but it's all in italian...
 
 
thanks mates,
 
Alexandre
 

Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104
B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
HYPERLINK "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be

HYPERLINK 
"blocked::http://www.mediaruimte.be/"__

The information in this e-mail is intended only for the addressee named above.  
If you are not that addressee, please note that any disclosure, distribution or 
copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this 
communication cannot be guaranteed.

__

 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007 
21:48
 


[jQuery] Re: grabbing event.target & using it load - no longer works for me in 1.1.4+

2007-09-14 Thread Brandon Aaron
I think you want to get the event.target.href. You are passing the whole
element which is an A tag. Which its toString() method reports the href
value and is why the ""+event.target works.

var resultlink = event.target.href;

--
Brandon Aaron

On 9/14/07, skatta <[EMAIL PROTECTED]> wrote:
>
>
> yeah, was weird though ... it worked up to 1.1.3
>
> here is what it was - it was simply a click to a link, grabbing the
> target ...
>
> link like this - http://example.com/"; class="partInfo">link a>
>
> if ($(event.target).is('.partInfo')) {
> var resultlink = event.target;
> // then load it
> }
>
>
>
>
> On Sep 14, 10:31 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> > On Sep 14, 3:22 pm, skatta <[EMAIL PROTECTED]> wrote:
> >
> > > $(".dataWin").hide().load(resultlink);
> >
> > > this works ...
> >
> > > $(".dataWin").hide().load(""+resultlink+"");
> >
> > resultlink is aparently a non-String object of some type which is not
> > accepted by load(). Your second line (the one which works) is casting
> > it to a string. But you don't need both sets of quotes - one or the
> > other will do:
> >
> > $(".dataWin").hide().load(""+resultlink);
> >
> > Th
> at will also force it to be a string.
>
>


[jQuery] Re: Unselect text

2007-09-14 Thread Minh

One thing I've noticed is that this is only happening in IE 6 and not
FireFox.

On Sep 13, 11:00 am, Minh <[EMAIL PROTECTED]> wrote:
> I have the following script to auto select the text in a input field
> on focus.
> $("[EMAIL PROTECTED]'text']").focus(function(){
> if($(this).val().length > 0){
> this.select();
> }
>
> });
>
> On blur is there a way in can unselect the selected text?



[jQuery] jEditable - Name of class

2007-09-14 Thread Zerutreck

I want to catch the name of the classroom that is being edited at the
moment , So that my script php knows of which div is come the
information.

If div link 1 or div link 2 or div link3 that it was edited, I try
with the code, $('div').attr('class'), but he did not function


$(".link1, .link2, .link3, .link4").editable("http://localhost/somzoom/
index.php/admin/atualizaVideos/1/", {
id  : 'elementid',
name  : $('div').attr('class'),
submit: 'Modificar',
indicator : "",
tooltip   : 'Clique para editar...'
});

Link 1
Link 2
Link 3

[jQuery] Re: grabbing event.target & using it load - no longer works for me in 1.1.4+

2007-09-14 Thread skatta

yeah, was weird though ... it worked up to 1.1.3

here is what it was - it was simply a click to a link, grabbing the
target ...

link like this - http://example.com/"; class="partInfo">link

if ($(event.target).is('.partInfo')) {
var resultlink = event.target;
// then load it
}




On Sep 14, 10:31 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> On Sep 14, 3:22 pm, skatta <[EMAIL PROTECTED]> wrote:
>
> > $(".dataWin").hide().load(resultlink);
>
> > this works ...
>
> > $(".dataWin").hide().load(""+resultlink+"");
>
> resultlink is aparently a non-String object of some type which is not
> accepted by load(). Your second line (the one which works) is casting
> it to a string. But you don't need both sets of quotes - one or the
> other will do:
>
> $(".dataWin").hide().load(""+resultlink);
>
> Th
at will also force it to be a string.



[jQuery] Re: Auto populate form elements using jquery, ajax, and mySQL?

2007-09-14 Thread negotiator

quick update

I found a plugin called selectCombo which appears to do exactly what I
want.

http://code.google.com/p/jqueryselectcombo/

I am having one problem though. After I encode by MySQL response in
JSON format as required, nothing happens. It appears that I need to
reformat the JSON response from its current response of:

[{"regionState":"AZ","regionName":"Maricopa"},
{"regionState":"AZ","regionName":"Pinal County"}]

to what I think is required:

[{oV: 'myfirstvalue', oT: 'myfirsttext'}, {oV: 'mysecondvalue', oT:
'mysecondtext'}]

Is this possible? If so, how do I go about replacing or reformatting
the JSON response to include the oV and oT parameters?


On Sep 13, 10:00 pm, negotiator <[EMAIL PROTECTED]> wrote:
> Any way to autopopulate form elements using jquery and its ajax
> function from a MySQL database?
>
> Individually, I have gotten the form element to populate another
> element with a submit button using the JQuery Form Plugin.
>
> Also, I have gotten a form element to auto submit when a select option
> is selected and open a new page with the populated child element.
>
> However, I am not able to autosubmit an element and populate a second
> element from a mySQL database with jQuery and Ajax (no reload).
>
> Any suggestions or plugins?



[jQuery] bassistance validition plugin & the form plugin

2007-09-14 Thread skatta

Hi all, I'm stumped on this.

I use Ajax to load a form into the DOM. I use the FORM plugin to
handle the form and the Validation plugin to validate it.

If I load the form, fill out everything completely and click submit,
it works perfect.

However, if I type in bad data, click submit and trigger a validation
error, then fix the error and click submit, it posts the form 2 times.

If i make 2 errors (3 total clicks on submit) -  it submits it 3
times.
If I make 3 errors (4 total clicks) - it submits 4 times.

I'm stumped, anyone have any idea? Is it the way I deal with objects
added to the DOM via Ajax?

Here's my compete code. Any help is truly appreciated, my head hurts.

#1 - load in the form
#2 - validate and submit the form

$(document).ready(function() {

$('body').click(function(event) { // the way i'm dealing with items
added to the DOM via Ajax

// #1 - load up the form.

if ($(event.target).is('.partInfo')) {
$("#formContainer").load("form.php");
}

// code to submit the form

if ($(event.target).is('.sendCoMailButton')) { // my form button

var sendCoMail = {
target: '.result',
url: 'include/tab-message-sent.php',
type: 'post'
};

$("#sendCoMailForm").validate({
submitHandler: function(form)
{
$(form).ajaxSubmit(sendCoMail);
}
});

}

});
});



[jQuery] Re: treeview plugin - store option doesn't work to remember which items were clicked

2007-09-14 Thread Pedro Teixeira


can't make it work for me either - any hints are welcome.

On Sep 12, 8:19 pm, cfdvlpr <[EMAIL PROTECTED]> wrote:
> Here's what I've got got in the head section of my HTML:
>
> 
> $(function(){
> $("#pageNav").Treeview({speed: "fast", collapsed: true, store:
> true});
> });
> 
>
> The store option doesn't appear to work at all for me.
> I do have the cookie plugin included.
> I don't get any error messages in firebug.
> I do notice that no cookies are being stored.
> Has anyone got this to work?
> Any ideas?



[jQuery] Re: [NEWS] Firebug 1.1 Beta Released

2007-09-14 Thread Jörn Zaefferer


Joan Piedra schrieb:
I've learnt that there is always free time, it depends on how you 
spent it, or what priorities you give to spend it :)

What he says!

-- Jörn


[jQuery] Re: Auto populate form elements using jquery, ajax, and mySQL?

2007-09-14 Thread Jörn Zaefferer


negotiator schrieb:

Any suggestions or plugins?
  
A combination of form plugin (ajaxForm/Submit) and deserialize plugin 
(deserialize json into form) on the client side should do the trick, on 
the serverside you need a helper to render your objects into JSON.


Form plugin: http://malsup.com/jquery/form/
Deserialize plugin: http://www.reach1to1.com/sandbox/jquery/testform.html

See http://json.org/ for PHP JSON renderers.

-- Jörn




[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Rey Bango


Hi Stephan,

I think "underhanded" is a little harsh and I'm not sure John Resig, who 
is the one who put that up there, was attempting to do anything wrong.


Also, we're not trying to be "marketing people" as you so incorrectly 
described the folks on this project. We're trying to provide the 
community with various options for using the jQuery library, especially 
in terms of performance and file size. That's why the link, which 
describes how to use gzipped files, was added next to the download.


Considering how involved you are on the list and knowing how much effort 
everyone on the project puts into the jQuery, I'm a little disappointed 
that you would make such remarks.


Rey...
jQuery Project Team


This is correct. The webmaster/developers/whoever chose to be a bit
underhanded there and say it's 14k "with gzip", but fail to mention
that the user must arrange for the code to get gzipped. Shame on them.
They've metamorphed from programmers to marketing people.


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread seedy


I also had the same thing happen.
14kb is only after it has been gzipped by your server. 
The version you are downloading has been minified, Its up to you to do the
gzipping.


lukwe wrote:
> 
> 
> When I go to the GoogleCode page for the minified version it idsplays a 46
> kb file to download; 
> seems like the file had been deflated again by the server (?!?).
> 
> Is anyone else experiencing this ??!?
> 
> 
> ciao
> 

-- 
View this message in context: 
http://www.nabble.com/Downloading-1.2-minified%2C-getting-46kb-instead-of-14kb---%21--tf4442334s15494.html#a12676468
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Prev and Next problem

2007-09-14 Thread debussy007


Hello,

I have a problem to make this plugin running correctly for my web site.

I have been trying for 2 days now, and I'm hopeless, that's why I am looking
for a kind soul here who can eventually help me!

Here is a demo I made :
http://matthew16.free.fr/jcarousel/jcarousel.html

These are my settings :
scroll: 1,
auto:7,
visible:7,
animation: 'slow',
wrap:'last'

But as you can see in the demo, it is scrolling 1 picture only the first
time, then it is scrolling two pictures, then it is scrolling more pictures.
Also if you try to go to the previous image after it scrolled two times, it
is not going to the previous image but is going forward.

I think I must change something here :
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite
loops. */
width: 94px;
height: 180px;
}

I tried but I have no correct results.

Please! It is my dream to have this running now (yes I am so desperate:)) ! 

Any help ??

Thank you !!
-- 
View this message in context: 
http://www.nabble.com/Prev-and-Next-problem-tf4442898.html#a12676474
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Re: Text manipulation on a menu

2007-09-14 Thread Karl Swedberg


Hi there,

The .hover() method takes two arguments -- one for mouseover and one  
for mouseout. They are separated by a comma:


  .hover(function() {
// Stuff to do when the mouse enters the element;
  }, function() {
// Stuff to do when the mouse leaves the element;
  });

Yours has only one argument -- for mouseover. That's why you're  
getting the error.




--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 13, 2007, at 6:24 PM, dogslife wrote:




Just to update, the following works (with errors though) by adding  
an arrow,

but how do I keep it from adding the arrow on level3? Also the code
generates this error:
error
---
g has no properties
handleHover(Object type=mouseout target=a currentTarget=a
eventPhase=2)jquery.js (line 11)
e(Object type=mouseout target=a currentTarget=a eventPhase=2) 
jquery.js (line

11)
e()jquery.js (line 11)
[Break on this error]
eval(function(p,a,c,k,e,r){e=function(c){return(ca)))+((c=c%a...

---

jQuery
-
   $("ul.nav li a").hover(function() {
// on nav menu where class=showarrow, add an arrow
$("span").remove(".showarrow");
$(this).append(" 〉");
   });

html


 # Level 1


 # Level 2

 # Level 3 







dogslife wrote:



I'm using a vertical menu and trying to add a text arrow ">" to the
menu item if it's on level 1 or 2, but not level 3. The following  
code

works, but it just keeps appending after each hover event. What's the
best way to do this kind of manipulation?

Thanks.

jQuery
---
$("ul.nav li a").hover(function() {
$(this).append(" 〉");
});

HTML


 # Level 1


 # Level 2

 # Level 3 










--
View this message in context: http://www.nabble.com/Text- 
manipulation-on-a-menu-tf4434957s15494.html#a12664957

Sent from the JQuery mailing list archive at Nabble.com.







[jQuery] Re: New book: "jQuery in Action"

2007-09-14 Thread Rey Bango


Congrats to Bear & Yehuda!!! I just purchased the MEAP+eBook+Print versions.

Rey...



Fred Janon wrote:

Just got an email annoucing the early access to the book:
 
jQuery in Action 


EARLY ACCESS /
/Bear Bibeault and Yehuda Katz
MEAP Release: September 2007
Softbound print: December 2007 | 300 pages
ISBN: 1933988355
 
http://www.manning.com/bibeault/
 
The first chapter is free http://www.manning.com/bibeault/
 
Any feedback would be appreciated!
 
Thanks
 
Fred
 


[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Stephan Beal

On Sep 14, 4:30 pm, seedy <[EMAIL PROTECTED]> wrote:
> I also had the same thing happen.
> 14kb is only after it has been gzipped by your server.
> The version you are downloading has been minified, Its up to you to do the
> gzipping.

This is correct. The webmaster/developers/whoever chose to be a bit
underhanded there and say it's 14k "with gzip", but fail to mention
that the user must arrange for the code to get gzipped. Shame on them.
They've metamorphed from programmers to marketing people.

You cannot simply gzip the file and serve it as-is - that won't work
(at least, not on most browsers). You need to arrange for your web
server to feed the data compressed. There are a number of ways to do
this, but (IMO) none of them are suitable for beginners (and all of
them require either configuration changes on your web server or coding
in a second language, like PHP).

Follow the "gzipped" link from jquery.com and you'll find an article
which covers one way to accomplish this with PHP. Alternately, search
this forum, going back about 1 month, to find some discussions on it.
The approach proposed at the link mentioned above is sub-optimal
because it requires writing a file to your web server, which won't
work under all hosted accounts (for reasons described in my comments
posted at that site).



[jQuery] Re: grabbing event.target & using it load - no longer works for me in 1.1.4+

2007-09-14 Thread Stephan Beal

On Sep 14, 3:22 pm, skatta <[EMAIL PROTECTED]> wrote:
> $(".dataWin").hide().load(resultlink);
>
> this works ...
>
> $(".dataWin").hide().load(""+resultlink+"");

resultlink is aparently a non-String object of some type which is not
accepted by load(). Your second line (the one which works) is casting
it to a string. But you don't need both sets of quotes - one or the
other will do:

$(".dataWin").hide().load(""+resultlink);

That will also force it to be a string.



[jQuery] Re: Text manipulation on a menu

2007-09-14 Thread Richard D. Worth
Use filter() for getting only the first 2 levels. Then add the arrow once
and use hover to show() and hide(). Something like this:

$("ul.nav li a")
  .filter(function() {
return !!($(this).parents('ul').slice(0,2).filter('.nav').length);
  })
  .append(' 〉')
  .hover(function() {
$('.arrow', this).show();
  }, function() {
$('.arrow', this).hide();
  });

- Richard

On 9/13/07, dogslife <[EMAIL PROTECTED]> wrote:
>
>
>
> Just to update, the following works (with errors though) by adding an
> arrow,
> but how do I keep it from adding the arrow on level3? Also the code
> generates this error:
> error
> ---
> g has no properties
> handleHover(Object type=mouseout target=a currentTarget=a
> eventPhase=2)jquery.js (line 11)
> e(Object type=mouseout target=a currentTarget=a eventPhase=2)jquery.js
> (line
> 11)
> e()jquery.js (line 11)
> [Break on this error]
>
> eval(function(p,a,c,k,e,r){e=function(c){return(c ---
>
> jQuery
> -
>$("ul.nav li a").hover(function() {
> // on nav menu where class=showarrow, add an arrow
> $("span").remove(".showarrow");
> $(this).append(" 〉");
>});
>
> html
> 
> 
>  # Level 1
> 
> 
>  # Level 2
> 
>  # Level 3 
> 
> 
> 
> 
> 
>
>
> dogslife wrote:
> >
> >
> > I'm using a vertical menu and trying to add a text arrow ">" to the
> > menu item if it's on level 1 or 2, but not level 3. The following code
> > works, but it just keeps appending after each hover event. What's the
> > best way to do this kind of manipulation?
> >
> > Thanks.
> >
> > jQuery
> > ---
> > $("ul.nav li a").hover(function() {
> > $(this).append(" 〉");
> > });
> >
> > HTML
> > 
> > 
> >  # Level 1
> > 
> > 
> >  # Level 2
> > 
> >  # Level 3 
> > 
> > 
> > 
> > 
> > 
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Text-manipulation-on-a-menu-tf4434957s15494.html#a12664957
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


  1   2   >