[jQuery] Re: Superfish mouseover problem in Opera

2007-06-14 Thread Joel Birch


Hi Jaysun,

I tried to use your code to work out your problem but there were many  
issues that made it too difficult to help you. Please could you  
create a test page and provide us with a url to look at? Also, try  
and rip out all of the Dreamweaver javascript as rolfsf said and use  
CSS for rollover effects, plus, put alt text in the images within the  
Superfish links. Without the alt text, when images are disabled or  
unavailable (as they were when I used your code) the menu completely  
disappears as there is nothing in the links to show.


Another thing to consider is that the HTML is not valid XHTML  
Transitional as the doctype claims. This could make cross-browser  
consistency tricky and could also affect how scripts run in the  
document. If you can, run the page through the w3c validator and fix  
the errors.


Once I deleted all the inline scripts and inserted text into the  
empty menu links, the menu did work, but due to the layout's reliance  
on images, we will need you to create a working url for us to look at  
so we can give you useful advice.


Joel Birch.


[jQuery] Re: jquery + validation + ajaxForm + tabs - almost working... (interesting problem!)

2007-06-14 Thread Klaus Hartl


slakoz wrote:

Dear All,

First of all the links to sample pages. First working sample:
http://www.torli.pl/valid/index-val.php

and (if someone want use this mix):
http://www.torli.pl/valid/valid.zip

Description (how i want it to work):
1. there are two tabs: tab #1 is enabled, tab #2 id disabled.
2. there are separate forms in two tabs
3. when the user fill the value in Field 1 in tab #1 and push Submit
button, tab #2 become enabled and triggered
4. if user leave empty Field 1 or for some reason validation of form1
in Tab #1 will be unsuccessfull then the warning message will show up,
form submit fails and tab #2 remain disabled

What is wrong:
the validation is working, because the message for Field1 validation
is displaying, but i can't figure out why the form is submited and
tab#2 enabled and triggered, when validation for Form1 in Tab1 is
unsuccessfull.

Thanks for any help or suggestions.
Best regards
Sławek



You need to validate the form in the beforeSubmit handler of the 
ajaxForm method, see here:


http://www.malsup.com/jquery/form/#code-samples (then choose tab 
"Validation")


Your example looks like:


$('form#dane_zam').ajaxForm({
beforeSubmit: function {
return $("#dane_zam").validate({
...
});
},
target: '#result_dane_zam',
success: function() {
...
}
});

I'm not entirely sure about the validate initialization, especially if 
you need the submitHandler, because that is taken care of by the 
ajaxForm method depending on what is returned by validation. But I'm not 
too firm with the validate form plugin.


One more thing: You're putting the tabs init inside $(function() { }). 
You can remove this as you're already in a $(document).ready block.


$(function() {

});

is a shortcut for

$(document).ready(function() {

});

Thus instead of

$(function() {
$('#container-1').tabs({ fxSlide: true, fxFade: true, fxSpeed: 
'fast', disabled: [2, 3, 4, 5, 6] });

});

just use

$('#container-1').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'fast', 
disabled: [2, 3, 4, 5, 6] });


in your code.


--Klaus






[jQuery] Re: Superfish mouseover problem in Opera

2007-06-14 Thread rolfsf


Jaysun,

If you've got a working url that we could go to, it might make it a little
easier.
You might want to strip out the dreamweaver rollover script that's attached
to the menu - it's creating at least one javascript error, and you don't
really need it if you're using Superfish and css... that's what hover is
for. 

Rolf






Jaysun wrote:
> 
> 
> Hi. I'm a designer that isn't very experienced in coding etc, so
> please bear with me.
> 
> I'm having in an issue with the superfish menu. In fact several
> problems. The main issue is that in Opera (the latest version 9.21)
> the menu's that drop down don't work when I mouse over them. i.e.
> their colour doesn't change to that which I have specified in the css.
> In this case from white to red. It works great in IE though.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Superfish-mouseover-problem-in-Opera-tf3925117s15494.html#a11132160
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread bsuttis

Awesome, it works! Thanks Sean, much appreciated.

On Jun 14, 6:19 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote:
> Try this:
> $('li.hide-comm-single').click(function(){
> $(this).parents('.comment')
> .children().not('ul').hide();
> return false;
>
> });
>
> ~Sean



[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Brandon Aaron

$(document).ready is the original and is what happens behind the scenes ...
the shortcut is because we don't like typing. :)

--
Brandon Aaron

On 6/14/07, Charlie Concepcion <[EMAIL PROTECTED]> wrote:



Thanks Rafael... Thanks Everyone!

It works great, man I'm loving this simple jQuery syntax.

One more question though... why use the shorcut version vs.
document.ready?

I mean if this is the case why'd they even make document.ready?

On Jun 14, 5:10 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> $(function(){ //shortcut for $(document).ready(){fn}
>   $("#nav > li").hover(function(){
>$(this).addClass("over");
>   }),function(){
>$(this).removeClass("over");
>   })
>
> });
>
> 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
>
>
>
>
> > Ok I am new to this so here's my old code:
>
> > $(document).ready(function(){
> > $("#nav > li").mouseover(function(){
> > $(this).addClass("over");})
> > .mouseout(function(){
> > $(this).removeClass("over");});
> > });
>
> > I need that in hover version. I'm assuming it's supposed to be much
> > shorter.
>
> > On Jun 14, 4:57 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> > > I think u can use both, hover and mouseover. jQuery uses javascript
to
> > treat
> > > it.
>
> > > 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
> > > > I'm new to jQuery and I have to say I love it! I hate javascript
but
> > > > now I like it cuz of query.  Anyways enough of that :)
>
> > > > I'm a CSS developer also. I know that the :hover pseudo element
> > > > doesn't work in IE 6 so I always have to use javascript using
> > > > mouseover/mouseout events.
>
> > > > My question is, in jQuery is hover using the CSS or using acting
as a
> > > > backend mouseover event?
>
> > > > Final question... what should i use hover or mouseover... making
sure
> > > > it works on IE7, Firefox and IE6.
>
> > > > Thanks!
>
> > > --
> > > Rafael Santos Sá :: webdeveloperwww.rafael-santos.com
>
> --
> Rafael Santos Sá :: webdeveloperwww.rafael-santos.com




[jQuery] Re: Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread Karl Swedberg

Hi there,

Here is the simple answer: make use of the "this" keyword.

Here is an example:

$('li.hide-comm-single').click(function() {
  $(this).parents('div.comment').find('div.content').hide();
  return false;
});

I'm assuming that, as your markup shows, the only other child of  
div.comment will be div.content.


You don't really need the  tags in there if you're attaching the  
click handler to the  anyway.


If you're a fan of XPath, you could do it this way, too:

$('li.hide-comm-single').click(function() {
$('../../div.content', this).hide();
  return false;
});


Hope that helps.


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



On Jun 14, 2007, at 8:36 PM, bsuttis wrote:



Sorry for the vague subject, I rewrote it a few times and it still
doesn't make much sense, hopefully what I say below does.

I'm trying to implement jQuery into my comments to enable users to
show/hide them as they read them.

My problem occurs that using my current jQuery code, every comment div
gets closed when clicking on one, while I would like it to only close
the div the user clicks on. The comment itself is wrapped in a  while the Show/Hide links are within a  in
the  (explaining the not('ul') part of my code).

My comment div looks something like this:


  ShowHide
  comment here


And my jQuery code:

$('li.hide-comm-single').click(function(){
$('.comment').children().not('ul').hide();
return false;
});

With the current code, each comment on my page is hidden (so for
example, if the page has 3 comments, and I only mean to click the
first comment, but clicking it closes the other 2 comments as well).

My question, is it possible to write the code so that 1  at a time is closed instead of every one? Is there
something I'm missing that allows just a unique .comment to be closed
without having to use something silly like css ids.





[jQuery] Re: Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread Sean Catchpole

Try this:
$('li.hide-comm-single').click(function(){
   $(this).parents('.comment')
   .children().not('ul').hide();
   return false;
});


~Sean


[jQuery] Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread bsuttis

Sorry for the vague subject, I rewrote it a few times and it still
doesn't make much sense, hopefully what I say below does.

I'm trying to implement jQuery into my comments to enable users to
show/hide them as they read them.

My problem occurs that using my current jQuery code, every comment div
gets closed when clicking on one, while I would like it to only close
the div the user clicks on. The comment itself is wrapped in a  while the Show/Hide links are within a  in
the  (explaining the not('ul') part of my code).

My comment div looks something like this:


  ShowHide
  comment here


And my jQuery code:

$('li.hide-comm-single').click(function(){
$('.comment').children().not('ul').hide();
return false;
});

With the current code, each comment on my page is hidden (so for
example, if the page has 3 comments, and I only mean to click the
first comment, but clicking it closes the other 2 comments as well).

My question, is it possible to write the code so that 1  at a time is closed instead of every one? Is there
something I'm missing that allows just a unique .comment to be closed
without having to use something silly like css ids.



[jQuery] jquery + validation + ajaxForm + tabs - almost working... (interesting problem!)

2007-06-14 Thread slakoz

Dear All,

First of all the links to sample pages. First working sample:
http://www.torli.pl/valid/index-val.php

and (if someone want use this mix):
http://www.torli.pl/valid/valid.zip

Description (how i want it to work):
1. there are two tabs: tab #1 is enabled, tab #2 id disabled.
2. there are separate forms in two tabs
3. when the user fill the value in Field 1 in tab #1 and push Submit
button, tab #2 become enabled and triggered
4. if user leave empty Field 1 or for some reason validation of form1
in Tab #1 will be unsuccessfull then the warning message will show up,
form submit fails and tab #2 remain disabled

What is wrong:
the validation is working, because the message for Field1 validation
is displaying, but i can't figure out why the form is submited and
tab#2 enabled and triggered, when validation for Form1 in Tab1 is
unsuccessfull.

Thanks for any help or suggestions.
Best regards
Sławek



[jQuery] Superfish mouseover problem in Opera

2007-06-14 Thread Jaysun

Hi. I'm a designer that isn't very experienced in coding etc, so
please bear with me.

I'm having in an issue with the superfish menu. In fact several
problems. The main issue is that in Opera (the latest version 9.21)
the menu's that drop down don't work when I mouse over them. i.e.
their colour doesn't change to that which I have specified in the css.
In this case from white to red. It works great in IE though.

Secondly, in IE there is a small gap between the menu and the table
cell below it. i.e the image in the cell below should be touching the
menu but there is a 2 or 3 pixel gap. It shows up perfectly in Opera
though.

And lastly in IE I see errors have been generated. If someone could
take a look at this and figure out what the problem is I would be
greatly appreciative. This is after all the 1st drop down menu I've
actually ever had to construct and I've spent hours trying to get this
right now. Below is the html doc and the css.

HTML:


http://www.w3.org/1999/xhtml";>


Daniel Silke - Independent Political Analyst & Keynote
Speaker







$(document).ready(function(){
$(".nav")
.superfish({
animation : { opacity:"show",height:"show"}
})
.find(">li[ul]")
.mouseover(function(){
$("ul", this).bgIframe({opacity:false});
})
.find("a")
.focus(function(){
$("ul", 
$(".nav>li[ul]")).bgIframe({opacity:false});
});
});







  

  

 
  

  
  
   Critical Issues Facing SA in the
Future 
   The Next SA President –
Scenario Options for the Future 
   South Africa’s Parliament and
Political Parties 
   This is the New South Africa 
   Wake UP South Africa –
Chindia is Coming!


 

   Tracking the Future – The Top
10 Trends that will Transform the Globe
   Global Change 2020: Tips, Trends
& Predictions for the Future
   Globalization: The Good, the Bad
and the Ugly
   The US and the World: The Lone
Super-Power or a Super-Power Alone?


 

   Life’s a Cruise! Living the
Life of Luxury on a Cruise Ship


  
  
  
  
  

  
  


  
  


  
Daniel Silke is  one of South Africa's leading
Independent  Political Analysts and Keynote Speakers. As a renowned
Futurist and commentator,  his insightful, entertaining and predictive
presentations on topical issues are  in great demand. His seminars
cover South African, African and Global political  and economic
issues.
 Silke holds a  Masters Degree in
South African and International Politics and has served, in a  senior
capacity, both as a Member of the Provincial Parliament and as a City
Councillor in Cape Town. He regularly appears in print, on the
internet and on  radio both in South Africa and abroad. His articles
and comments on topical issues are widely published and respected. He
is in demand, as a keynote speaker  across the globe and may be
commissioned for presentations and print articles  on South African
and Global issues.

  click to read more / hide

  
 Silke focuses on  the study
of the effects of Globalization on the world and travels widely
addressing international audiences. Global change is occurring at a
rapid rate.  Looking into the future and identifying the key trends
that will affect  societies is now a major part of all his
presentations. For business,  determining these trends is critical in
maintaining a competitive edge. His  International Keynotes are
therefore slick, surprising and stimulating.
   For South  African audiences,
the transition to the next stage in our democratic evolution
continues. Understanding the trends and pitfalls remains an essential
aspect of  growing and thriving in the new era. Facing up to the
critical political,  social and economic issues that will shape the
future of the country is a key  aspect of any keynote speech.
Silke also specialises in
presentations for  large corporations, conventions and educational
institutions. He is also a  regular participant at Universities and
Think-Tanks globally and is contracted  as an enrichment lecturer on
cruise ships world-

[jQuery] Superfish mouseover problem in Opera

2007-06-14 Thread Jaysun

Hi. I'm a designer that isn't very experienced in coding etc, so
please bear with me.

I'm having in an issue with the superfish menu. In fact several
problems. The main issue is that in Opera (the latest version 9.21)
the menu's that drop down don't work when I mouse over them. i.e.
their colour doesn't change to that which I have specified in the css.
In this case from white to red. It works great in IE though.

Secondly, in IE there is a small gap between the menu and the table
cell below it. i.e the image in the cell below should be touching the
menu but there is a 2 or 3 pixel gap. It shows up perfectly in Opera
though.

And lastly in IE I see errors have been generated. If someone could
take a look at this and figure out what the problem is I would be
greatly appreciative. This is after all the 1st drop down menu I've
actually ever had to construct and I've spent hours trying to get this
right now. Below is the html doc and the css.

HTML:


http://www.w3.org/1999/xhtml";>


Daniel Silke - Independent Political Analyst & Keynote
Speaker







$(document).ready(function(){
$(".nav")
.superfish({
animation : { opacity:"show",height:"show"}
})
.find(">li[ul]")
.mouseover(function(){
$("ul", this).bgIframe({opacity:false});
})
.find("a")
.focus(function(){
$("ul", 
$(".nav>li[ul]")).bgIframe({opacity:false});
});
});







  

  

 
  

  
  
   Critical Issues Facing SA in the
Future 
   The Next SA President –
Scenario Options for the Future 
   South Africa’s Parliament and
Political Parties 
   This is the New South Africa 
   Wake UP South Africa –
Chindia is Coming!


 

   Tracking the Future – The Top
10 Trends that will Transform the Globe
   Global Change 2020: Tips, Trends
& Predictions for the Future
   Globalization: The Good, the Bad
and the Ugly
   The US and the World: The Lone
Super-Power or a Super-Power Alone?


 

   Life’s a Cruise! Living the
Life of Luxury on a Cruise Ship


  
  
  
  
  

  
  


  
  


  
Daniel Silke is  one of South Africa's leading
Independent  Political Analysts and Keynote Speakers. As a renowned
Futurist and commentator,  his insightful, entertaining and predictive
presentations on topical issues are  in great demand. His seminars
cover South African, African and Global political  and economic
issues.
 Silke holds a  Masters Degree in
South African and International Politics and has served, in a  senior
capacity, both as a Member of the Provincial Parliament and as a City
Councillor in Cape Town. He regularly appears in print, on the
internet and on  radio both in South Africa and abroad. His articles
and comments on topical issues are widely published and respected. He
is in demand, as a keynote speaker  across the globe and may be
commissioned for presentations and print articles  on South African
and Global issues.

  click to read more / hide

  
 Silke focuses on  the study
of the effects of Globalization on the world and travels widely
addressing international audiences. Global change is occurring at a
rapid rate.  Looking into the future and identifying the key trends
that will affect  societies is now a major part of all his
presentations. For business,  determining these trends is critical in
maintaining a competitive edge. His  International Keynotes are
therefore slick, surprising and stimulating.
   For South  African audiences,
the transition to the next stage in our democratic evolution
continues. Understanding the trends and pitfalls remains an essential
aspect of  growing and thriving in the new era. Facing up to the
critical political,  social and economic issues that will shape the
future of the country is a key  aspect of any keynote speech.
Silke also specialises in
presentations for  large corporations, conventions and educational
institutions. He is also a  regular participant at Universities and
Think-Tanks globally and is contracted  as an enrichment lecturer on
cruise ships world-

[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Charlie Concepcion

Thanks Rafael... Thanks Everyone!

It works great, man I'm loving this simple jQuery syntax.

One more question though... why use the shorcut version vs.
document.ready?

I mean if this is the case why'd they even make document.ready?

On Jun 14, 5:10 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> $(function(){ //shortcut for $(document).ready(){fn}
>   $("#nav > li").hover(function(){
>$(this).addClass("over");
>   }),function(){
>$(this).removeClass("over");
>   })
>
> });
>
> 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
>
>
>
>
> > Ok I am new to this so here's my old code:
>
> > $(document).ready(function(){
> > $("#nav > li").mouseover(function(){
> > $(this).addClass("over");})
> > .mouseout(function(){
> > $(this).removeClass("over");});
> > });
>
> > I need that in hover version. I'm assuming it's supposed to be much
> > shorter.
>
> > On Jun 14, 4:57 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> > > I think u can use both, hover and mouseover. jQuery uses javascript to
> > treat
> > > it.
>
> > > 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
> > > > I'm new to jQuery and I have to say I love it! I hate javascript but
> > > > now I like it cuz of query.  Anyways enough of that :)
>
> > > > I'm a CSS developer also. I know that the :hover pseudo element
> > > > doesn't work in IE 6 so I always have to use javascript using
> > > > mouseover/mouseout events.
>
> > > > My question is, in jQuery is hover using the CSS or using acting as a
> > > > backend mouseover event?
>
> > > > Final question... what should i use hover or mouseover... making sure
> > > > it works on IE7, Firefox and IE6.
>
> > > > Thanks!
>
> > > --
> > > Rafael Santos Sá :: webdeveloperwww.rafael-santos.com
>
> --
> Rafael Santos Sá :: webdeveloperwww.rafael-santos.com



[jQuery] Re: jquery form plugin - double action (fadein) problem

2007-06-14 Thread slakoz

Thanks! This one works too.
regards,
sławek



[jQuery] Re: Update Broadband Stats

2007-06-14 Thread Benjamin Sterling

Good find Rey.


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


[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Karl Swedberg

Hi Charlie,

Sorry I'm late to this thread. If you want more info on this, you can  
check out this entry I posted a while back:


http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for- 
anything



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



On Jun 14, 2007, at 5:02 PM, Charlie Concepcion wrote:



Ok I am new to this so here's my old code:

$(document).ready(function(){
$("#nav > li").mouseover(function(){
$(this).addClass("over");})
.mouseout(function(){
$(this).removeClass("over");});
});

I need that in hover version. I'm assuming it's supposed to be much
shorter.

On Jun 14, 4:57 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
I think u can use both, hover and mouseover. jQuery uses  
javascript to treat

it.

2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:






I'm new to jQuery and I have to say I love it! I hate javascript but
now I like it cuz of query.  Anyways enough of that :)



I'm a CSS developer also. I know that the :hover pseudo element
doesn't work in IE 6 so I always have to use javascript using
mouseover/mouseout events.


My question is, in jQuery is hover using the CSS or using acting  
as a

backend mouseover event?


Final question... what should i use hover or mouseover... making  
sure

it works on IE7, Firefox and IE6.



Thanks!


--
Rafael Santos Sá :: webdeveloperwww.rafael-santos.com






[jQuery] Update Broadband Stats

2007-06-14 Thread Rey Bango


Some interesting stats for all of those that think that every US 
household has broadband and is building their sites accordingly:


"According to research done by the consultancy firm Point Topic, the US 
has fallen to 24th place in terms of broadband penetration, with only 
53% of households connected. South Korea led the pack, with 90% of 
households having highspeed connections. The US remains the largest 
broadband country in the world with more than 60.4 million subscribers 
in the quarter with 2.9 million new broadband additions, but China is 
fast catching up and has cut the gap to the US from 5.8 million at the 
end of 2006 to 4.1 million at end of March 2007. The firm's research 
also pointed out the disparity between the connectivity of first world 
nations and other places throughout the world. 'Many Sub-Saharan African 
states do not register in the figures at all: only South Africa, Sudan, 
Senegal and Gabon make it onto the list, with household broadband 
penetration running from 1.79% in South Africa - with 215,000 users at 
the end of March - to just 0.05% in Sudan - with a mere 3,000. North 
African states fare slightly better with Morocco scoring 6.78% 
penetration with 418,000 users and Egypt at 1.55% or 240,000.'"


I guess the other 57% of US households are not your targets. ;)

Just something to think about when folks wonder why we want to keep 
jQuery nice and lean.


http://business.guardian.co.uk/story/0,,2102304,00.html

Rey...


[jQuery] Selector Wildcards

2007-06-14 Thread Karl Swedberg

Hi John,

I'm re-posting your question because it looks like you may have  
inadvertently replied to the "encodeURIComponent localized for custom  
encoding" thread instead of posting it as a new thread.


It's easy for these things to get lost if you don't start a new topic  
rather than replying to an old one.


Unfortunately, I don't know the answer to your question off the top  
of my head. I can do what you're asking about with an attribute's  
value, but not with the attribute's name. Maybe someone else can  
help, though.



Is there any way  to do selector wildcards.

I am trying to create some tag attributes that say start with
sosform:required="true" and that is easy to find. My goal though is  
for
when doing "customized finds". Because my goal is to put the  
customized

code into the custom attribute it will serve as a markup way of doing
event setup. That part seems easy enough at this time... but I have  
not
yet figured out the wildcard to pull back all sosForm prefixed  
attributes.


Thanks,

John Farrar




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





[jQuery] AW: [jQuery] Re: different name and id issue?

2007-06-14 Thread Roger Ineichen

Hi Klaus

> Betreff: [jQuery] Re: different name and id issue?
[...]

> This is a known IE bug. Id and the name attribute share the 
> same namespace in IE giving you the (unexpected) result 
> you're talking of (getElementById gives you the first 
> occurence of an element with the given id or name). I wonder 
> what the developers were thinking...
> 
> jQuery has fixed this by the way when using an id selector.

I didn't except anything else ;-)
 
[...]
> > id="form-widgets-lastname" name="form.widgets.lastname""
> > 
> > Is this acceptable or is there any reason using another naming 
> > convention for element ids and names?
> 
> I haven't seen periods in name attributes yet, but they are 
> allowed per HTML spec. Another option would be to use the underscore:
> 
> id="form-widgets-lastname" name="form_widgets_lastname"
> 
> What is more important is to avoid that a name attribute 
> matches an id, which both variants do provide.

That's good to know.

Thanks a lot Klaus

Regards
Roger Ineichen
_
END OF MESSAGE



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-14 Thread Jörn Zaefferer


Jörn Zaefferer wrote:
Modifying the build to add the header to minified files shouldn't be 
too difficult.

Done.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: different name and id issue?

2007-06-14 Thread Klaus Hartl


Roger Ineichen wrote:

Hi all

We at the Zope3 dev mailinglist have a question to
you genious JQuery developers. We run into a IE 6&7 issue
related to DOM element id and name.

The following two onclick handler return both
Bar as value in IE 6 and 7. Does anybody know why?


test

  


  
  bar
(ok)
  foo
(problem on IE 6 & 7)




This is a known IE bug. Id and the name attribute share the same 
namespace in IE giving you the (unexpected) result you're talking of 
(getElementById gives you the first occurence of an element with the 
given id or name). I wonder what the developers were thinking...


jQuery has fixed this by the way when using an id selector.



What rule whould you recommend for generate
id and name attributes for a framework which 
generates input fields, buttons etc.


In the new form framework we are developing right now,
do we generate element id and name values like:

id="form-widgets-lastname" name="form.widgets.lastname""

Is this acceptable or is there any reason using another 
naming convention for element ids and names?


I haven't seen periods in name attributes yet, but they are allowed per 
HTML spec. Another option would be to use the underscore:


id="form-widgets-lastname" name="form_widgets_lastname"

What is more important is to avoid that a name attribute matches an id, 
which both variants do provide.



-Klaus



[jQuery] different name and id issue?

2007-06-14 Thread Roger Ineichen

Hi all

We at the Zope3 dev mailinglist have a question to
you genious JQuery developers. We run into a IE 6&7 issue
related to DOM element id and name.

The following two onclick handler return both
Bar as value in IE 6 and 7. Does anybody know why?


test

  


  
  bar
(ok)
  foo
(problem on IE 6 & 7)



What rule whould you recommend for generate
id and name attributes for a framework which 
generates input fields, buttons etc.

In the new form framework we are developing right now,
do we generate element id and name values like:

id="form-widgets-lastname" name="form.widgets.lastname""

Is this acceptable or is there any reason using another 
naming convention for element ids and names?

Thanks for any hint.

Regards
Roger Ineichen
___
Zope3-dev mailing list
[EMAIL PROTECTED]



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Andy Matthews
I think that, for any plugin which achieves official status, the jQuery team
should have a say in it's development. 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Glen Lipka
Sent: Thursday, June 14, 2007 4:38 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: CNN and Apple Choose Prototype. Why?


Some Plugin site examples:
https://addons.mozilla.org/en-US/firefox/  (If only we knew someone who
works there)
http://codex.wordpress.org/Plugins   
http://www.eclipseplugincentral.com/
http://themes.wordpress.net/

One thing that I notice reading the thread, is this feeling that the jQuery
core team should administer official plugins.  Although I definitely see the
value in this, I also think the "wisdom of crowds" can be leveraged.  Seeing
stats about Who uses a plugin, how they rate it, how many downloads etc. 
It makes the community more self-serving, rather than command-control.

Think Netflix model or Amazon model.

I do think think this discussion is critical.  The difference between wide
adoption and boutique adoption have alot to do with these decisions. 

Glen






On 6/14/07, Jake McGraw <[EMAIL PROTECTED]> wrote: 


I won't argue that there are some great plugins out there, I just
think if the dev team has to figure out where their finite amount of
time should be spent, I say keep it centered on core development and
not in implementing a "plugins repo", although if anyone outside of
dev would like to take the task, I'm certainly not against the idea.

I say most, not all, plugins are superfluous because they, in my 
experience, often add features which are already accessible using
jQuery core or some native JavaScript feature. The prime example, in
my mind, of this is any plugin which has some kind of Ajax feature,
which I think jQuery handles beautifully on its own. 

So, once again, not to offend anyone, I think plugins are great,
personally I've used datepicker, jqModal and Interface extensively, I
just don't think they warrant dev time away from core.

- jake 

On 6/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> I don't get why Prototype is "fluffy"?  It seems harder for me to do
> anything in prototype. 
>  I actually feel like its the opposite.  jQuery is friendlier to designers
> and Prototype is geared to hard core types.
>
>  And on subject of Plugins...
> I don't know how "Tabs" is superfluous.  I use interface once in a blue 
> moon.  I use tabs almost every time.
> For forms, Validation is almost REQUIRED (pun).
>  The history plugin has no alternative.
>
> I just dont get the superfluous thing.
>
>  Its really interesting to me how these libraries are perceived so 
> differently by people with different needs.
>
>  Glen
>
> On 6/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:
> >
> > Great to hear AJ. Who was the company so we can add it to the list? 
> >
> > Rey
> >
> > AJ wrote:
> > >> Prototype is nice and fluffy, for 'designers' who use macs, and
> > >> dreamweaver and sit around all day in design meetings coming up with 
> > >> 'great design ideas', drinking skinny lattes
> > >>
> > >> JQuery is hardcore, for geeks who use linux and Eclipse, who come up
> > >> with actual useful sites, rather than just showcases to please 
> > >> managment and drink coffee with an extra shot caffine.
> > >
> > > I think that's a pretty broad generalization. I use jQuery exclusively
> > > and am also a pretty zealous Mac user. I'm also a designer and an 
> > > Eclipse user :)
> > >
> > > Either way, I'm really appreciative of all the really interesting
> > > comments so far. I'm glad I wasn't missing something in the Prototype 
> > > vs jQuery debate.
> > >
> > > To that point, I just recently finished an application I thought I'd
> > > share. It's basically an image annotation tool that allows the client 
> > > to add large jpgs, zoom and pan them. They also can add markers to the
> > > image as annotations and move *those* around, and all the markers and
> > > comments are all updated via ajax. This was for a $200 billion company

> > > and was all done with jQuery, Interface and PHP.
> > >
> > >
> >
> > --
> > BrightLight Development, LLC.
> > 954-775- (o)
> > 954-600-2726 (c) 
> > [EMAIL PROTECTED]
> > http://www.iambright.com
> >
>
>





[jQuery] jQuery appearing now in books

2007-06-14 Thread Shelane

Go to Amazon and do a search in the book category for jQuery and you
will see excerpts that specifically mention jQuery.  Very cool.



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Glen Lipka

Some Plugin site examples:
https://addons.mozilla.org/en-US/firefox/  (If only we knew someone who
works there)
http://codex.wordpress.org/Plugins
http://www.eclipseplugincentral.com/
http://themes.wordpress.net/

One thing that I notice reading the thread, is this feeling that the jQuery
core team should administer official plugins.  Although I definitely see the
value in this, I also think the "wisdom of crowds" can be leveraged.  Seeing
stats about Who uses a plugin, how they rate it, how many downloads etc.
It makes the community more self-serving, rather than command-control.

Think Netflix model or Amazon model.

I do think think this discussion is critical.  The difference between wide
adoption and boutique adoption have alot to do with these decisions.

Glen





On 6/14/07, Jake McGraw <[EMAIL PROTECTED]> wrote:



I won't argue that there are some great plugins out there, I just
think if the dev team has to figure out where their finite amount of
time should be spent, I say keep it centered on core development and
not in implementing a "plugins repo", although if anyone outside of
dev would like to take the task, I'm certainly not against the idea.

I say most, not all, plugins are superfluous because they, in my
experience, often add features which are already accessible using
jQuery core or some native JavaScript feature. The prime example, in
my mind, of this is any plugin which has some kind of Ajax feature,
which I think jQuery handles beautifully on its own.

So, once again, not to offend anyone, I think plugins are great,
personally I've used datepicker, jqModal and Interface extensively, I
just don't think they warrant dev time away from core.

- jake

On 6/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> I don't get why Prototype is "fluffy"?  It seems harder for me to do
> anything in prototype.
>  I actually feel like its the opposite.  jQuery is friendlier to
designers
> and Prototype is geared to hard core types.
>
>  And on subject of Plugins...
> I don't know how "Tabs" is superfluous.  I use interface once in a blue
> moon.  I use tabs almost every time.
> For forms, Validation is almost REQUIRED (pun).
>  The history plugin has no alternative.
>
> I just dont get the superfluous thing.
>
>  Its really interesting to me how these libraries are perceived so
> differently by people with different needs.
>
>  Glen
>
> On 6/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:
> >
> > Great to hear AJ. Who was the company so we can add it to the list?
> >
> > Rey
> >
> > AJ wrote:
> > >> Prototype is nice and fluffy, for 'designers' who use macs, and
> > >> dreamweaver and sit around all day in design meetings coming up
with
> > >> 'great design ideas', drinking skinny lattes
> > >>
> > >> JQuery is hardcore, for geeks who use linux and Eclipse, who come
up
> > >> with actual useful sites, rather than just showcases to please
> > >> managment and drink coffee with an extra shot caffine.
> > >
> > > I think that's a pretty broad generalization. I use jQuery
exclusively
> > > and am also a pretty zealous Mac user. I'm also a designer and an
> > > Eclipse user :)
> > >
> > > Either way, I'm really appreciative of all the really interesting
> > > comments so far. I'm glad I wasn't missing something in the
Prototype
> > > vs jQuery debate.
> > >
> > > To that point, I just recently finished an application I thought I'd
> > > share. It's basically an image annotation tool that allows the
client
> > > to add large jpgs, zoom and pan them. They also can add markers to
the
> > > image as annotations and move *those* around, and all the markers
and
> > > comments are all updated via ajax. This was for a $200 billion
company
> > > and was all done with jQuery, Interface and PHP.
> > >
> > >
> >
> > --
> > BrightLight Development, LLC.
> > 954-775- (o)
> > 954-600-2726 (c)
> > [EMAIL PROTECTED]
> > http://www.iambright.com
> >
>
>



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Jake McGraw


I won't argue that there are some great plugins out there, I just
think if the dev team has to figure out where their finite amount of
time should be spent, I say keep it centered on core development and
not in implementing a "plugins repo", although if anyone outside of
dev would like to take the task, I'm certainly not against the idea.

I say most, not all, plugins are superfluous because they, in my
experience, often add features which are already accessible using
jQuery core or some native JavaScript feature. The prime example, in
my mind, of this is any plugin which has some kind of Ajax feature,
which I think jQuery handles beautifully on its own.

So, once again, not to offend anyone, I think plugins are great,
personally I've used datepicker, jqModal and Interface extensively, I
just don't think they warrant dev time away from core.

- jake

On 6/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:

I don't get why Prototype is "fluffy"?  It seems harder for me to do
anything in prototype.
 I actually feel like its the opposite.  jQuery is friendlier to designers
and Prototype is geared to hard core types.

 And on subject of Plugins...
I don't know how "Tabs" is superfluous.  I use interface once in a blue
moon.  I use tabs almost every time.
For forms, Validation is almost REQUIRED (pun).
 The history plugin has no alternative.

I just dont get the superfluous thing.

 Its really interesting to me how these libraries are perceived so
differently by people with different needs.

 Glen

On 6/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
> Great to hear AJ. Who was the company so we can add it to the list?
>
> Rey
>
> AJ wrote:
> >> Prototype is nice and fluffy, for 'designers' who use macs, and
> >> dreamweaver and sit around all day in design meetings coming up with
> >> 'great design ideas', drinking skinny lattes
> >>
> >> JQuery is hardcore, for geeks who use linux and Eclipse, who come up
> >> with actual useful sites, rather than just showcases to please
> >> managment and drink coffee with an extra shot caffine.
> >
> > I think that's a pretty broad generalization. I use jQuery exclusively
> > and am also a pretty zealous Mac user. I'm also a designer and an
> > Eclipse user :)
> >
> > Either way, I'm really appreciative of all the really interesting
> > comments so far. I'm glad I wasn't missing something in the Prototype
> > vs jQuery debate.
> >
> > To that point, I just recently finished an application I thought I'd
> > share. It's basically an image annotation tool that allows the client
> > to add large jpgs, zoom and pan them. They also can add markers to the
> > image as annotations and move *those* around, and all the markers and
> > comments are all updated via ajax. This was for a $200 billion company
> > and was all done with jQuery, Interface and PHP.
> >
> >
>
> --
> BrightLight Development, LLC.
> 954-775- (o)
> 954-600-2726 (c)
> [EMAIL PROTECTED]
> http://www.iambright.com
>




[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Alexandre Plennevaux

Well, i'm no apple nor cnn, but let me say i've tried prototype and jquery
and i 've chosen jquery. 
With prototype, i couldn't ever figure how to write it correctly, and when i
did find, i was WTF-ing at the code, like, "wow, javascript is complicated"
. With jquery, i just try things, and, guess what, it works. Never seen such
a short documentation that's so useful.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: jeudi 14 juin 2007 20:36
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: CNN and Apple Choose Prototype. Why?


> Most jQuery plugins, big exception for Interface, are superfluous IMO.
>
> If people took the time to really look into everything you can do with 
> jQuery + JavaScript's native features, they'd see how incredibly easy 
> it is to come up with a home grown solution that does specifically 
> what they need while taking up the least amount of space.

I have to respectfully disagree.  I've gotten great usage out of jEditable
and tableSorter, and I haven't tried Jorn's validation plugin, but folks
seem to love it.

Even if you are dynamite at JS (which I'm not) you can save a lot of time
leveraging these plugins.

I don't use chaining a whole lot, but that's only because I prefer a more
"vertical" style of code rather than "horizontal".  I think it's a great
feature to have available.

-- Josh 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.472 / Base de données virus: 269.8.15/848 - Date: 13/06/2007
12:50
 



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Alexandre Plennevaux

I feel Matt Kruse is putting the finger on the right spots, but i would not
change the whole roadmap: a properly structured, thought-out plugin
repository, and probably monitored by members of the jquery team could be
just as good a solution.

I personally really like the core/plugins structure. But in the end, i tend
to use always the same, so i guess it is possible to determine which are the
most useful ones, and, likely, the ones that newcomers will look after:

- thickbox / jqModal
- interface
- validation form
- table sorting
- clueTip

I have used, once or twice, much less often:

- jqUploader (this is not self promotion :) )
- input mask
- curvyCorners
- jscrollpane
- colorPicker
- tabs
- chili
- datePicker
- blockUI

Then, others should IMO really be part of the core:

- dimension
- browser
- hoverIntent
- metadata


This is just me, it may be interesting to organize a poll across the
community on the most used plugins...

I strongly believe in jquery and I would love to help make this plugin
repository happen. Let me know if you decide to build a team to implement
it.


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Priest, James (NIH/NIEHS) [C]
Sent: jeudi 14 juin 2007 18:58
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: CNN and Apple Choose Prototype. Why?


> -Original Message-
> From: Matt Kruse [mailto:[EMAIL PROTECTED]
 
> forward. It could end up similar to Perl, where there is a module to 
> do just about everything, and yet it's impossible for new users to 
> figure out which modules they should use (there might be 10 to do the 
> same task), what dependencies it has, etc.

As a fairly new user of jQuery - I do agree with this - the number of
choices available is almost overwhelming. Which to pick? Which is 'best'...
Which one works with what version of jQuery?

> specs. We would then have a set of standard, official plugins that do 
> the most common tasks. The features and functionality of these core

I like the idea of having 'official' or maybe 'approved' plugins...
Ideally one could go to jQuery.com and get everything vs. having to Google
and search for things...  My recent project used tabs, autocomplete,
Interface, and a few tablesort - all of which I had to dig for...  I also
had to note all those URLs, versions, etc. in my project docs because down
the road - who knows if those resources will still be around??

Jim

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.472 / Base de données virus: 269.8.15/848 - Date: 13/06/2007
12:50
 



[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Rafael Santos

$(function(){ //shortcut for $(document).ready(){fn}
 $("#nav > li").hover(function(){
  $(this).addClass("over");
 }),function(){
  $(this).removeClass("over");
 })
});


2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:



Ok I am new to this so here's my old code:

$(document).ready(function(){
$("#nav > li").mouseover(function(){
$(this).addClass("over");})
.mouseout(function(){
$(this).removeClass("over");});
});

I need that in hover version. I'm assuming it's supposed to be much
shorter.

On Jun 14, 4:57 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> I think u can use both, hover and mouseover. jQuery uses javascript to
treat
> it.
>
> 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
>
>
>
>
> > I'm new to jQuery and I have to say I love it! I hate javascript but
> > now I like it cuz of query.  Anyways enough of that :)
>
> > I'm a CSS developer also. I know that the :hover pseudo element
> > doesn't work in IE 6 so I always have to use javascript using
> > mouseover/mouseout events.
>
> > My question is, in jQuery is hover using the CSS or using acting as a
> > backend mouseover event?
>
> > Final question... what should i use hover or mouseover... making sure
> > it works on IE7, Firefox and IE6.
>
> > Thanks!
>
> --
> Rafael Santos Sá :: webdeveloperwww.rafael-santos.com





--
Rafael Santos Sá :: webdeveloper
www.rafael-santos.com


[jQuery] Re: Bound function on appended image

2007-06-14 Thread Scott Sauyet


Gareth Hughes wrote:

 http://docs.jquery.com/Tutorials:AJAX_and_Events
Many thanks Scott, that's done the trick. I've had to double up on my 
functions (once inside the document.ready and once outside) but that must be 
the way my code is structured.


Did you read the tutorial all the way through?  By the end the examples 
either have a single function which is called inside the document.ready 
and outside it (by using a context) or have just a single chunk of code 
which handles even the dynamically added DOM objects (by using event 
bubbling.)  I think either of these techniques would allow you to avoid 
this duplication.


Good luck,

  -- Scott



[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Charlie Concepcion

Ok I am new to this so here's my old code:

$(document).ready(function(){
$("#nav > li").mouseover(function(){
$(this).addClass("over");})
.mouseout(function(){
$(this).removeClass("over");});
});

I need that in hover version. I'm assuming it's supposed to be much
shorter.

On Jun 14, 4:57 pm, "Rafael Santos" <[EMAIL PROTECTED]> wrote:
> I think u can use both, hover and mouseover. jQuery uses javascript to treat
> it.
>
> 2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:
>
>
>
>
>
> > I'm new to jQuery and I have to say I love it! I hate javascript but
> > now I like it cuz of query.  Anyways enough of that :)
>
> > I'm a CSS developer also. I know that the :hover pseudo element
> > doesn't work in IE 6 so I always have to use javascript using
> > mouseover/mouseout events.
>
> > My question is, in jQuery is hover using the CSS or using acting as a
> > backend mouseover event?
>
> > Final question... what should i use hover or mouseover... making sure
> > it works on IE7, Firefox and IE6.
>
> > Thanks!
>
> --
> Rafael Santos Sá :: webdeveloperwww.rafael-santos.com



[jQuery] jquery vertical tabs?

2007-06-14 Thread Jack Killpatrick


Hi All,

I need to create vertical tabs for a UI. I've done some poking around 
and based on comments here it looks like there's a way to do it:


http://stilbuero.de/2006/05/13/accessible-unobtrusive-javascript-tabs-with-jquery/

"OK, so I’ve got a vertical set of tabs up and running and the 
individual divs are displaying nicely..."


Is it doable without modding the plugin source? If so, does anyone have 
an example I could take a look at? If it's not doable, does anyone know 
of a jquery plugin that will do it? I did some looking, but no luck.


Thx much!
- Jack


[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread spinnach


charlie,

(un)fortunately you'll have to do a bit of jquery magic, and i'd suggest 
using the hover method, where you define two functions, one for when 
mouse on, on for mouse off, like so:


$('div').hover(function(){
  //do your mouseover magic, eg:
  $(this).addClass('hover');
}, function() {
  //mouseoff magic
  $(this).removeClass('hover');
});

and all methods in jquery work in all browsers..

dennis.

Charlie Concepcion wrote:

I'm new to jQuery and I have to say I love it! I hate javascript but
now I like it cuz of query.  Anyways enough of that :)

I'm a CSS developer also. I know that the :hover pseudo element
doesn't work in IE 6 so I always have to use javascript using
mouseover/mouseout events.

My question is, in jQuery is hover using the CSS or using acting as a
backend mouseover event?

Final question... what should i use hover or mouseover... making sure
it works on IE7, Firefox and IE6.

Thanks!






[jQuery] Re: autocomplete advice

2007-06-14 Thread Robert O'Rourke


Jörn Zaefferer wrote:


Robert O'Rourke wrote:
   The main difference was changing the .click event on $input to 
give the input focus and then added an else statement to it:

[...]
Sounds great. Let me know about your progress, I'd like to port your 
changes back into the plugin.




Ok, It's coming along quite well. It'll take me a little while to 
properly highlight my changes to the autocomplete plugin and I have some 
work to do on the combobox plugin to generalise it more and make into an 
independent addon to the autocompleter. It's coming together slowly:


http://www.sanchothefat.com/dev/jsdemos/combo-box.html


[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Rafael Santos

I think u can use both, hover and mouseover. jQuery uses javascript to treat
it.

2007/6/14, Charlie Concepcion <[EMAIL PROTECTED]>:



I'm new to jQuery and I have to say I love it! I hate javascript but
now I like it cuz of query.  Anyways enough of that :)

I'm a CSS developer also. I know that the :hover pseudo element
doesn't work in IE 6 so I always have to use javascript using
mouseover/mouseout events.

My question is, in jQuery is hover using the CSS or using acting as a
backend mouseover event?

Final question... what should i use hover or mouseover... making sure
it works on IE7, Firefox and IE6.

Thanks!





--
Rafael Santos Sá :: webdeveloper
www.rafael-santos.com


[jQuery] Re: mouseover/mouseout vs. hover

2007-06-14 Thread Jeffrey Kretz

The jQuery hover event is a javascript mouseover/mouseout event.

You would do:

$('element').hover(mouseOverEvent,mouseOutEvent);

One of the really nice things built into the hover event, is it deals with
parent/child elements cleanly.  If you have a TD that contains a P and an A
element, but the hover is assigned to the TD, hover will prevent the
mouseover/mouseout from firing when you stay inside the TD and move around
the child P and A elements.  This prevents a very annoying flickering.

I hope that made sense.  :-)

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charlie Concepcion
Sent: Thursday, June 14, 2007 1:35 PM
To: jQuery (English)
Subject: [jQuery] mouseover/mouseout vs. hover


I'm new to jQuery and I have to say I love it! I hate javascript but
now I like it cuz of query.  Anyways enough of that :)

I'm a CSS developer also. I know that the :hover pseudo element
doesn't work in IE 6 so I always have to use javascript using
mouseover/mouseout events.

My question is, in jQuery is hover using the CSS or using acting as a
backend mouseover event?

Final question... what should i use hover or mouseover... making sure
it works on IE7, Firefox and IE6.

Thanks!




[jQuery] Re: Can I select just one?

2007-06-14 Thread Christopher Jordan


Thanks everyone!

Chris

Jake McGraw wrote:


With some functions, its only the first item which is modified / used 
like:


$("a").attr("href");



Okay, everyone beat me to the punch, if you follow their directions, I
think you'll be set.

- jake

On 6/14/07, Chris Jordan <[EMAIL PROTECTED]> wrote:


Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris






--
http://www.cjordan.us



[jQuery] Re: @mike: blockUI fix

2007-06-14 Thread Mike Alsup


Done.

On 6/14/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:

On the topic of blockUI ... could you change the name of the file to match
the folder name: jquery.blockUI.js

This will allow  you to add a build task to the build.xml so you can quickly
provide a min, pack and/or zipped version.


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread AJ

On Jun 14, 4:09 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> Great to hear AJ. Who was the company so we can add it to the list?

Unfortunately this was done as a subcontractor and our NDA precludes
us from disclosing the client publicly.

However, we're so happy with the widget we'll be "unbranding" it so we
can show it on our portfolio site.

AJ



[jQuery] mouseover/mouseout vs. hover

2007-06-14 Thread Charlie Concepcion

I'm new to jQuery and I have to say I love it! I hate javascript but
now I like it cuz of query.  Anyways enough of that :)

I'm a CSS developer also. I know that the :hover pseudo element
doesn't work in IE 6 so I always have to use javascript using
mouseover/mouseout events.

My question is, in jQuery is hover using the CSS or using acting as a
backend mouseover event?

Final question... what should i use hover or mouseover... making sure
it works on IE7, Firefox and IE6.

Thanks!



[jQuery] mouseover/mouseout vs. hover

2007-06-14 Thread Charlie Concepcion

What should I use... I know in CSS :hover element is not supported.

is jQuery using the CSS hover element here?

I posted this same post earlier... but didn't see it live... trying
again..



[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Christopher Jordan


thanks guys. I get it now. I can't believe I didn't see that before! :o/

I appreciate it! :o)

Chris

spinnach wrote:


no header here also, it 404's..

dennis.

Christopher Jordan wrote:
Andy is the header not showing up correctly for you? It appears fine 
for me. I checked it in FF 2.0.0.4 and IE6. If it's not showing up 
for other folks properly, I'd like to know so I can correct it. Thanks!


Chris

Andy Matthews wrote:

Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. 
You're probably referencing "images/custom/BlogTitle.gif" everywhere 
in your code, even though the server has "subfolders" because of 
Ray's BlogCFC code.
 
Make sure to change your references to 
"/images/custom/BlogTitle.gif" and you'll be good.


 

*From:* jquery-en@googlegroups.com 
[mailto:[EMAIL PROTECTED] *On Behalf Of *Christopher Jordan

*Sent:* Thursday, June 14, 2007 2:45 PM
*To:* jQuery Mailing List
*Subject:* [jQuery] ANN: CFJS 1.1.6 Released

Just wanted to let any interested folks know that CFJS 1.1.6 has 
been released. As always, the latest version is available from the 
SVN repository on RIAForge.org. I've also blogged about the changes 
.


Cheers everyone!
Chris
--
http://www.cjordan.us


--
http://www.cjordan.us






--
http://www.cjordan.us



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Tane Piper


On 6/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote:

I don't get why Prototype is "fluffy"?  It seems harder for me to do
anything in prototype.
 I actually feel like its the opposite.  jQuery is friendlier to designers
and Prototype is geared to hard core types.



I just dont get the superfluous thing.


That is true - Prototype is harder. There are some great apps out
there that use Prototype, but it is also used in a lot of superfluous
ways, applications that just use it for the sake of using it,
especially in Rails apps.  jQuery tends to be used where it's actually
needed, I haven't seen an application yet that didn't really seem to
be used where it actually helps workflow and UI.


 And on subject of Plugins...
I don't know how "Tabs" is superfluous.  I use interface once in a blue
moon.  I use tabs almost every time.
For forms, Validation is almost REQUIRED (pun).
 The history plugin has no alternative.


This I agree with this.  A lot of the official plugins I consider a
core part of the jQuery toolbox.  If you don't need them, the great
thing is your not forced to use them - but they are there to help
developers create an excellent UI and workflow experience.

--
Tane Piper
http://digitalspaghetti.tooum.net

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread spinnach


no header here also, it 404's..

dennis.

Christopher Jordan wrote:
Andy is the header not showing up correctly for you? It appears fine for 
me. I checked it in FF 2.0.0.4 and IE6. If it's not showing up for other 
folks properly, I'd like to know so I can correct it. Thanks!


Chris

Andy Matthews wrote:

Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. 
You're probably referencing "images/custom/BlogTitle.gif" everywhere 
in your code, even though the server has "subfolders" because of Ray's 
BlogCFC code.
 
Make sure to change your references to "/images/custom/BlogTitle.gif" 
and you'll be good.



*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Christopher Jordan

*Sent:* Thursday, June 14, 2007 2:45 PM
*To:* jQuery Mailing List
*Subject:* [jQuery] ANN: CFJS 1.1.6 Released

Just wanted to let any interested folks know that CFJS 1.1.6 has been 
released. As always, the latest version is available from the SVN 
repository on RIAForge.org. I've also blogged about the changes 
.


Cheers everyone!
Chris
--
http://www.cjordan.us


--
http://www.cjordan.us





[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Olaf Bosch


Christopher Jordan schrieb:

I just checked and I'm using the relative path:
 


You have mod_rewrite then you are deeper
The best is you used the absolute path

http://cjordan.us/images/custom/BlogTitle.gif

For that is my english good enough ;)

--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---


[jQuery] Re: Can I select just one?

2007-06-14 Thread Jake McGraw


With some functions, its only the first item which is modified / used like:

$("a").attr("href");



Okay, everyone beat me to the punch, if you follow their directions, I
think you'll be set.

- jake

On 6/14/07, Chris Jordan <[EMAIL PROTECTED]> wrote:


Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris




[jQuery] Re: Can I select just one?

2007-06-14 Thread Josh Nathanson


Do you mean like $("td:first") for example?

-- Josh

- Original Message - 
From: "Chris Jordan" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Thursday, June 14, 2007 1:18 PM
Subject: [jQuery] Can I select just one?




Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Glen Lipka

I don't get why Prototype is "fluffy"?  It seems harder for me to do
anything in prototype.
I actually feel like its the opposite.  jQuery is friendlier to designers
and Prototype is geared to hard core types.

And on subject of Plugins...
I don't know how "Tabs" is superfluous.  I use interface once in a blue
moon.  I use tabs almost every time.
For forms, Validation is almost REQUIRED (pun).
The history plugin has no alternative.

I just dont get the superfluous thing.

Its really interesting to me how these libraries are perceived so
differently by people with different needs.

Glen

On 6/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:



Great to hear AJ. Who was the company so we can add it to the list?

Rey

AJ wrote:
>> Prototype is nice and fluffy, for 'designers' who use macs, and
>> dreamweaver and sit around all day in design meetings coming up with
>> 'great design ideas', drinking skinny lattes
>>
>> JQuery is hardcore, for geeks who use linux and Eclipse, who come up
>> with actual useful sites, rather than just showcases to please
>> managment and drink coffee with an extra shot caffine.
>
> I think that's a pretty broad generalization. I use jQuery exclusively
> and am also a pretty zealous Mac user. I'm also a designer and an
> Eclipse user :)
>
> Either way, I'm really appreciative of all the really interesting
> comments so far. I'm glad I wasn't missing something in the Prototype
> vs jQuery debate.
>
> To that point, I just recently finished an application I thought I'd
> share. It's basically an image annotation tool that allows the client
> to add large jpgs, zoom and pan them. They also can add markers to the
> image as annotations and move *those* around, and all the markers and
> comments are all updated via ajax. This was for a $200 billion company
> and was all done with jQuery, Interface and PHP.
>
>

--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com



[jQuery] Re: Can I select just one?

2007-06-14 Thread Andy Matthews

I believe that it's:

$('.shiny:first') 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Jordan
Sent: Thursday, June 14, 2007 3:18 PM
To: jQuery (English)
Subject: [jQuery] Can I select just one?


Hi folks,

I've not really had a need to do this before, but is it possible to tell
jQuery that when doing a selection I just want the first one found?

I know that I can reference the zeroth element in the array of matches. As
it happens, right now I've got a need to just get the first occurance of x,
and instead of returning all of them, I'd like to just return the first one.

Any thoughts?

Chris




[jQuery] Re: Can I select just one?

2007-06-14 Thread Klaus Hartl


Chris Jordan wrote:

Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris


Chris, just do:

$('div:eq(0)')

same as


$('div').eq(0)


--Klaus


[jQuery] Re: Can I select just one?

2007-06-14 Thread sozzi

You mean like: $("p:first")?

have a look at the possible selectors at:
http://docs.jquery.com/DOM/Traversing/Selectors

Regards




[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Andy Matthews

You have a link for that? Sounds awesome! 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of AJ
Sent: Thursday, June 14, 2007 2:28 PM
To: jQuery (English)
Subject: [jQuery] Re: CNN and Apple Choose Prototype. Why?


> Prototype is nice and fluffy, for 'designers' who use macs, and 
> dreamweaver and sit around all day in design meetings coming up with 
> 'great design ideas', drinking skinny lattes
>
> JQuery is hardcore, for geeks who use linux and Eclipse, who come up 
> with actual useful sites, rather than just showcases to please 
> managment and drink coffee with an extra shot caffine.

I think that's a pretty broad generalization. I use jQuery exclusively and
am also a pretty zealous Mac user. I'm also a designer and an Eclipse user
:)

Either way, I'm really appreciative of all the really interesting comments
so far. I'm glad I wasn't missing something in the Prototype vs jQuery
debate.

To that point, I just recently finished an application I thought I'd share.
It's basically an image annotation tool that allows the client to add large
jpgs, zoom and pan them. They also can add markers to the image as
annotations and move *those* around, and all the markers and comments are
all updated via ajax. This was for a $200 billion company and was all done
with jQuery, Interface and PHP.




[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Andy Matthews
Relative paths will be wrong if you're deeplinked into a specific post. I
went here:
http://cjordan.us/index.cfm/2007/6/14/CFJS-Ver-116-Released
 
and the header shows as broken. It's because you're too deep into the site.
This is where the site is looking for the image:
http://cjordan.us/index.cfm/2007/6/images/custom/BlogTitle.gif
 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Jordan
Sent: Thursday, June 14, 2007 3:02 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: ANN: CFJS 1.1.6 Released


I just checked and I'm using the relative path:





Andy Matthews wrote: 

Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. You're
probably referencing "images/custom/BlogTitle.gif" everywhere in your code,
even though the server has "subfolders" because of Ray's BlogCFC code.
 
Make sure to change your references to "/images/custom/BlogTitle.gif" and
you'll be good.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Jordan
Sent: Thursday, June 14, 2007 2:45 PM
To: jQuery Mailing List
Subject: [jQuery] ANN: CFJS 1.1.6 Released


Just wanted to let any interested folks know that CFJS 1.1.6 has been
released. As always, the latest version is available from the SVN repository
on RIAForge.org. I've also blogged about the changes
 .

Cheers everyone!
Chris

-- 

http://www.cjordan.us


-- 

http://www.cjordan.us


[jQuery] Can I select just one?

2007-06-14 Thread Chris Jordan

Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Rey Bango


Great to hear AJ. Who was the company so we can add it to the list?

Rey

AJ wrote:

Prototype is nice and fluffy, for 'designers' who use macs, and
dreamweaver and sit around all day in design meetings coming up with
'great design ideas', drinking skinny lattes

JQuery is hardcore, for geeks who use linux and Eclipse, who come up
with actual useful sites, rather than just showcases to please
managment and drink coffee with an extra shot caffine.


I think that's a pretty broad generalization. I use jQuery exclusively
and am also a pretty zealous Mac user. I'm also a designer and an
Eclipse user :)

Either way, I'm really appreciative of all the really interesting
comments so far. I'm glad I wasn't missing something in the Prototype
vs jQuery debate.

To that point, I just recently finished an application I thought I'd
share. It's basically an image annotation tool that allows the client
to add large jpgs, zoom and pan them. They also can add markers to the
image as annotations and move *those* around, and all the markers and
comments are all updated via ajax. This was for a $200 billion company
and was all done with jQuery, Interface and PHP.




--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Joao Pedrosa

Hi,

> Maybe the reason you have 4000 lines of javascript is that you're not using
> chaining.
>
> Why would you pick a library, then decide NOT to use one of it's biggest
> strengths?

First of all, I started developing my library when I started using the
ExtJS library.
The purpose was to create a Façade between my applications and the
ExtJS code.
A Façade pattern can be useful when interfacing with code that belongs
to somebody
else, as it allows for some standardization of the interface which can
come in handy
sooner or later, and in my case it was both. Sooner because I kept the
redundancy
down as I used some of the ExtJS code in different applications under
my control, and
later when I decided to move out of ExtJS, as my applications depended
only on this
Façade I had created. Thus, as long as I could find and/or create an
alternative to
some of the ExtJS controls, I could remove the dependency on ExtJS
with certain ease.

In the process of leaving ExtJS, I gave YUI a try, which made me
create some of other
abstractions as YUI didn't provide them, while ExtJS did. It was then
that I created a basic
"DOM Helper" and "Element" classes/methods, and when I finally decided
to give jQuery
a shot as I wasn't too happy with YUI, I already had much of the code
I needed in place. :-)

Of course, ExtJS is a rich library, and I only used some of its
components, like its data grid,
combobox, toolbar, dialog window...

When I came to jQuery, I finished implementing my own versions of such
controls, which
gave birth to my own widgets library, which comprises wrappers for
Button, TextField,
TextArea, Select, Image, Label, Dialog window, Packer (layout
management), support for
dragging and resizing of Packer, Data Grid, DataSet, and so on...

Also, I have a Web framework of my own which has helped me with
developing my
client-size JavaScript library.

I mean, if I could find value in adopting jQuery chaining, I certainly
would, but so far it has
not been needed. Much of my JavaScript and DOM is dynamically
generated, which has
allowed me to clean up some of my server-side code as well, and now
with Ajax I even
have some kind of "Ajax services" which I find handy. :-)

Cheers,
Joao



[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread GianCarlo Mingati

http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-multi.html

Hi, that's what happens if i put more than one 'instance' of
slideviewer into a page.
The 'load' trick worked but now i think that despite renato's
suggestion (if you look at the plugin the code is wrapped inside the
return this.each function) but the interface (the generated links to
move the images) is the problem now.
For the second gallery is correctly sized but it seems like the
interface for the second gallery is duplicated also into the first.
It's loop or something that i did not get.
i'm plain ignorant ... but i try ;-)
Any tip agin?
Thanks

GC

On Jun 14, 9:03 pm, Renato Formato <[EMAIL PROTECTED]> wrote:
> GianCarlo Mingati ha 
> scritto:>http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/i...
> > Hi all.
> > It works now, thank you very much, but why couldn't I put only one
> > istance per page?
> > Try yourself if you got the time. I'll work on that too.
>
> > Grazie!
>
> Ciao GianCarlo,
> I think you broke the jQuery chain.
>
> you should use
>
> return this.each(function() {
> ...here goes the plugin code
>
> });
>
> Take a look athttp://docs.jquery.com/Plugins/Authoring, where you can
> find very nice examples.
>
> Ciao
> Renato



[jQuery] Re: mouseout seems to occur while still in div

2007-06-14 Thread wswilson

Hmmm, no luck so far using the target condition but I found a
workaround using hover instead of mouseout:

$('div.a').hover(function() {},function() {
$(this).children('span.b').hide();
});



On Jun 13, 6:20 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> (untested) You need to do:
>
> $('div.a').mouseout(function(e) {
> if (e.target == this) {
> $(this).children('span.b').hide();
> }
>
> });
>
> Cheers,
> -js
>
> On 6/13/07, wswilson <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here is my code:
>
> > 
> > 
>
> > 
> > 
> > $(function() {
> >$('div.a span.b').hide();
> >$('div.a h1').mouseover(function() {$(this).next('span.b
> > ').show();});
> >$('div.a').mouseout(function() {$(this).children('span.b
> > ').hide();});
> > });
> > 
>
> > 
> >.a h1, span.b
> >{
> >display: inline;
> >}
> > 
> > 
>
> > 
> > 
> >text
> >text
> > 
> > 
> > 
>
> > I am expecting that span.b will only show when I mouseover the h1 and
> > then hide when I leave div.a. However, it hides as soon as I leave h1.
> > How is mouseout on div.a called when I still seem to be in div.a?
> > Thanks!



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread AJ

> Prototype is nice and fluffy, for 'designers' who use macs, and
> dreamweaver and sit around all day in design meetings coming up with
> 'great design ideas', drinking skinny lattes
>
> JQuery is hardcore, for geeks who use linux and Eclipse, who come up
> with actual useful sites, rather than just showcases to please
> managment and drink coffee with an extra shot caffine.

I think that's a pretty broad generalization. I use jQuery exclusively
and am also a pretty zealous Mac user. I'm also a designer and an
Eclipse user :)

Either way, I'm really appreciative of all the really interesting
comments so far. I'm glad I wasn't missing something in the Prototype
vs jQuery debate.

To that point, I just recently finished an application I thought I'd
share. It's basically an image annotation tool that allows the client
to add large jpgs, zoom and pan them. They also can add markers to the
image as annotations and move *those* around, and all the markers and
comments are all updated via ajax. This was for a $200 billion company
and was all done with jQuery, Interface and PHP.



[jQuery] Re: mouseout seems to occur while still in div

2007-06-14 Thread wswilson

Thanks for the help...I appreciate it.

On Jun 13, 6:20 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> (untested) You need to do:
>
> $('div.a').mouseout(function(e) {
> if (e.target == this) {
> $(this).children('span.b').hide();
> }
>
> });
>
> Cheers,
> -js
>
> On 6/13/07, wswilson <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here is my code:
>
> > 
> > 
>
> > 
> > 
> > $(function() {
> >$('div.a span.b').hide();
> >$('div.a h1').mouseover(function() {$(this).next('span.b
> > ').show();});
> >$('div.a').mouseout(function() {$(this).children('span.b
> > ').hide();});
> > });
> > 
>
> > 
> >.a h1, span.b
> >{
> >display: inline;
> >}
> > 
> > 
>
> > 
> > 
> >text
> >text
> > 
> > 
> > 
>
> > I am expecting that span.b will only show when I mouseover the h1 and
> > then hide when I leave div.a. However, it hides as soon as I leave h1.
> > How is mouseout on div.a called when I still seem to be in div.a?
> > Thanks!



[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Christopher Jordan

I just checked and I'm using the relative path:
  
   




Andy Matthews wrote:

Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. 
You're probably referencing "images/custom/BlogTitle.gif" everywhere 
in your code, even though the server has "subfolders" because of Ray's 
BlogCFC code.
 
Make sure to change your references to "/images/custom/BlogTitle.gif" 
and you'll be good.



*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Christopher Jordan

*Sent:* Thursday, June 14, 2007 2:45 PM
*To:* jQuery Mailing List
*Subject:* [jQuery] ANN: CFJS 1.1.6 Released

Just wanted to let any interested folks know that CFJS 1.1.6 has been 
released. As always, the latest version is available from the SVN 
repository on RIAForge.org. I've also blogged about the changes 
.


Cheers everyone!
Chris
--
http://www.cjordan.us


--
http://www.cjordan.us



[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Christopher Jordan
Andy is the header not showing up correctly for you? It appears fine for 
me. I checked it in FF 2.0.0.4 and IE6. If it's not showing up for other 
folks properly, I'd like to know so I can correct it. Thanks!


Chris

Andy Matthews wrote:

Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. 
You're probably referencing "images/custom/BlogTitle.gif" everywhere 
in your code, even though the server has "subfolders" because of Ray's 
BlogCFC code.
 
Make sure to change your references to "/images/custom/BlogTitle.gif" 
and you'll be good.



*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Christopher Jordan

*Sent:* Thursday, June 14, 2007 2:45 PM
*To:* jQuery Mailing List
*Subject:* [jQuery] ANN: CFJS 1.1.6 Released

Just wanted to let any interested folks know that CFJS 1.1.6 has been 
released. As always, the latest version is available from the SVN 
repository on RIAForge.org. I've also blogged about the changes 
.


Cheers everyone!
Chris
--
http://www.cjordan.us


--
http://www.cjordan.us



[jQuery] Re: ANN: CFJS 1.1.6 Released

2007-06-14 Thread Andy Matthews
Chris...
 
Your blog header image's path is wrong. Just wanted to let you know. You're
probably referencing "images/custom/BlogTitle.gif" everywhere in your code,
even though the server has "subfolders" because of Ray's BlogCFC code.
 
Make sure to change your references to "/images/custom/BlogTitle.gif" and
you'll be good.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Jordan
Sent: Thursday, June 14, 2007 2:45 PM
To: jQuery Mailing List
Subject: [jQuery] ANN: CFJS 1.1.6 Released


Just wanted to let any interested folks know that CFJS 1.1.6 has been
released. As always, the latest version is available from the SVN repository
on RIAForge.org. I've also blogged about
 the changes.

Cheers everyone!
Chris

-- 

http://www.cjordan.us


[jQuery] ANN: CFJS 1.1.6 Released

2007-06-14 Thread Christopher Jordan
Just wanted to let any interested folks know that CFJS 1.1.6 has been 
released. As always, the latest version is available from the SVN 
repository on RIAForge.org. I've also blogged about the changes 
.


Cheers everyone!
Chris

--
http://www.cjordan.us



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Josh Nathanson



Most jQuery plugins, big exception for Interface, are superfluous IMO.

If people took the time to really look into everything you can do with
jQuery + JavaScript's native features, they'd see how incredibly easy
it is to come up with a home grown solution that does specifically
what they need while taking up the least amount of space.


I have to respectfully disagree.  I've gotten great usage out of jEditable 
and tableSorter, and I haven't tried Jorn's validation plugin, but folks 
seem to love it.


Even if you are dynamite at JS (which I'm not) you can save a lot of time 
leveraging these plugins.


I don't use chaining a whole lot, but that's only because I prefer a more 
"vertical" style of code rather than "horizontal".  I think it's a great 
feature to have available.


-- Josh 



[jQuery] Re: using spin button in a scrolling parent

2007-06-14 Thread George

Very good orix, thanks for that. Always good to hear of people using
it.

It's been some time since I wrote the spinbutton plugin and it could
do with an update to deduce the positioning better.
Hopefully I'll find a moment to take a look at your code. Do you have
a url where I could see your fix working? (and to see the context in
which the problem occurred)

Kind regards,
George

George.jquery[at]softwareunity.com

On Jun 14, 3:42 pm, orix <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the spinButton plugin (http://www.softwareunity.com/sandbox/
> jqueryspinbtn/) on input elements which have a parent div with
> "overflow:auto". whenever this parent div has enough content so that
> the scroll bars show up and you scroll down to use a spinbButton, the
> plugin won't work properly - you can only use the up arrow.
>
> This is because the calculation of the mouse coordinates gets messed
> up with the parent's div scrollTop value. I made some changes to the
> plugin to solve this. It's very specific to this kind of situation,
> but I hope it'll help others with the same problem.
>
> My idea is to pass a reference of the parent element which will have
> some scroll and have the plugin take that into account.
>
> somewhere in this.spinCfg initialization add this line:
>
>  scroller: cfg && cfg.scroller ?
> document.getElementById(cfg.scroller) : null,
>
> in the mousemove function, after
>
> var x = e.pageX || e.x;
> var y = e.pageY || e.y;
>
> add
> // account for scroll amount of parent element
> if (this.spinCfg.scroller) y+= this.spinCfg.scroller.scrollTop;
>
> in your html file just add a reference to your element in the options
> array:
>
> var myOptions   = {min: 0,max: 100,step: 1,
> scroller:"myScroller"};
> $(".mySpin").SpinButton(myOptions);
>
> yes, I used "document.getElementById" instead of jquery... I couldn't
> get it to pass a reference of the object and work properly. maybe some
> of you can suggest something.
>
> Tested in Firefox2.0.0.4(win), IE6(win) and IE7(win)



[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Renato Formato


GianCarlo Mingati ha scritto:

http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
Hi all.
It works now, thank you very much, but why couldn't I put only one
istance per page?
Try yourself if you got the time. I'll work on that too.


Grazie!


Ciao GianCarlo,
I think you broke the jQuery chain.

you should use

return this.each(function() {
...here goes the plugin code
});


Take a look at http://docs.jquery.com/Plugins/Authoring, where you can 
find very nice examples.


Ciao
Renato


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Tane Piper


The way I see it, you can use Apple's current advertising campaign to
put it into context

Prototype vs jQuery

Prototype is nice and fluffy, for 'designers' who use macs, and
dreamweaver and sit around all day in design meetings coming up with
'great design ideas', drinking skinny lattes

JQuery is hardcore, for geeks who use linux and Eclipse, who come up
with actual useful sites, rather than just showcases to please
managment and drink coffee with an extra shot caffine.

P.s I don't mean to offend any mac users, but hey its 'your' company
that are taking the p*ss out of pc users.


On 6/14/07, AJ <[EMAIL PROTECTED]> wrote:


Two stories today from Ajaxian (Ajaxian.com) caught my eye and made me
curious:

CNN Beta Site:
http://ajaxian.com/archives/cnn-beta-site

Apple Revamps Its Website
http://ajaxian.com/archives/apple-revamps-its-website

In both cases, Apple and CNN have gone with Prototype and
Scriptaculous. I should say up front I'm a big fan of jQuery and
Interface, but I'm wondering why two big sites like this would adopt
Prototype when other high-profile sites like Technorati have adopted
jQuery.

Are there any standard arguments for Prototype that I don't know
about? Or is it simply a matter of preference and that's all? Just
curious.





--
Tane Piper
http://digitalspaghetti.tooum.net

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Re: Masked Input Plugin Beta 2a

2007-06-14 Thread Rafael Santos

Really good plugin... thanks man, ill be using in, and looking forward to
the 1.0 release.

2007/6/13, Sean Catchpole <[EMAIL PROTECTED]>:



> Please check it out at:
http://digitalbush.com/projects/masked-input-plugin/

I totally dig it Josh, keep up the great work.

~Sean





--
Rafael Santos Sá :: webdeveloper
www.rafael-santos.com


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Rey Bango


Joao,

Thanks for the feedback. I am going to ensure that the team reads your 
comments. What version of jQuery were you using when you had these 
issues? I know that the selector performance has been improved in v1.1.3 
and I know that Brandon has done a ton of work on dimensions. Can you 
setup a test bed for us to work with?



Too bad is that whenever I try to replace jQuery,
I always seem to fail at that, and end up returning to jQuery again.
I've tried YUI, Mootools, and I just tried Prototype for the first time.


Then stop trying! You know you love it and you can't get away from it. 
So just let it happen. It'll go easier on you.



BTW, I don't use the chaining of jQuery much. ;-)


Ha! Your loss! ;)

Rey...


[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread GianCarlo Mingati

http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
Hi all.
It works now, thank you very much, but why couldn't I put only one
istance per page?
Try yourself if you got the time. I'll work on that too.


Grazie!


GC

On Jun 14, 8:09 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > The image itself will also have a load event if your creating it
> > dynamically:
>
> > $('').appendTo(document.body).bind("load", 
> > function() { ... });
>
> > The caveat, though, is that I'm not sure when/if the event gets fired
> > if the image is cached.
>
>  From the Learning jQuery book draft (be sure to buy it once its out!):
>
> if ($enlargedCover[0].complete) {
>   animateEnlarge();} else {
>
>   $enlargedCover.load(animateEnlarge);
>
> }
>
> This is a rare instance in which the load event is more useful to us
> than jQuery's custom ready event. Since load is triggered on a document,
> image, or frame when all of its contents have fully loaded, we can
> observe the event to make sure that all of the image has been loaded
> into memory. Only then is the handler executed, and the animation performed.
>
> Internet Explorer and Firefox have different interpretations of what to
> do if the image is already in the browser cache. In this case, Firefox
> will immediately send the load event to JavaScript, but Internet
> Explorer will never send the event because no "load" actually occurred.
> To compensate for this, we can use the complete property of the image
> element. This property is set to true only if the image is fully loaded,
> so we test this value first and start the animation if the image is
> ready. If the image is not yet complete, then we wait for a load event
> to be triggered.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de



[jQuery] Selector wildcards

2007-06-14 Thread John Farrar

Is there any way  to do selector wildcards.

I am trying to create some tag attributes that say start with 
sosform:required="true" and that is easy to find. My goal though is for 
when doing "customized finds". Because my goal is to put the customized 
code into the custom attribute it will serve as a markup way of doing 
event setup. That part seems easy enough at this time... but I have not 
yet figured out the wildcard to pull back all sosForm prefixed attributes.

Thanks,

John Farrar


[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-14 Thread Ⓙⓐⓚⓔ

this patch is changes ajax, form uses ajax, so it should work! That's
what I hope we will know after you test!

On 6/14/07, oscar esp <[EMAIL PROTECTED]> wrote:



Another questionbefore to test it... I am using form prlugin to
send the info as far I undestand if I put this patch in jquery the
form plugion will mantain the new charset?

On 10 jun, 19:53, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> keep me posted!! You may also need :
>
> ajaxSetup({contentType: "application/x-www-form-urlencoded;
charset= charset you want to call it>"})
>
> On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Oscar,
>
> > you can play with the jQuery from my branch (not released, and just to
try
> > it... no guarantees!!)
>
> >http://jqueryjs.googlecode.com/svn/branches/jake-dev/dist/
>
> > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> > > oops! that's on the googlegroups site.
>
> > > On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
>
> > > > $.pair = function(f,v) {return escape(f) + "=" + escape(v)};
>
> > > > and all your 'get' parameters use the new encoding. If you care to
> > > > test... I'll save up a full version on the
>
> > > > escape is brain dead , as it won't work with the full range of
UTF...
> > > > but the classic hi-ascii chars seem to work.. I tested with a ö
(only)
>
> > > > On 6/10/07, oscar esp < [EMAIL PROTECTED]> wrote:
>
> > > > > You are the man :-P
>
> > > > > In order to use it. then I only need add the js ¿? or I need
to
> > > > > call a extra code!!!
>
> > > > > On 10 jun, 18:44, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED] > wrote:
> > > > > > Hey Oscar, You were the reason I wrote this patch!!! Plus I
had no
> > > > > beautiful
> > > > > > way to do non-utf encoding
>
> > > > > > A couple people came up with other solutions, but I like mine
> > > > > best, and it
> > > > > > shrinks the jQuery size a few bytes.
>
> > > > > > On 6/10/07, oscar esp <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi I have a problem realted with charsets as you know.
>
> > > > > > > Could I use this code in order to fix my problem?
>
> > > > > > > On 10 jun, 06:00, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED]> wrote:
> > > > > > > >http://dev.jquery.com/ticket/1289
>
> > > > > > > > On 6/9/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > Be sure to add this to trac.
>
> > > > > > > > > --
> > > > > > > > > Brandon Aaron
>
> > > > > > > > > On 6/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED] > wrote:
>
> > > > > > > > > > I also added to the patch renaming the parameter 'xml'
and
> > > > > sometimes
> > > > > > > 'r'
> > > > > > > > > > to 'xhr'. I think it makes it easier to read.
>
> > > > > > > > > >
http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > On 6/7/07, Mike Alsup < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > I like this patch. Jörn? Brandon? John? Anyone?
>
> > > > > > > > > > > > alternate encoding done cleanly...
>
> > > > > > >
http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > > > a small patch allows escape (or other) instead of
> > > > > > > encodeURIComponent
>
> > > > > > > > > > > > while localizing all calls to encodeURIComponent
> > > > > > > > > > > > this patch seems to make the packed size of jQuery
> > > > > even smaller.
>
> > > > > > > > > > > > $.pair is used in param (serialize) and can easily
be
> > > > > overriden.
>
> > > > > > > > > > > > as in
> > > > > > > > > > > > $.pair = function(f,v) {return escape(f) + "=" +
> > > > > escape(v)};
> > > > > > > > > > > > $.ajax({
> > > > > > > > > > > > url: "/test.cgi",
> > > > > > > > > > > > data: {foo:'Jörn'},
> > > > > > > > > > > > success: function(){ console.log(arguments)}
> > > > > > > > > > > > })
>
> > > > > > > > > > --
> > > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > > > > > > --
> > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > > > - Mostrar texto de la cita -
>
> > > > > > --
> > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > - Mostrar texto de la cita -
>
> > > > --
> > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > --
> > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > --
> > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Rey Bango


Hi Matt,

Great points. Just so you'll know, we're already working on creating a 
plugin package that will contain up-to-date plugins that handle most 
common tasks. These plugins will have been evaluated by the team for 
applicability, maintainability, compatibility with other plugins & 
performance.


Rey...

Matt Kruse wrote:

On Jun 14, 12:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:

   1. A plugin repository that is completely coordinated.  Like WordPress
   Themes or plugins.  It needs to have:
  ...


I still believe that the plugins approach being taken right now is
going to put jQuery in jeopardy as the library of choice going
forward. It could end up similar to Perl, where there is a module to
do just about everything, and yet it's impossible for new users to
figure out which modules they should use (there might be 10 to do the
same task), what dependencies it has, etc.

IMO, the core jQuery team needs to lay out a roadmap for official
plugins. The form plugin is great, but it's main focus is ajax.
Shouldn't there be a standard form plugin that just deals with form
inputs, etc? (I'm working on one for my own use).

The core team should lay out which plugins should be in the core set,
what they should each do, and then have people work on them to the
specs. We would then have a set of standard, official plugins that do
the most common tasks. The features and functionality of these core
plugins would not be up to a random developer who creates them, but
decided on by the core jQuery team. They need to be designed and
cohesive from the start, rather than simply selecting the best user-
created plugins that are submitted.

These plugins then need to be made quite prominent on the site so
everyone knows exactly what they should grab if they want to work with
form inputs, for example. No confusion, no need for multiple libs that
accomplish the same task, etc.

Without doing this, I really fear that jQuery will go down the road of
massive plugin confusion. Because of the self-imposed core filesize
restriction, the dependency on plugins will only increase. And since
most users will need to use plugins, the "look and feel/API" of jQuery
to them will in large part be that of the plugins they choose, which
leaves jQuery's fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse




--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread howa

I agree with you partly.

jquery should provide a little more on the architecture design stuffs,
such as organzie the plugin into namespace,
force need to follow some standards if they want to get approaved
(e.g. coding styles, unit testes)...etc

but don't forget jquery is so success becoz it is community driven, we
won't grow into somethings like yui or dojo, never...






On Jun 15, 1:45 am, Matt Kruse <[EMAIL PROTECTED]> wrote:
> On Jun 14, 12:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>
> >1. A plugin repository that is completely coordinated.  Like WordPress
> >Themes or plugins.  It needs to have:
> >   ...
>
> I still believe that the plugins approach being taken right now is
> going to put jQuery in jeopardy as the library of choice going
> forward. It could end up similar to Perl, where there is a module to
> do just about everything, and yet it's impossible for new users to
> figure out which modules they should use (there might be 10 to do the
> same task), what dependencies it has, etc.
>
> IMO, the core jQuery team needs to lay out a roadmap for official
> plugins. The form plugin is great, but it's main focus is ajax.
> Shouldn't there be a standard form plugin that just deals with form
> inputs, etc? (I'm working on one for my own use).
>
> The core team should lay out which plugins should be in the core set,
> what they should each do, and then have people work on them to the
> specs. We would then have a set of standard, official plugins that do
> the most common tasks. The features and functionality of these core
> plugins would not be up to a random developer who creates them, but
> decided on by the core jQuery team. They need to be designed and
> cohesive from the start, rather than simply selecting the best user-
> created plugins that are submitted.
>
> These plugins then need to be made quite prominent on the site so
> everyone knows exactly what they should grab if they want to work with
> form inputs, for example. No confusion, no need for multiple libs that
> accomplish the same task, etc.
>
> Without doing this, I really fear that jQuery will go down the road of
> massive plugin confusion. Because of the self-imposed core filesize
> restriction, the dependency on plugins will only increase. And since
> most users will need to use plugins, the "look and feel/API" of jQuery
> to them will in large part be that of the plugins they choose, which
> leaves jQuery's fate up to random developers creating random plugins.
> Not so good, IMO.
>
> Matt Kruse



[jQuery] Re: Bound function on appended image

2007-06-14 Thread Gareth Hughes

Many thanks Scott, that's done the trick. I've had to double up on my 
functions (once inside the document.ready and once outside) but that must be 
the way my code is structured.

Thanks again.

- Original Message - 
From: "Scott Sauyet" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 14, 2007 6:32 PM
Subject: [jQuery] Re: Bound function on appended image



Gareth Hughes wrote:
> Is there a way of writing the functions so they work on items that are
> appended to the page by jQuery? Another approach perhaps?

There's a good tutorial here:

 http://docs.jquery.com/Tutorials:AJAX_and_Events

Cheers,

   -- Scott




[jQuery] Re: [jQuery][de] German Support Forum? intrested?

2007-06-14 Thread Brian Cherne

I disagree.

My advice, cfreak, is to start a [EMAIL PROTECTED] on your own.
Perhaps moderate it yourself until it reaches a critical mass and then find
someone more interested in taking control. (maybe contact John or one of the
team members directly to make it "official")

I suspect that folks who are comfortable reading/writing English will
participate on the jQuery (English) group... but we shouldn't assume
everyone is comfortable with English, or force them to weed through our
posts looking for the one or two they can participate in.

I doubt we'll lose even 1% of the jquery-en audience and we'll gain a German
speaking community. I don't see a problem with having two (or more) lists.

It looks like jquery.de already redirects to jquery.com... perhaps this
would be a good time to translate key pages of jquery.com into German... or
at least have a splash page in German with a link to the German discussion
group and a link to jquery.com.

Brian.


On 6/13/07, Erik Beeson <[EMAIL PROTECTED] > wrote:


And there's always:

http://www.google.com/translate?u=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fjquery-en%2Fmsg%2Fca4314bba5481fa0&langpair=de%7Cen&hl=en&ie=UTF8


--Erik


On 6/13/07, Olaf Bosch < [EMAIL PROTECTED]> wrote:
>
>
> cfreak schrieb:
> > I would like to make a german Support forum for jQuery, because for
> > many german people it is much easier to talk in german about thier
> > problems, or understanding the answers.
> >
> >
> > So my Question is, who is intrested in a german support forum and who
> >  want's to help with the moderation of this forum?
>
> Ich frag mich schon ewig (auch laut auf der Liste hier) warum da nix zu
> machen ist.
>
> Fänds aber auch schade wenn sich was abspalten täte.
>
> Wie wäre es die Threads zumindest mit (wie oben) einem Sprachkürzel zu
> versehen, könnte jeder im Mailprogramm filtern. Wer kein deutsch kann
> schiebts gleich in Trash.
>
> Ich kann jedenfalls so einigermaßen engl. lesen, aber schreiben...
>
>
> --
> Viele Grüße, Olaf
>
> ---
> [EMAIL PROTECTED]
> http://olaf-bosch.de
> www.akitafreund.de
> ---
>




[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Karl Swedberg
absolutely agree. Matt, I very much appreciate that you articulated  
these areas that need improvement. I know that efforts have been  
underway for an improved plugin repository, but progress has been  
slower than expected. Hopefully we can redouble our efforts on that  
end and take into account the excellent points you made.



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



On Jun 14, 2007, at 2:10 PM, Mike Alsup wrote:



That's great insight, Matt.  Excellent post; thanks for sharing.

Mike


leaves jQuery's fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse




[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-14 Thread oscar esp

Another questionbefore to test it... I am using form prlugin to
send the info as far I undestand if I put this patch in jquery the
form plugion will mantain the new charset?

On 10 jun, 19:53, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> keep me posted!! You may also need :
>
> ajaxSetup({contentType: "application/x-www-form-urlencoded; charset= charset you want to call it>"})
>
> On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Oscar,
>
> > you can play with the jQuery from my branch (not released, and just to try
> > it... no guarantees!!)
>
> >http://jqueryjs.googlecode.com/svn/branches/jake-dev/dist/
>
> > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> > > oops! that's on the googlegroups site.
>
> > > On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
>
> > > > $.pair = function(f,v) {return escape(f) + "=" + escape(v)};
>
> > > > and all your 'get' parameters use the new encoding.  If you care to
> > > > test... I'll save up a full version on the
>
> > > > escape is brain dead , as it won't work with the full range of UTF...
> > > > but the classic hi-ascii chars seem to work.. I tested with a ö (only)
>
> > > > On 6/10/07, oscar esp < [EMAIL PROTECTED]> wrote:
>
> > > > > You are the man :-P
>
> > > > > In order to use it. then I only need add the js ¿? or I need to
> > > > > call a extra code!!!
>
> > > > > On 10 jun, 18:44, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED] > wrote:
> > > > > > Hey Oscar, You were the reason I wrote this patch!!! Plus I had no
> > > > > beautiful
> > > > > > way to do non-utf encoding
>
> > > > > > A couple people came up with other solutions, but I like mine
> > > > > best, and it
> > > > > > shrinks the jQuery size a few bytes.
>
> > > > > > On 6/10/07, oscar esp <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi I have a problem realted with charsets as you know.
>
> > > > > > > Could I use this code in order to fix my problem?
>
> > > > > > > On 10 jun, 06:00, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED]> wrote:
> > > > > > > >http://dev.jquery.com/ticket/1289
>
> > > > > > > > On 6/9/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > Be sure to add this to trac.
>
> > > > > > > > > --
> > > > > > > > > Brandon Aaron
>
> > > > > > > > > On 6/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED] > wrote:
>
> > > > > > > > > > I also added to the patch renaming the parameter 'xml' and
> > > > > sometimes
> > > > > > > 'r'
> > > > > > > > > > to 'xhr'. I think it makes it easier to read.
>
> > > > > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > On 6/7/07, Mike Alsup < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > I like this patch. Jörn? Brandon? John? Anyone?
>
> > > > > > > > > > > > alternate encoding done cleanly...
>
> > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > > > a small patch allows escape (or other) instead of
> > > > > > > encodeURIComponent
>
> > > > > > > > > > > > while localizing all calls to encodeURIComponent
> > > > > > > > > > > > this patch seems to make the packed size of jQuery
> > > > > even smaller.
>
> > > > > > > > > > > > $.pair is used in param (serialize) and can easily be
> > > > > overriden.
>
> > > > > > > > > > > > as in
> > > > > > > > > > > > $.pair = function(f,v) {return escape(f) + "=" +
> > > > > escape(v)};
> > > > > > > > > > > > $.ajax({
> > > > > > > > > > > > url: "/test.cgi",
> > > > > > > > > > > > data: {foo:'Jörn'},
> > > > > > > > > > > > success: function(){ console.log(arguments)}
> > > > > > > > > > > > })
>
> > > > > > > > > > --
> > > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > > > > > > --
> > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > > > - Mostrar texto de la cita -
>
> > > > > > --
> > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > - Mostrar texto de la cita -
>
> > > > --
> > > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> > > --
> > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Mike Alsup


That's great insight, Matt.  Excellent post; thanks for sharing.

Mike


leaves jQuery's fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse


[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Rhapidophyllum


I am new to jQuery, but after trying a couple of plugins that don't work
that well, and looking at others that aren't well-documented, I'd  
agree with
Matt that the approach to plugins could be reworked.  The perl  
analogy is
a good one--I used to program extensively in Perl but found it  
usually wasn't

useful to use their module repository.  Based on my limited jQuery
experience now, I don't want to look at plugins unless absolutely  
necessary,
due to the worry about wasting time on something that won't  
eventually work.


Perhaps as a beginning, you can incorporate some user submissions that
work well and you that you will support, similar to what has been  
done with

Thickbox.


On Jun 14, 2007, at 1:45 PM, Matt Kruse wrote:



On Jun 14, 12:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
   1. A plugin repository that is completely coordinated.  Like  
WordPress

   Themes or plugins.  It needs to have:
  ...


I still believe that the plugins approach being taken right now is
going to put jQuery in jeopardy as the library of choice going
forward. It could end up similar to Perl, where there is a module to
do just about everything, and yet it's impossible for new users to
figure out which modules they should use (there might be 10 to do the
same task), what dependencies it has, etc.

IMO, the core jQuery team needs to lay out a roadmap for official
plugins. The form plugin is great, but it's main focus is ajax.
Shouldn't there be a standard form plugin that just deals with form
inputs, etc? (I'm working on one for my own use).

The core team should lay out which plugins should be in the core set,
what they should each do, and then have people work on them to the
specs. We would then have a set of standard, official plugins that do
the most common tasks. The features and functionality of these core
plugins would not be up to a random developer who creates them, but
decided on by the core jQuery team. They need to be designed and
cohesive from the start, rather than simply selecting the best user-
created plugins that are submitted.

These plugins then need to be made quite prominent on the site so
everyone knows exactly what they should grab if they want to work with
form inputs, for example. No confusion, no need for multiple libs that
accomplish the same task, etc.

Without doing this, I really fear that jQuery will go down the road of
massive plugin confusion. Because of the self-imposed core filesize
restriction, the dependency on plugins will only increase. And since
most users will need to use plugins, the "look and feel/API" of jQuery
to them will in large part be that of the plugins they choose, which
leaves jQuery's fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse





[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Jörn Zaefferer


[EMAIL PROTECTED] wrote:

The image itself will also have a load event if your creating it
dynamically:

$('').appendTo(document.body).bind("load", 
function() { ... });
  
The caveat, though, is that I'm not sure when/if the event gets fired

if the image is cached.

From the Learning jQuery book draft (be sure to buy it once its out!):

if ($enlargedCover[0].complete) {
 animateEnlarge();
} else {
 $enlargedCover.load(animateEnlarge);

}

This is a rare instance in which the load event is more useful to us 
than jQuery's custom ready event. Since load is triggered on a document, 
image, or frame when all of its contents have fully loaded, we can 
observe the event to make sure that all of the image has been loaded 
into memory. Only then is the handler executed, and the animation performed.


Internet Explorer and Firefox have different interpretations of what to 
do if the image is already in the browser cache. In this case, Firefox 
will immediately send the load event to JavaScript, but Internet 
Explorer will never send the event because no "load" actually occurred. 
To compensate for this, we can use the complete property of the image 
element. This property is set to true only if the image is fully loaded, 
so we test this value first and start the animation if the image is 
ready. If the image is not yet complete, then we wait for a load event 
to be triggered.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Autocomplete mustMatch fix - possibly

2007-06-14 Thread Jörn Zaefferer


Robert O'Rourke wrote:


Hi there,

   Assuming that when must match is true you want the dropdown to 
disappear if something other than a matched value is typed I think 
this extension to the stopLoading function does the trick:
Actually the intention of mustMatch was to provide a select element with 
a great pool of options. You can enter anything, but it won't allow any 
value that isn't listed. The latest revision in SVN should include that.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-14 Thread Ⓙⓐⓚⓔ

$.pair = function(f,v) {return escape(f) + "=" + escape(v)};

is the key, otherwise you would have the standard utf behaviour

On 6/14/07, oscar esp <[EMAIL PROTECTED]> wrote:



Hi I have been on holidays and I have not time to test it.

In order to keep in mind:
I need to dowload from your brach. I am using jquery 1.2 .. Then If I
take the jquery from your brach it is a standar jquery 1.2 + your
modifications for enconding?
I am worry ... to be sure that are the same versión that I am using.

Then:
1- set  set ajaxSetup:
ajaxSetup({contentType: "application/x-www-form-urlencoded;
charset=iso-8859-1"})

2- After that all params of ajaxCall like:
jQuery.ajax({
type: "POST",
url: url,
data: param,
async: false,
dataType: "html"
};

Params will be in iso-8859-1¿?


On 10 jun, 19:53, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> keep me posted!! You may also need :
>
> ajaxSetup({contentType: "application/x-www-form-urlencoded;
charset= charset you want to call it>"})
>
> On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Oscar,
>
> > you can play with the jQuery from my branch (not released, and just to
try
> > it... no guarantees!!)
>
> >http://jqueryjs.googlecode.com/svn/branches/jake-dev/dist/
>
> > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> > > oops! that's on the googlegroups site.
>
> > > On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
>
> > > > $.pair = function(f,v) {return escape(f) + "=" + escape(v)};
>
> > > > and all your 'get' parameters use the new encoding. If you care to
> > > > test... I'll save up a full version on the
>
> > > > escape is brain dead , as it won't work with the full range of
UTF...
> > > > but the classic hi-ascii chars seem to work.. I tested with a ö
(only)
>
> > > > On 6/10/07, oscar esp < [EMAIL PROTECTED]> wrote:
>
> > > > > You are the man :-P
>
> > > > > In order to use it. then I only need add the js ¿? or I need
to
> > > > > call a extra code!!!
>
> > > > > On 10 jun, 18:44, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED] > wrote:
> > > > > > Hey Oscar, You were the reason I wrote this patch!!! Plus I
had no
> > > > > beautiful
> > > > > > way to do non-utf encoding
>
> > > > > > A couple people came up with other solutions, but I like mine
> > > > > best, and it
> > > > > > shrinks the jQuery size a few bytes.
>
> > > > > > On 6/10/07, oscar esp <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi I have a problem realted with charsets as you know.
>
> > > > > > > Could I use this code in order to fix my problem?
>
> > > > > > > On 10 jun, 06:00, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED]> wrote:
> > > > > > > >http://dev.jquery.com/ticket/1289
>
> > > > > > > > On 6/9/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > Be sure to add this to trac.
>
> > > > > > > > > --
> > > > > > > > > Brandon Aaron
>
> > > > > > > > > On 6/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED] > wrote:
>
> > > > > > > > > > I also added to the patch renaming the parameter 'xml'
and
> > > > > sometimes
> > > > > > > 'r'
> > > > > > > > > > to 'xhr'. I think it makes it easier to read.
>
> > > > > > > > > >
http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > On 6/7/07, Mike Alsup < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > I like this patch. Jörn? Brandon? John? Anyone?
>
> > > > > > > > > > > > alternate encoding done cleanly...
>
> > > > > > >
http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > > > a small patch allows escape (or other) instead of
> > > > > > > encodeURIComponent
>
> > > > > > > > > > > > while localizing all calls to encodeURIComponent
> > > > > > > > > > > > this patch seems to make the packed size of jQuery
> > > > > even smaller.
>
> > > > > > > > > > > > $.pair is used in param (serialize) and can easily
be
> > > > > overriden.
>
> > > > > > > > > > > > as in
> > > > > > > > > > > > $.pair = function(f,v) {return escape(f) + "=" +
> > > > > escape(v)};
> > > > > > > > > > > > $.ajax({
> > > > > > > > > > > > url: "/test.cgi",
> > > > > > > > > > > > data: {foo:'Jörn'},
> > > > > > > > > > > > success: function(){ console.log(arguments)}
> > > > > > > > > > > > })
>
> > > > > > > > > > --
> > > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > > > > > > --
> > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > > > - Mostrar texto de la cita -
>
> > > > > > --
> > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > - Mostrar texto de la cita -
>
> > > > --
> > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > --
> > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > --
> > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: Release: Validation plugin 1.0 final

2007-06-14 Thread Jörn Zaefferer


Glen Lipka wrote:

Wow Jörn,  I can't believe how much you put into this release!
Looks awesome.  I just noticed the Marketo examples on the download 
look a little troublesome.
I'll make a flatter, simpler version of that page without all the 
generated mess and send to you.
Thanks Glen. I was to lazy to remove them from the download package, 
they aren't really part of the demo stuff yet.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Release: Validation plugin 1.0 final

2007-06-14 Thread Jörn Zaefferer


Sebastián V. Würtz wrote:


I have to say that your plugin is excelent but i can open your website :(
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

How about www.bassistance.de/jquery-plugins/jquery-plugin-validation/ ?
Can you access the downloads or the demopage? 
http://jquery.bassistance.de/validate/jquery.validate.zip 
http://jquery.bassistance.de/validate/demo-test/


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Priest, James (NIH/NIEHS) [C]

> -Original Message-
> From: Matt Kruse [mailto:[EMAIL PROTECTED] 
 
> forward. It could end up similar to Perl, where there is a module to
> do just about everything, and yet it's impossible for new users to
> figure out which modules they should use (there might be 10 to do the
> same task), what dependencies it has, etc.

As a fairly new user of jQuery - I do agree with this - the number of
choices available is almost overwhelming. Which to pick? Which is
'best'...  Which one works with what version of jQuery?

> specs. We would then have a set of standard, official plugins that do
> the most common tasks. The features and functionality of these core

I like the idea of having 'official' or maybe 'approved' plugins...
Ideally one could go to jQuery.com and get everything vs. having to
Google and search for things...  My recent project used tabs,
autocomplete, Interface, and a few tablesort - all of which I had to dig
for...  I also had to note all those URLs, versions, etc. in my project
docs because down the road - who knows if those resources will still be
around??

Jim


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-14 Thread Jörn Zaefferer


Brandon Aaron wrote:
Yeah we just need to do that for the min version as well. I prefer to 
use the min version and gzip ... better results. jQuery is only 11kb 
with this technique.


Back to the original topic ... the plugins directory of the repository 
also uses ant to build files. These ant tasks are setup to take 
advantage of the jquery.plugin_name.js standard. Changing the naming 
scheme would cause problems. It is however, very important to keep a 
version number and at least a revision number and last modified date 
in the header ... even for compressed plugins. If it isn't in the 
plugin authoring guide ... it should be. Perhaps even a note about how 
to add the svn properties like $REV$.
Good points Aaron. Modifying the build to add the header to minified 
files shouldn't be too difficult. I hope to find some time for updating 
the authoring guide soon, the last update was quite some time ago.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: autocomplete advice

2007-06-14 Thread Jörn Zaefferer


Robert O'Rourke wrote:
   The main difference was changing the .click event on $input to give 
the input focus and then added an else statement to it:

[...]
Sounds great. Let me know about your progress, I'd like to port your 
changes back into the plugin.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Andy Matthews

That's a great writeup. I'd have to say that it makes a lot of sense. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Kruse
Sent: Thursday, June 14, 2007 12:46 PM
To: jQuery (English)
Subject: [jQuery] Re: CNN and Apple Choose Prototype. Why?


On Jun 14, 12:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>1. A plugin repository that is completely coordinated.  Like WordPress
>Themes or plugins.  It needs to have:
>   ...

I still believe that the plugins approach being taken right now is going to
put jQuery in jeopardy as the library of choice going forward. It could end
up similar to Perl, where there is a module to do just about everything, and
yet it's impossible for new users to figure out which modules they should
use (there might be 10 to do the same task), what dependencies it has, etc.

IMO, the core jQuery team needs to lay out a roadmap for official plugins.
The form plugin is great, but it's main focus is ajax.
Shouldn't there be a standard form plugin that just deals with form inputs,
etc? (I'm working on one for my own use).

The core team should lay out which plugins should be in the core set, what
they should each do, and then have people work on them to the specs. We
would then have a set of standard, official plugins that do the most common
tasks. The features and functionality of these core plugins would not be up
to a random developer who creates them, but decided on by the core jQuery
team. They need to be designed and cohesive from the start, rather than
simply selecting the best user- created plugins that are submitted.

These plugins then need to be made quite prominent on the site so everyone
knows exactly what they should grab if they want to work with form inputs,
for example. No confusion, no need for multiple libs that accomplish the
same task, etc.

Without doing this, I really fear that jQuery will go down the road of
massive plugin confusion. Because of the self-imposed core filesize
restriction, the dependency on plugins will only increase. And since most
users will need to use plugins, the "look and feel/API" of jQuery to them
will in large part be that of the plugins they choose, which leaves jQuery's
fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse




[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-14 Thread oscar esp

Hi I have been on holidays and I have not time to test it.

In order to keep in mind:
I need to dowload from your brach. I am using jquery 1.2 .. Then If I
take the jquery from your brach it is a standar jquery 1.2 + your
modifications for enconding?
I am worry ... to be sure that are the same versión that I am using.

Then:
1- set  set ajaxSetup:
ajaxSetup({contentType: "application/x-www-form-urlencoded;
charset=iso-8859-1"})

2- After that all params of ajaxCall like:
jQuery.ajax({
type: "POST",
url: url,
data: param,
async: false,
dataType: "html"
};

Params will be in iso-8859-1¿?


On 10 jun, 19:53, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> keep me posted!! You may also need :
>
> ajaxSetup({contentType: "application/x-www-form-urlencoded; charset= charset you want to call it>"})
>
> On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Oscar,
>
> > you can play with the jQuery from my branch (not released, and just to try
> > it... no guarantees!!)
>
> >http://jqueryjs.googlecode.com/svn/branches/jake-dev/dist/
>
> > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> > > oops! that's on the googlegroups site.
>
> > > On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
>
> > > > $.pair = function(f,v) {return escape(f) + "=" + escape(v)};
>
> > > > and all your 'get' parameters use the new encoding.  If you care to
> > > > test... I'll save up a full version on the
>
> > > > escape is brain dead , as it won't work with the full range of UTF...
> > > > but the classic hi-ascii chars seem to work.. I tested with a ö (only)
>
> > > > On 6/10/07, oscar esp < [EMAIL PROTECTED]> wrote:
>
> > > > > You are the man :-P
>
> > > > > In order to use it. then I only need add the js ¿? or I need to
> > > > > call a extra code!!!
>
> > > > > On 10 jun, 18:44, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED] > wrote:
> > > > > > Hey Oscar, You were the reason I wrote this patch!!! Plus I had no
> > > > > beautiful
> > > > > > way to do non-utf encoding
>
> > > > > > A couple people came up with other solutions, but I like mine
> > > > > best, and it
> > > > > > shrinks the jQuery size a few bytes.
>
> > > > > > On 6/10/07, oscar esp <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi I have a problem realted with charsets as you know.
>
> > > > > > > Could I use this code in order to fix my problem?
>
> > > > > > > On 10 jun, 06:00, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED]> wrote:
> > > > > > > >http://dev.jquery.com/ticket/1289
>
> > > > > > > > On 6/9/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > Be sure to add this to trac.
>
> > > > > > > > > --
> > > > > > > > > Brandon Aaron
>
> > > > > > > > > On 6/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED] > wrote:
>
> > > > > > > > > > I also added to the patch renaming the parameter 'xml' and
> > > > > sometimes
> > > > > > > 'r'
> > > > > > > > > > to 'xhr'. I think it makes it easier to read.
>
> > > > > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > On 6/7/07, Mike Alsup < [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > I like this patch. Jörn? Brandon? John? Anyone?
>
> > > > > > > > > > > > alternate encoding done cleanly...
>
> > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js
>
> > > > > > > > > > > > a small patch allows escape (or other) instead of
> > > > > > > encodeURIComponent
>
> > > > > > > > > > > > while localizing all calls to encodeURIComponent
> > > > > > > > > > > > this patch seems to make the packed size of jQuery
> > > > > even smaller.
>
> > > > > > > > > > > > $.pair is used in param (serialize) and can easily be
> > > > > overriden.
>
> > > > > > > > > > > > as in
> > > > > > > > > > > > $.pair = function(f,v) {return escape(f) + "=" +
> > > > > escape(v)};
> > > > > > > > > > > > $.ajax({
> > > > > > > > > > > > url: "/test.cgi",
> > > > > > > > > > > > data: {foo:'Jörn'},
> > > > > > > > > > > > success: function(){ console.log(arguments)}
> > > > > > > > > > > > })
>
> > > > > > > > > > --
> > > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
>
> > > > > > > > --
> > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > > > - Mostrar texto de la cita -
>
> > > > > > --
> > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> > > > > > - Mostrar texto de la cita -
>
> > > > --
> > > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> > > --
> > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Matt Kruse

On Jun 14, 12:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>1. A plugin repository that is completely coordinated.  Like WordPress
>Themes or plugins.  It needs to have:
>   ...

I still believe that the plugins approach being taken right now is
going to put jQuery in jeopardy as the library of choice going
forward. It could end up similar to Perl, where there is a module to
do just about everything, and yet it's impossible for new users to
figure out which modules they should use (there might be 10 to do the
same task), what dependencies it has, etc.

IMO, the core jQuery team needs to lay out a roadmap for official
plugins. The form plugin is great, but it's main focus is ajax.
Shouldn't there be a standard form plugin that just deals with form
inputs, etc? (I'm working on one for my own use).

The core team should lay out which plugins should be in the core set,
what they should each do, and then have people work on them to the
specs. We would then have a set of standard, official plugins that do
the most common tasks. The features and functionality of these core
plugins would not be up to a random developer who creates them, but
decided on by the core jQuery team. They need to be designed and
cohesive from the start, rather than simply selecting the best user-
created plugins that are submitted.

These plugins then need to be made quite prominent on the site so
everyone knows exactly what they should grab if they want to work with
form inputs, for example. No confusion, no need for multiple libs that
accomplish the same task, etc.

Without doing this, I really fear that jQuery will go down the road of
massive plugin confusion. Because of the self-imposed core filesize
restriction, the dependency on plugins will only increase. And since
most users will need to use plugins, the "look and feel/API" of jQuery
to them will in large part be that of the plugins they choose, which
leaves jQuery's fate up to random developers creating random plugins.
Not so good, IMO.

Matt Kruse



[jQuery] Submenu not leaving

2007-06-14 Thread sublimenal

Hello,

Im using the superfish module and trying to make submenus (not quite
dropdown menus) but when you put your mouse on another item it doesnt
remove the submenu from the item you were just viewing. Anyone know
what could be causing this? Thanks


http://pioneer.dlg360.com/Home-1.htm



[jQuery] Re: Bound function on appended image

2007-06-14 Thread Scott Sauyet


Gareth Hughes wrote:
Is there a way of writing the functions so they work on items that are 
appended to the page by jQuery? Another approach perhaps?


There's a good tutorial here:

http://docs.jquery.com/Tutorials:AJAX_and_Events

Cheers,

  -- Scott



[jQuery] Bound function on appended image

2007-06-14 Thread Gareth Hughes

I have a function bound to an image class. If I insert another copy of the 
image (with the same class), the bound function doesn't work on it. Very 
simple example here:

http://www.mm-webs.com/sandbox/test.html

The alert sign produces an alert box. The green plus sign inserts another 
set of images.

Is there a way of writing the functions so they work on items that are 
appended to the page by jQuery? Another approach perhaps?

Thanks

Gareth 



[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Glen Lipka

Well stated Rey.
These are steps that I believe will help jQuery be adopted by the mainstream
audiences.

  1. A plugin repository that is completely coordinated.  Like WordPress
  Themes or plugins.  It needs to have:
 1. Ratings
 2. Number of downloads
 3. Documentation
 4. Examples
 5. Naming pattern
 6. Links to competing or related plugins (or dependancies)
 7. Sites that use the plugin
 8. Comments
 9. A standard way of submitting new plugins.
 10. A pattern for all the above that is repeated for every
 plugin
  2. A more fleshed out Demo site of the core, like Moo has done.
  3. A site with comparisons of how to achieve goals in different
  libraries. (I started, but haven't had time to dedicate)
  4. Approximate speed parity with others (with a plugin or a "fat
  jquery"), but somehow the issue needs to be diffused.
  5. More PR.  Specifically, John and jQuery are symbiotic.  Each one
  has coattails on the other.

These things make a difference.
Does the j in jQuery stand for John?

Glen


On 6/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:



Hi Joao,

> I find it interesting as well. Scriptaculous is the "killer app" that
> makes Prototype even more appealing, and as far as I know, Scriptaculous
is
> the leader in stability and features as far as FX libraries go. :-)

Its definitely the most well known effects lib and thats because they've
capitalized on the Prototype's "first to market" position. It does have
some nice features.

> jQuery is doing good, though.
>
> jQuery has many strong points to it as well. The core of jQuery is
> very good and provides plenty of features. Where I think jQuery lacks
support is in
> super-ultra optimization which might be required sometimes. And while
the core can
> be optimized, the plugins are another matter as well. The lack of
> performance can be exacerbated as everything is "chained". :-)

Hmm. I'm not quite convinced on this argument. The performance issues
aren't due to lack of optimization. The core team has really tweaked
every aspect. As I mentioned during the selector test suite thread, the
biggest roadblock to improving selector speeds is file size. That's
being looked at as I type and we're looking at all alternatives to
improving DOM selector speeds. That's really the only area that I've
heard mentioned in terms of performance and only when these test suites
are published. Since I monitor the lists daily, I'm in tune with a lot
of the problem areas and I haven't seen anyone mention jQuery as a slow
performer.

In terms of the plugins, that's really up to the individual plugin
authors to evaluate and tweak. If you look at several of the plugins
written by jQuery team members, they're very optimized and suffer no
performance issues. Again, its based on specific experience levels and
some folks will produce better code.

> Ultimately, jQuery doesn't have a "killer" application like
> Scriptaculous, and I think that to create something like Scriptaculous
requires a break of
> culture as far as "chain-only" solutions go in jQuery.

We have Interface but in terms of brand recognition, Scriptaculous
definitely has the edge. Feature for feature, Interface provides the
same functionality as Scriptaculous and there are things in the works to
improve a lot of the functionality.

Also, you keep mentioning "chain-only" and I guess I'm having a hard
time understanding that comment, especially when Prototype and Moo
followed jQuery and now offer chaining as a well promoted feature.
Chaining is a huge reason why people have chosen jQuery and why other
libraries followed suit. Where do you see chaining as a performance
issue? If you have specific examples, I would love to see them so I can
pass it along to the core group and have them work on that.

> I could put some blame in the emphasis on file size which is
> cultivated in the jQuery community as well, as the code of plugins can
be slightly more painful
> to digest.

I hear ya but we do want to empower the community to build the things
that they explicitly want while we maintain a solid foundation for them
to build upon. Again, its an approach taken by almost every major lib
and its been fairly successful to date across all projects.

> That said, I am still trying to find something better than jQuery, as
> other alternatives try to hard to go in the other direction though
(bloat, worse
> community support, slower development cycles, worse code all around).

Well, jQuery makes a very compelling case for itself and the team is
working on making it better. I think you can go with the "grass is
greener on the other side" approach and constantly be searching or you
could settle into enhancing jQuery, which you seem to like, and
contribute code, plugins and demos to the effort. Its not always about
looking for the something better. Sometimes, its about making something
thats already good even better. :)

> Doesn't anyone have the definitive approach to JavaScript
> progra

[jQuery] Re: Is there documentation available?

2007-06-14 Thread Andy Matthews

Odd...

I got that error too. This got me in though:

http://jquery.com/api/? 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Sauyet
Sent: Thursday, June 14, 2007 11:33 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Is there documentation available?


John Farrar wrote:
> The XML page [www.jquery.com/api - SDS] cannot be displayed
> 
> Cannot view XML input using style sheet. Please correct the error and 
> then click the Refresh  button, or try 
> again later.
> 
> --
> --
> 
> Access is denied. Error processing resource 'http://www.jquery.com/api'.

I've never seen that happen.  Have you tried again?  It's working for me in
FF and IE7.  Haven't tested with anything else.

   -- Scott




[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Rey Bango


Hi Joao,


I find it interesting as well. Scriptaculous is the "killer app" that
makes Prototype even more appealing, and as far as I know, Scriptaculous is
the leader in stability and features as far as FX libraries go. :-)


Its definitely the most well known effects lib and thats because they've 
capitalized on the Prototype's "first to market" position. It does have 
some nice features.



jQuery is doing good, though.

jQuery has many strong points to it as well. The core of jQuery is
very good and provides plenty of features. Where I think jQuery lacks support 
is in
super-ultra optimization which might be required sometimes. And while the core 
can
be optimized, the plugins are another matter as well. The lack of
performance can be exacerbated as everything is "chained". :-)


Hmm. I'm not quite convinced on this argument. The performance issues 
aren't due to lack of optimization. The core team has really tweaked 
every aspect. As I mentioned during the selector test suite thread, the 
biggest roadblock to improving selector speeds is file size. That's 
being looked at as I type and we're looking at all alternatives to 
improving DOM selector speeds. That's really the only area that I've 
heard mentioned in terms of performance and only when these test suites 
are published. Since I monitor the lists daily, I'm in tune with a lot 
of the problem areas and I haven't seen anyone mention jQuery as a slow 
performer.


In terms of the plugins, that's really up to the individual plugin 
authors to evaluate and tweak. If you look at several of the plugins 
written by jQuery team members, they're very optimized and suffer no 
performance issues. Again, its based on specific experience levels and 
some folks will produce better code.



Ultimately, jQuery doesn't have a "killer" application like
Scriptaculous, and I think that to create something like Scriptaculous requires 
a break of
culture as far as "chain-only" solutions go in jQuery.


We have Interface but in terms of brand recognition, Scriptaculous 
definitely has the edge. Feature for feature, Interface provides the 
same functionality as Scriptaculous and there are things in the works to 
improve a lot of the functionality.


Also, you keep mentioning "chain-only" and I guess I'm having a hard 
time understanding that comment, especially when Prototype and Moo 
followed jQuery and now offer chaining as a well promoted feature. 
Chaining is a huge reason why people have chosen jQuery and why other 
libraries followed suit. Where do you see chaining as a performance 
issue? If you have specific examples, I would love to see them so I can 
pass it along to the core group and have them work on that.



I could put some blame in the emphasis on file size which is
cultivated in the jQuery community as well, as the code of plugins can be 
slightly more painful
to digest.


I hear ya but we do want to empower the community to build the things 
that they explicitly want while we maintain a solid foundation for them 
to build upon. Again, its an approach taken by almost every major lib 
and its been fairly successful to date across all projects.



That said, I am still trying to find something better than jQuery, as
other alternatives try to hard to go in the other direction though (bloat, worse
community support, slower development cycles, worse code all around).


Well, jQuery makes a very compelling case for itself and the team is 
working on making it better. I think you can go with the "grass is 
greener on the other side" approach and constantly be searching or you 
could settle into enhancing jQuery, which you seem to like, and 
contribute code, plugins and demos to the effort. Its not always about 
looking for the something better. Sometimes, its about making something 
thats already good even better. :)



Doesn't anyone have the definitive approach to JavaScript
programming? :-)


Good luck on that! LOL!

Rey...


[jQuery] Re: Is there documentation available?

2007-06-14 Thread Jeffrey Kretz

I get an error on IE7 just now:

Access is denied. Error processing resource 'http://www.jquery.com/api'.

Note that I can access it just fine with FF.

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Sauyet
Sent: Thursday, June 14, 2007 9:33 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Is there documentation available?


John Farrar wrote:
> The XML page [www.jquery.com/api - SDS] cannot be displayed
> 
> Cannot view XML input using style sheet. Please correct the error and 
> then click the Refresh  button, or try 
> again later.
> 
> 
> 
> Access is denied. Error processing resource 'http://www.jquery.com/api'.

I've never seen that happen.  Have you tried again?  It's working for me 
in FF and IE7.  Haven't tested with anything else.

   -- Scott




[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Bruce Wang

On 6/15/07, howa <[EMAIL PROTECTED]> wrote:



IMHO, jQuery is surely the MOST successful JS library ever as you can
see the things happening in this mailing lists.

Developers/Users are so friendly and helpful to each others. what a
mouthful

It is enough for me.



yap, agree.

JQuery is almost everywhere  that could possiblely use  a  javascript
library:  Firefox3,  Drupal5, Wordpress2.2,  and my working projects  :)


--
simple is good
http://brucewang.net
skype: number5


[jQuery] Re: Is there documentation available?

2007-06-14 Thread Scott Sauyet


John Farrar wrote:

The XML page [www.jquery.com/api - SDS] cannot be displayed

Cannot view XML input using style sheet. Please correct the error and 
then click the Refresh  button, or try 
again later.




Access is denied. Error processing resource 'http://www.jquery.com/api'.


I've never seen that happen.  Have you tried again?  It's working for me 
in FF and IE7.  Haven't tested with anything else.


  -- Scott



  1   2   >