[jQuery] Re: datePicker v2 beta

2007-05-20 Thread sithram

Hi Kelvin,

The evolution is wondelful!
It's a great and useful plugin. Thanks for your job!

Xavier

On Apr 24, 11:54 am, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'd like to announce the beta release of v2 of my datePicker plugin for 
> jQuery. This release is a complete rewrite which makes the date picker 
> considerably more powerful and flexible than it previously was. Check out the 
> temporary project page:
>
> http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
>
> Note, this is currently in beta and may be a little rough around the edges 
> but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
> would be good to know if it works in other browsers (particulaly Safari). 
> Plus any other feedback on extra stuff you'd like adding or bugs you discover,
>
> Cheers,
>
> Kelvin :)



[jQuery] Re: datePicker v2 beta

2007-05-20 Thread pd

Is there any particular reason why your plugin doesn't have an option
for specifying time as well as date?

I'd like to use this plugin but need time functionality.

On Apr 24, 7:54 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'd like to announce the beta release of v2 of my datePicker plugin for 
> jQuery. This release is a complete rewrite which makes the date picker 
> considerably more powerful and flexible than it previously was. Check out the 
> temporary project page:
>
> http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
>
> Note, this is currently in beta and may be a little rough around the edges 
> but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it 
> would be good to know if it works in other browsers (particulaly Safari). 
> Plus any other feedback on extra stuff you'd like adding or bugs you discover,
>
> Cheers,
>
> Kelvin :)



[jQuery] Re: Debugging jQuery

2007-05-20 Thread Daemach

I mostly use it for the log and timing functions (time/timeend) since
I can't get much else out of IE.  You can't really dump any useful
information to the console - objects just show as "Object", so if you
can do a better job with that, it would help a lot ;)  I use the
timing functions to compare performance between firefox and IE since
there is no profiler.

On May 20, 8:53 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> Yes, It does some similar things, and steps all over firebug lite.
>
> Is there a feature in firebug lite that you really like? I'm sure I can
> incorporate it or make it more compatible.
>
> On 5/20/07, Daemach <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Thanks Jake - new tools are always appreciated.  Unfortunately, this
> > plugin breaks firebug.js which is my only source of information in IE :
> > (
>
> >http://www.getfirebug.com/lite.html
>
> > On May 19, 9:39 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> > > Get yer red-hot debugging...
>
> > >http://jqueryjs.googlecode.com/svn/trunk/plugins/debug/
>
> > > I would like any feedback!!
>
> > > On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> > > > That was my goal, after I get feedback and make sure nobody has
> > anything
> > > > better!!!
>
> > > > On 5/19/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > > > Looks great Jake. How about adding it to jQuery Plugins SVN?
>
> > > > > --
> > > > > Brandon Aaron
>
> > > > > On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > > > > > over the months, I've re-written my debug library several times.
> > > > > > I'm pretty happy with this one. based on code from all over the
> > place!
>
> > > > > > I hope you can all read the attached file.
>
> > > > --
> > > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> > > --
> > > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ



[jQuery] Re: what's the best way to write this small function

2007-05-20 Thread Richard Worth

On 5/20/07, bingo <[EMAIL PROTECTED]> wrote:



jQuery.fn.customLoad = function(url){
return $(this).ajaxStart(function(){
$(this).html("");
$(this).load(url);
});
};

As you can see, I am just trying over write load function so that
whenever any div is being loaded, just attach a new div that display
loading animation.




Try this:

jQuery.fn.customLoad = function(url){
   $(this).bind("ajaxStart", function(){
   $(this).html("");
   });
   $(this).bind("ajaxStop", function(){
   $(this).unbind("ajaxStart");
   });
   return $(this).load(url);
};

I found the unbind necessary to keep ajaxStart from being called a second
time after the element is loaded. I think this may be a bug.

- Richard D. Worth


[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread John Resig


I've posted my thoughts here:
http://dev.jquery.com/ticket/1212

"This is because both of the plugins overwrite the easing object
instead of extending it :-( The default easing in jQuery is called
'swing' - which isn't available in either plugin (thus causing the
errors). I assume that if the easing can't be found, 'linear' could be
used (since that's used everywhere). But that seems lame."

--John

On 5/20/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:

Hey John,

tested tons of selectors and all appear to be working as expected.

also, .fadeIn() after .hide() is working again, as is .fadeIn() / .fadeOut()
with table rows. Hooray!!

looks like there is a bug with animations whenever an easing plugin is
included in the file. Created ticket :
 http://dev.jquery.com/ticket/1213

Test pages (see errors in Firebug):

Including Interface easing.js plugin:
 http://test.learningjquery.com/easing.html
 Including George Smith's jquery.easing.1.1.js plugin:
 http://test.learningjquery.com/easing2.html

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





On May 20, 2007, at 9:29 PM, John Resig wrote:


Hi Everyone -

A test build of the upcoming 1.1.3 release is ready for everyone to
try. We need to be super-sure that there haven't been any regressions
in this release, and in order to do that we'd like you to download
this alpha release and try it in place of jQuery 1.1.2 (wherever you
may be using it).

Download the test release:
* jQuery 1.1.3a (Uncompressed, Test Release)
  http://code.jquery.com/jquery-1.1.3a.js

Here's what you can do to help:

  1. Download the test release of jQuery 1.1.3
  2. Temporarily replace your copy of jQuery 1.1.2 with this test
release in some of your web pages
  3. If something is now broken, please submit a ticket letting us
know what happened. The more specific you can be, the better (demos or
test cases are highly desired).
  http://dev.jquery.com/newticket

Note: Pay special attention to Events, Selectors, and Animations;
significant changes happened in all three of those areas, so if
there's any place where a regression is possible, it would be more
likely to occur in there.

Once we're confident that there's no new bugs, we'll be releasing
jQuery 1.1.3 fully (hopefully some time this week).

Thanks everyone!

--John



[jQuery] Re: Debugging jQuery

2007-05-20 Thread Ⓙⓐⓚⓔ

Yes, It does some similar things, and steps all over firebug lite.

Is there a feature in firebug lite that you really like? I'm sure I can
incorporate it or make it more compatible.

On 5/20/07, Daemach <[EMAIL PROTECTED]> wrote:



Thanks Jake - new tools are always appreciated.  Unfortunately, this
plugin breaks firebug.js which is my only source of information in IE :
(

http://www.getfirebug.com/lite.html

On May 19, 9:39 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> Get yer red-hot debugging...
>
> http://jqueryjs.googlecode.com/svn/trunk/plugins/debug/
>
> I would like any feedback!!
>
> On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > That was my goal, after I get feedback and make sure nobody has
anything
> > better!!!
>
> > On 5/19/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > Looks great Jake. How about adding it to jQuery Plugins SVN?
>
> > > --
> > > Brandon Aaron
>
> > > On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > > > over the months, I've re-written my debug library several times.
> > > > I'm pretty happy with this one. based on code from all over the
place!
>
> > > > I hope you can all read the attached file.
>
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





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


[jQuery] Re: Debugging jQuery

2007-05-20 Thread Daemach

Thanks Jake - new tools are always appreciated.  Unfortunately, this
plugin breaks firebug.js which is my only source of information in IE :
(

http://www.getfirebug.com/lite.html

On May 19, 9:39 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> Get yer red-hot debugging...
>
> http://jqueryjs.googlecode.com/svn/trunk/plugins/debug/
>
> I would like any feedback!!
>
> On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > That was my goal, after I get feedback and make sure nobody has anything
> > better!!!
>
> > On 5/19/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
>
> > > Looks great Jake. How about adding it to jQuery Plugins SVN?
>
> > > --
> > > Brandon Aaron
>
> > > On 5/19/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > > > over the months, I've re-written my debug library several times.
> > > > I'm pretty happy with this one. based on code from all over the place!
>
> > > > I hope you can all read the attached file.
>
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ



[jQuery] Re: show/hide revisited

2007-05-20 Thread Roger Roelofs


Schnuck,

On May 18, 2007, at 11:21 AM, Schnuck wrote:


i have this bit of code here (and god knows how old, unstylish and
inefficient the code below might be) and all i am trying is to make
one or two particular divs with set ids/classes to show and hide
triggered by a remote image somewhere else on the page. the image,
let's say a plus icon switches to a minus icon depending on the state
of the toggled divs. the example below at least does toggle between
shwo & hide but the div it should hide doesn't do anything. also, in
the example it uses text to display show or hide, this could be done
with images (like plus and minus)?


Maybe you have an answer already, but I didn't see one on the list.   
You can make the code simpler.  Something like this.


$(document).ready(function() {

$('.commenting').hide();

$('a.show_com').click(function() {
  if ( this.className == "show_com" ) {
$(".commenting").slideDown('slow');
$(this).removeClass("show_com").addClass("hide_com").text("HIDE  
COMMENTS");

  } else {
$(".commenting").slideUp('fast');
$(this).removeClass("hide_com").addClass("show_com").text("SHOW  
COMMENTS");

  }
  return false;
});
});

If you want a plus or minus you can either do it in test
$(this).removeClass("show_com").addClass("hide_com").text("-");
or you can add a background image in css

a.show_com, a.hide_com {
  width: 16px;
  height: 16px;
}

a.show_com {
  background-image: plus.gif;
}
a.hide_com {
  background-image: minus.gif;
}

The code could be even simpler if you use one class.

$('a.show_com').click(function() {
  $(this).toggleClass("show_com");
  $(".commenting").slideToggle("slow");
  return false;
});

then the css would be

a {
  width: 16px;
  height: 16px;
  background-image: minus.gif;
}

a.show_com {
  background-image: plus.gif;
}

--
Roger Roelofs





[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread Karl Swedberg

Hey John,

tested tons of selectors and all appear to be working as expected.

also, .fadeIn() after .hide() is working again, as is .fadeIn 
() / .fadeOut() with table rows. Hooray!!


looks like there is a bug with animations whenever an easing plugin  
is included in the file. Created ticket :

http://dev.jquery.com/ticket/1213

Test pages (see errors in Firebug):

Including Interface easing.js plugin:
http://test.learningjquery.com/easing.html
Including George Smith's jquery.easing.1.1.js plugin:
http://test.learningjquery.com/easing2.html

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



On May 20, 2007, at 9:29 PM, John Resig wrote:



Hi Everyone -

A test build of the upcoming 1.1.3 release is ready for everyone to
try. We need to be super-sure that there haven't been any regressions
in this release, and in order to do that we'd like you to download
this alpha release and try it in place of jQuery 1.1.2 (wherever you
may be using it).

Download the test release:
* jQuery 1.1.3a (Uncompressed, Test Release)
  http://code.jquery.com/jquery-1.1.3a.js

Here's what you can do to help:

  1. Download the test release of jQuery 1.1.3
  2. Temporarily replace your copy of jQuery 1.1.2 with this test
release in some of your web pages
  3. If something is now broken, please submit a ticket letting us
know what happened. The more specific you can be, the better (demos or
test cases are highly desired).
  http://dev.jquery.com/newticket

Note: Pay special attention to Events, Selectors, and Animations;
significant changes happened in all three of those areas, so if
there's any place where a regression is possible, it would be more
likely to occur in there.

Once we're confident that there's no new bugs, we'll be releasing
jQuery 1.1.3 fully (hopefully some time this week).

Thanks everyone!

--John




[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


ow now undertood =p

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:


It's not unbinding the click for me when I don't return false. I put
the 'unbind' in there in the first place because if the function gets
called again (that does the event binding)... I don't want the event
handler to execute 2, 3, 4, 5... etc times instead of only once.

Thanks again folks! =)

On May 20, 6:25 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote:
> with this changes works
>
>  $('body').unbind('click').click(function(event) {
>if($(event.target).is('#test')) { alert("Returning..");
> return true; }
>
>// Do whatever here.
>alert("Would perform some action.");
>return false;
>});
>
> couze we use the unbind function for that we need return false when
> the click is in body or will unbind the click for the body ;D
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Brandon, very good! Much appreciated!! =) I had to put "event" as a
> > parameter inside of the function() {...} snippet, but yes.. that is
> > *exactly* what I was looking for.
>
> > Here is the test code in case anybody else happens to run into this
> > problem and needs a solution:
>
> > 
> > 
> > 
> > http://labs.twerq.com/
> > jquery.pack.js">
> > 
> > $(document).ready(function() {
> > $('body').unbind('click').click(function(event) {
> > if($(event.target).is('#test')) { alert("Returning.."); 
return
> > false; }
>
> > // Do whatever here.
> > alert("Would perform some action.");
> > });
> > });
> > 
> > 
> > 
>
> > [x]
>
> > 
> > 
>
> > On May 20, 5:50 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> > > I would just check the event.target to see if it originated from the 
image.
>
> > > $('body').bind('click', function() {
> > > if ( $(event.target).is('#someId') ) return; // short-circuit
> > > // continue on to hide div
>
> > > });
>
> > > --
> > > Brandon Aaron
>
> > > On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
> > > > Just a quick question =).
>
> > > > I want to bind an event handler to "body" so that whenever someone
> > > > clicks anywhere on the body, a DIV disappears. However, there is a
> > > > specific graphic (that has an id) that I need to be ignored in that
> > > > click handler. I haven't been able to come up with an elegant solution
> > > > and was hoping someone here may have some advice.
>
> > > > I've tried something along the lines of: $
> > > > ('body').not('#someid').unbind('click').click(function() { /* code
> > > > */ });
>
> > > > But it does not work. Any thoughts?
>
> --
>
> []´s Jeanwww.suissa.info
>
>Ethereal Agencywww.etherealagency.com





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread John Resig


Glen -

A more-specific example would be great (using a copy of 1.1.3a). Feel
free to post the URL once you have it up.

--John

On 5/20/07, Glen Lipka <[EMAIL PROTECTED]> wrote:

Just to see, I swapped our 1.1.2 and put in the link you had above.
It broke the Tabs plugin.
http://www.marketo.com/about/contact.php

Also, my RSS problem previously posted.
Firefox still worked both, but now IE couldn't load either one.
http://www.marketo.com/rsstest.htm

I can put up sample pages if you need that include the newer jQuery.

Glen

PS.  Just launched the site this hour.  (http:/www.marketo.com) using a
bunch of jQuery, Tabs Plugin, and Validation Plugin.


On 5/20/07, John Resig <[EMAIL PROTECTED]> wrote:
>
> Hi Everyone -
>
> A test build of the upcoming 1.1.3 release is ready for everyone to
> try. We need to be super-sure that there haven't been any regressions
> in this release, and in order to do that we'd like you to download
> this alpha release and try it in place of jQuery 1.1.2 (wherever you
> may be using it).
>
> Download the test release:
> * jQuery 1.1.3a (Uncompressed, Test Release)
>http://code.jquery.com/jquery-1.1.3a.js
>
> Here's what you can do to help:
>
>1. Download the test release of jQuery 1.1.3
>2. Temporarily replace your copy of jQuery 1.1.2 with this test
> release in some of your web pages
>3. If something is now broken, please submit a ticket letting us
> know what happened. The more specific you can be, the better (demos or
> test cases are highly desired).
>http://dev.jquery.com/newticket
>
> Note: Pay special attention to Events, Selectors, and Animations;
> significant changes happened in all three of those areas, so if
> there's any place where a regression is possible, it would be more
> likely to occur in there.
>
> Once we're confident that there's no new bugs, we'll be releasing
> jQuery 1.1.3 fully (hopefully some time this week).
>
> Thanks everyone!
>
> --John
>




[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread pd

I've tested it and zebra striping is fine, mouseover/out highlighting
is fine, getJSON is still fine as well.

Tested with Fx 2.0.0.3, IE7 and IE6 (SP2) on Windows XP.

On May 21, 11:29 am, "John Resig" <[EMAIL PROTECTED]> wrote:
> Hi Everyone -
>
> A test build of the upcoming 1.1.3 release is ready for everyone to
> try. We need to be super-sure that there haven't been any regressions
> in this release, and in order to do that we'd like you to download
> this alpha release and try it in place of jQuery 1.1.2 (wherever you
> may be using it).
>
> Download the test release:
>  * jQuery 1.1.3a (Uncompressed, Test Release)
>http://code.jquery.com/jquery-1.1.3a.js
>
> Here's what you can do to help:
>
>1. Download the test release of jQuery 1.1.3
>2. Temporarily replace your copy of jQuery 1.1.2 with this test
> release in some of your web pages
>3. If something is now broken, please submit a ticket letting us
> know what happened. The more specific you can be, the better (demos or
> test cases are highly desired).
>http://dev.jquery.com/newticket
>
> Note: Pay special attention to Events, Selectors, and Animations;
> significant changes happened in all three of those areas, so if
> there's any place where a regression is possible, it would be more
> likely to occur in there.
>
> Once we're confident that there's no new bugs, we'll be releasing
> jQuery 1.1.3 fully (hopefully some time this week).
>
> Thanks everyone!
>
> --John



[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread Glen Lipka

Just to see, I swapped our 1.1.2 and put in the link you had above.
It broke the Tabs plugin.
http://www.marketo.com/about/contact.php

Also, my RSS problem previously posted.
Firefox still worked both, but now IE couldn't load either one.
http://www.marketo.com/rsstest.htm

I can put up sample pages if you need that include the newer jQuery.

Glen

PS.  Just launched the site this hour.  (http:/www.marketo.com) using a
bunch of jQuery, Tabs Plugin, and Validation Plugin.


On 5/20/07, John Resig <[EMAIL PROTECTED]> wrote:



Hi Everyone -

A test build of the upcoming 1.1.3 release is ready for everyone to
try. We need to be super-sure that there haven't been any regressions
in this release, and in order to do that we'd like you to download
this alpha release and try it in place of jQuery 1.1.2 (wherever you
may be using it).

Download the test release:
* jQuery 1.1.3a (Uncompressed, Test Release)
   http://code.jquery.com/jquery-1.1.3a.js

Here's what you can do to help:

   1. Download the test release of jQuery 1.1.3
   2. Temporarily replace your copy of jQuery 1.1.2 with this test
release in some of your web pages
   3. If something is now broken, please submit a ticket letting us
know what happened. The more specific you can be, the better (demos or
test cases are highly desired).
   http://dev.jquery.com/newticket

Note: Pay special attention to Events, Selectors, and Animations;
significant changes happened in all three of those areas, so if
there's any place where a regression is possible, it would be more
likely to occur in there.

Once we're confident that there's no new bugs, we'll be releasing
jQuery 1.1.3 fully (hopefully some time this week).

Thanks everyone!

--John



[jQuery] Re: Binding a click event

2007-05-20 Thread MikeR

It's not unbinding the click for me when I don't return false. I put
the 'unbind' in there in the first place because if the function gets
called again (that does the event binding)... I don't want the event
handler to execute 2, 3, 4, 5... etc times instead of only once.

Thanks again folks! =)

On May 20, 6:25 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote:
> with this changes works
>
>  $('body').unbind('click').click(function(event) {
>if($(event.target).is('#test')) { alert("Returning..");
> return true; }
>
>// Do whatever here.
>alert("Would perform some action.");
>return false;
>});
>
> couze we use the unbind function for that we need return false when
> the click is in body or will unbind the click for the body ;D
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Brandon, very good! Much appreciated!! =) I had to put "event" as a
> > parameter inside of the function() {...} snippet, but yes.. that is
> > *exactly* what I was looking for.
>
> > Here is the test code in case anybody else happens to run into this
> > problem and needs a solution:
>
> > 
> > 
> > 
> > http://labs.twerq.com/
> > jquery.pack.js">
> > 
> > $(document).ready(function() {
> > $('body').unbind('click').click(function(event) {
> > if($(event.target).is('#test')) { alert("Returning.."); 
> > return
> > false; }
>
> > // Do whatever here.
> > alert("Would perform some action.");
> > });
> > });
> > 
> > 
> > 
>
> > [x]
>
> > 
> > 
>
> > On May 20, 5:50 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> > > I would just check the event.target to see if it originated from the 
> > > image.
>
> > > $('body').bind('click', function() {
> > > if ( $(event.target).is('#someId') ) return; // short-circuit
> > > // continue on to hide div
>
> > > });
>
> > > --
> > > Brandon Aaron
>
> > > On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
> > > > Just a quick question =).
>
> > > > I want to bind an event handler to "body" so that whenever someone
> > > > clicks anywhere on the body, a DIV disappears. However, there is a
> > > > specific graphic (that has an id) that I need to be ignored in that
> > > > click handler. I haven't been able to come up with an elegant solution
> > > > and was hoping someone here may have some advice.
>
> > > > I've tried something along the lines of: $
> > > > ('body').not('#someid').unbind('click').click(function() { /* code
> > > > */ });
>
> > > > But it does not work. Any thoughts?
>
> --
>
> []´s Jeanwww.suissa.info
>
>Ethereal Agencywww.etherealagency.com



[jQuery] Re: Help Test jQuery 1.1.3

2007-05-20 Thread [EMAIL PROTECTED]

ohh me goodies, will try. thanks for the heads up

cheers
-Nilesh

On May 20, 9:29 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> Hi Everyone -
>
> A test build of the upcoming 1.1.3 release is ready for everyone to
> try. We need to be super-sure that there haven't been any regressions
> in this release, and in order to do that we'd like you to download
> this alpha release and try it in place of jQuery 1.1.2 (wherever you
> may be using it).
>
> Download the test release:
>  * jQuery 1.1.3a (Uncompressed, Test Release)
>http://code.jquery.com/jquery-1.1.3a.js
>
> Here's what you can do to help:
>
>1. Download the test release of jQuery 1.1.3
>2. Temporarily replace your copy of jQuery 1.1.2 with this test
> release in some of your web pages
>3. If something is now broken, please submit a ticket letting us
> know what happened. The more specific you can be, the better (demos or
> test cases are highly desired).
>http://dev.jquery.com/newticket
>
> Note: Pay special attention to Events, Selectors, and Animations;
> significant changes happened in all three of those areas, so if
> there's any place where a regression is possible, it would be more
> likely to occur in there.
>
> Once we're confident that there's no new bugs, we'll be releasing
> jQuery 1.1.3 fully (hopefully some time this week).
>
> Thanks everyone!
>
> --John



[jQuery] Help Test jQuery 1.1.3

2007-05-20 Thread John Resig


Hi Everyone -

A test build of the upcoming 1.1.3 release is ready for everyone to
try. We need to be super-sure that there haven't been any regressions
in this release, and in order to do that we'd like you to download
this alpha release and try it in place of jQuery 1.1.2 (wherever you
may be using it).

Download the test release:
* jQuery 1.1.3a (Uncompressed, Test Release)
  http://code.jquery.com/jquery-1.1.3a.js

Here's what you can do to help:

  1. Download the test release of jQuery 1.1.3
  2. Temporarily replace your copy of jQuery 1.1.2 with this test
release in some of your web pages
  3. If something is now broken, please submit a ticket letting us
know what happened. The more specific you can be, the better (demos or
test cases are highly desired).
  http://dev.jquery.com/newticket

Note: Pay special attention to Events, Selectors, and Animations;
significant changes happened in all three of those areas, so if
there's any place where a regression is possible, it would be more
likely to occur in there.

Once we're confident that there's no new bugs, we'll be releasing
jQuery 1.1.3 fully (hopefully some time this week).

Thanks everyone!

--John


[jQuery] RSS Feed trouble in IE (bug?)

2007-05-20 Thread Glen Lipka

Working off this sample:
http://erikandcolleen.com/erik/projects/jquery/rss/

My sample page:
http://www.marketo.com/rsstest.htm

My feed is formatted atom from Feedburner.  The works fine in Firefox.
IE6/7 gives no love.

It can't find anything, which is wierd because it's not doing anything
particularly special.  Is this a bug?

Thanks,

Glen


[jQuery] Re: Catching events when jQuery fires

2007-05-20 Thread S. Robert James

And the problem remains - you don't know if the event return true or
false.

How do other people deal with this issue? To me, it seems like a
serious limitation: you can't truly simulate events, because
validating callbacks will be bypassed.

On May 20, 6:03 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Emil Ivanov wrote:
> > Try
>
> > $('form').trigger('submit');
>
> >http://docs.jquery.com/Events#trigger.28_type.2C_data_.29
>
> .trigger('submit') is just the same as calling submit() with no arguments.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de



[jQuery] Re: Color Label on Form Validation Error

2007-05-20 Thread Jean Nascimento


and if he find for error class and subistitute the label class for
some label_error_class ???



On 5/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:


Emil Ivanov wrote:
> Using the errorPlacement event/callback you can place the label
> whereever you want. It's automatically generated with class="error" so
> you can apply styling to it.
>
That isn't what he asked for:
>> Please don't mistake this as a question about the error messaging, as
>> that's working just fine. But I also want to add that same error class
>> to the label of the failed input.
--
Jörn Zaefferer

http://bassistance.de





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


with this changes works

$('body').unbind('click').click(function(event) {
  if($(event.target).is('#test')) { alert("Returning..");
return true; }

  // Do whatever here.
  alert("Would perform some action.");
   return false;
  });

couze we use the unbind function for that we need return false when
the click is in body or will unbind the click for the body ;D

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:


Brandon, very good! Much appreciated!! =) I had to put "event" as a
parameter inside of the function() {...} snippet, but yes.. that is
*exactly* what I was looking for.

Here is the test code in case anybody else happens to run into this
problem and needs a solution:





http://labs.twerq.com/
jquery.pack.js">

$(document).ready(function() {
$('body').unbind('click').click(function(event) {
if($(event.target).is('#test')) { alert("Returning.."); return
false; }

// Do whatever here.
alert("Would perform some action.");
});
});




[x]





On May 20, 5:50 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> I would just check the event.target to see if it originated from the image.
>
> $('body').bind('click', function() {
> if ( $(event.target).is('#someId') ) return; // short-circuit
> // continue on to hide div
>
> });
>
> --
> Brandon Aaron
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just a quick question =).
>
> > I want to bind an event handler to "body" so that whenever someone
> > clicks anywhere on the body, a DIV disappears. However, there is a
> > specific graphic (that has an id) that I need to be ignored in that
> > click handler. I haven't been able to come up with an elegant solution
> > and was hoping someone here may have some advice.
>
> > I've tried something along the lines of: $
> > ('body').not('#someid').unbind('click').click(function() { /* code
> > */ });
>
> > But it does not work. Any thoughts?





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] What is the difference?

2007-05-20 Thread Jean Nascimento


What is the difference to do .click(function(){ // }) or
.bind("click",function(){ // })?

is someone faster? secure? i always use click() is the right??
--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread MikeR

Brandon, very good! Much appreciated!! =) I had to put "event" as a
parameter inside of the function() {...} snippet, but yes.. that is
*exactly* what I was looking for.

Here is the test code in case anybody else happens to run into this
problem and needs a solution:





http://labs.twerq.com/
jquery.pack.js">

$(document).ready(function() {
$('body').unbind('click').click(function(event) {
if($(event.target).is('#test')) { alert("Returning.."); return
false; }

// Do whatever here.
alert("Would perform some action.");
});
});




[x]





On May 20, 5:50 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> I would just check the event.target to see if it originated from the image.
>
> $('body').bind('click', function() {
> if ( $(event.target).is('#someId') ) return; // short-circuit
> // continue on to hide div
>
> });
>
> --
> Brandon Aaron
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just a quick question =).
>
> > I want to bind an event handler to "body" so that whenever someone
> > clicks anywhere on the body, a DIV disappears. However, there is a
> > specific graphic (that has an id) that I need to be ignored in that
> > click handler. I haven't been able to come up with an elegant solution
> > and was hoping someone here may have some advice.
>
> > I've tried something along the lines of: $
> > ('body').not('#someid').unbind('click').click(function() { /* code
> > */ });
>
> > But it does not work. Any thoughts?



[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


I need to study more about the parameters of Jquery, i dont know the most LOL

On 5/20/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:


I would just check the event.target to see if it originated from the image.

$('body').bind('click', function() {
if ( $(event.target).is('#someId') ) return; // short-circuit
// continue on to hide div
});

--
Brandon Aaron

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
> Just a quick question =).
>
> I want to bind an event handler to "body" so that whenever someone
> clicks anywhere on the body, a DIV disappears. However, there is a
> specific graphic (that has an id) that I need to be ignored in that
> click handler. I haven't been able to come up with an elegant solution
> and was hoping someone here may have some advice.
>
> I've tried something along the lines of: $
> ('body').not('#someid').unbind('click').click(function() { /* code
> */ });
>
> But it does not work. Any thoughts?
>
>




--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Radio button .click() difficulty

2007-05-20 Thread Brandon Aaron


I'm getting a 404 on your test page.

--
Brandon Aaron


On 5/18/07, SamCKayak <[EMAIL PROTECTED]> wrote:


Here's a prototype of a quiz form...

http://trainthetrainers.net/test.htm

I've run into a problem with the .check() function with radio
buttons...

On all the quiz choices, clicking anywhere on the question EXCEPT THE
RADIO BUTTON, will dynamically check the radio button.  Clicking on
the radio button changes the choice class which indicates the jQuery
statement ran properly, but the radio button remains unchecked, while
any other radio button is not reset!

No JavaScript errors are indicated in FireBug.  This behavior suggests
that the browser may take the click of the radio button as a toggle
request, resetting the dynamic "check" attribute set by jQuery.  Could
be... but then wouldn't that reset other radio buttons in the same
"name" group?

Any ideas, corrections or coments appreciated.

Sam




[jQuery] Re: Binding a click event

2007-05-20 Thread Brandon Aaron


I would just check the event.target to see if it originated from the image.

$('body').bind('click', function() {
   if ( $(event.target).is('#someId') ) return; // short-circuit
   // continue on to hide div
});

--
Brandon Aaron

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:


Just a quick question =).

I want to bind an event handler to "body" so that whenever someone
clicks anywhere on the body, a DIV disappears. However, there is a
specific graphic (that has an id) that I need to be ignored in that
click handler. I haven't been able to come up with an elegant solution
and was hoping someone here may have some advice.

I've tried something along the lines of: $
('body').not('#someid').unbind('click').click(function() { /* code
*/ });

But it does not work. Any thoughts?




[jQuery] The best practice to do this

2007-05-20 Thread Jean Nascimento


How i make a list in a textarea? My ideia is do a script to when the
user press ENTER in ah description textarea, this event create another
row list. For my textarea look like some to do list.

Thanks for the ideas ;D

--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


try $("body").children("#someid").unbind("click");

or

$("body").filter("#someid, :first").unbind("click");

someone have to work LOL

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:


Not sure I quite follow, sorry. The example you provided also did not
work. IE throws an error "object does not support this property or
method."

On May 20, 5:21 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote:
> $('body').not('#someid').unbind('click').click(function() { /* code
> */ });
>
> with this u remove the #someid from all body elements so this unbind not work
>
> i can test
>
> $('body').children().is('#someid').unbind('click').click(function() { /* code
> */ });
>
> if the unbind().click() sequence works, u can test
> $('body').children().is('#someid').unbind('click');
> $('body').children().is('#someid').click(function() { /* code
> */ });
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Just a quick question =).
>
> > I want to bind an event handler to "body" so that whenever someone
> > clicks anywhere on the body, a DIV disappears. However, there is a
> > specific graphic (that has an id) that I need to be ignored in that
> > click handler. I haven't been able to come up with an elegant solution
> > and was hoping someone here may have some advice.
>
> > I've tried something along the lines of: $
> > ('body').not('#someid').unbind('click').click(function() { /* code
> > */ });
>
> > But it does not work. Any thoughts?
>
> --
>
> []´s Jeanwww.suissa.info
>
>Ethereal Agencywww.etherealagency.com





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread MikeR

Not sure I quite follow, sorry. The example you provided also did not
work. IE throws an error "object does not support this property or
method."

On May 20, 5:21 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote:
> $('body').not('#someid').unbind('click').click(function() { /* code
> */ });
>
> with this u remove the #someid from all body elements so this unbind not work
>
> i can test
>
> $('body').children().is('#someid').unbind('click').click(function() { /* code
> */ });
>
> if the unbind().click() sequence works, u can test
> $('body').children().is('#someid').unbind('click');
> $('body').children().is('#someid').click(function() { /* code
> */ });
>
> On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Just a quick question =).
>
> > I want to bind an event handler to "body" so that whenever someone
> > clicks anywhere on the body, a DIV disappears. However, there is a
> > specific graphic (that has an id) that I need to be ignored in that
> > click handler. I haven't been able to come up with an elegant solution
> > and was hoping someone here may have some advice.
>
> > I've tried something along the lines of: $
> > ('body').not('#someid').unbind('click').click(function() { /* code
> > */ });
>
> > But it does not work. Any thoughts?
>
> --
>
> []´s Jeanwww.suissa.info
>
>Ethereal Agencywww.etherealagency.com



[jQuery] Re: Radio button .click() difficulty

2007-05-20 Thread Jean Nascimento


Your test page is off
put your code here please, only jquery code ;D


On 5/18/07, SamCKayak <[EMAIL PROTECTED]> wrote:


Here's a prototype of a quiz form...

http://trainthetrainers.net/test.htm

I've run into a problem with the .check() function with radio
buttons...

On all the quiz choices, clicking anywhere on the question EXCEPT THE
RADIO BUTTON, will dynamically check the radio button.  Clicking on
the radio button changes the choice class which indicates the jQuery
statement ran properly, but the radio button remains unchecked, while
any other radio button is not reset!

No JavaScript errors are indicated in FireBug.  This behavior suggests
that the browser may take the click of the radio button as a toggle
request, resetting the dynamic "check" attribute set by jQuery.  Could
be... but then wouldn't that reset other radio buttons in the same
"name" group?

Any ideas, corrections or coments appreciated.

Sam





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


i can test

*I want to say

YOU can test
=p

On 5/20/07, Jean Nascimento <[EMAIL PROTECTED]> wrote:

$('body').not('#someid').unbind('click').click(function() { /* code
*/ });

with this u remove the #someid from all body elements so this unbind not work

i can test

$('body').children().is('#someid').unbind('click').click(function() { /* code
*/ });


if the unbind().click() sequence works, u can test
$('body').children().is('#someid').unbind('click');
$('body').children().is('#someid').click(function() { /* code
*/ });

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:
>
> Just a quick question =).
>
> I want to bind an event handler to "body" so that whenever someone
> clicks anywhere on the body, a DIV disappears. However, there is a
> specific graphic (that has an id) that I need to be ignored in that
> click handler. I haven't been able to come up with an elegant solution
> and was hoping someone here may have some advice.
>
> I've tried something along the lines of: $
> ('body').not('#someid').unbind('click').click(function() { /* code
> */ });
>
> But it does not work. Any thoughts?
>
>


--

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com




--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Binding a click event

2007-05-20 Thread Jean Nascimento


$('body').not('#someid').unbind('click').click(function() { /* code
*/ });

with this u remove the #someid from all body elements so this unbind not work

i can test

$('body').children().is('#someid').unbind('click').click(function() { /* code
*/ });


if the unbind().click() sequence works, u can test
$('body').children().is('#someid').unbind('click');
$('body').children().is('#someid').click(function() { /* code
*/ });

On 5/20/07, MikeR <[EMAIL PROTECTED]> wrote:


Just a quick question =).

I want to bind an event handler to "body" so that whenever someone
clicks anywhere on the body, a DIV disappears. However, there is a
specific graphic (that has an id) that I need to be ignored in that
click handler. I haven't been able to come up with an elegant solution
and was hoping someone here may have some advice.

I've tried something along the lines of: $
('body').not('#someid').unbind('click').click(function() { /* code
*/ });

But it does not work. Any thoughts?





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Binding a click event

2007-05-20 Thread MikeR

Just a quick question =).

I want to bind an event handler to "body" so that whenever someone
clicks anywhere on the body, a DIV disappears. However, there is a
specific graphic (that has an id) that I need to be ignored in that
click handler. I haven't been able to come up with an elegant solution
and was hoping someone here may have some advice.

I've tried something along the lines of: $
('body').not('#someid').unbind('click').click(function() { /* code
*/ });

But it does not work. Any thoughts?



[jQuery] Re: consume click event

2007-05-20 Thread Jean Nascimento


But if u only want to collapse and expand, why dont use u  the toggle function?

(sorry for my poor english)

On 5/19/07, oscar esp <[EMAIL PROTECTED]> wrote:


I need to change click event for "each click" I have nex code:

function collapseSection(ID_SECCION)
{
jQuery("#HS_"+ID_SECCION).bind("click",function()
{expandSection(ID_SECCION);return false;});
}

function expandSection(ID_SECCION)
{

jQuery("#HS_"+ID_SECCION).bind("click",function()
{collapseSection(ID_SECCION);return false;});
}

Then I have a TD with click event:
< td click="loadDiv(1)">

function loadDiv(ID_SECCION)
{
jQuery("#HS_"+ID_SECCION).bind("click",function()
{collapseSection(ID_SECCION);return false;});
}


Then If I execute and click on td first time begins a loop :
collapseSection expandSection...

Seems that click event is not consumed and then every time that I bind
"click" the click is executed

I don't know how stop the loop!!!

Many thanks





--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com


[jQuery] Re: Catching events when jQuery fires

2007-05-20 Thread Jörn Zaefferer


Emil Ivanov wrote:

Try

$('form').trigger('submit');

http://docs.jquery.com/Events#trigger.28_type.2C_data_.29
  

.trigger('submit') is just the same as calling submit() with no arguments.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Color Label on Form Validation Error

2007-05-20 Thread Jörn Zaefferer


Emil Ivanov wrote:

Using the errorPlacement event/callback you can place the label
whereever you want. It's automatically generated with class="error" so
you can apply styling to it.
  

That isn't what he asked for:

Please don't mistake this as a question about the error messaging, as
that's working just fine. But I also want to add that same error class
to the label of the failed input.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Color Label on Form Validation Error

2007-05-20 Thread Emil Ivanov

$('#publish_form').validate({
event: 'blur',
rules: {
number_field: {
required: true,
number: true
} // You know what to put here
},
errorPlacement: function (error, element) {

error.insertBefore(element.parents('div.pair_row').find('div.info'));
}
});

Using the errorPlacement event/callback you can place the label
whereever you want. It's automatically generated with class="error" so
you can apply styling to it.

Regards,
Emil Ivanov

On May 20, 10:59 pm, Scott Moore <[EMAIL PROTECTED]> wrote:
> Not sure if I'm just missing this or what, but I'm using Jörn's
> wonderful form validation plug-in and can't seem to find how to add an
> error class to the label next to the input field that didn't
> validate.
>
> Please don't mistake this as a question about the error messaging, as
> that's working just fine. But I also want to add that same error class
> to the label of the failed input.
>
> Any thoughts?



[jQuery] Re: Color Label on Form Validation Error

2007-05-20 Thread Jörn Zaefferer


Scott Moore wrote:

Not sure if I'm just missing this or what, but I'm using Jörn's
wonderful form validation plug-in and can't seem to find how to add an
error class to the label next to the input field that didn't
validate.

Please don't mistake this as a question about the error messaging, as
that's working just fine. But I also want to add that same error class
to the label of the failed input.
  
With those hook available, you could use the showErrors-option to color 
the labels and defer the rest by calling defaultShowErrors. Take a look 
at this demo for reference: 
http://jquery.bassistance.de/validate/demo-test/custom-methods-demo.html 
It uses the showErrors-option to display errors both in an alert (yuk) 
and via the error labels (by calling validator.defaultShowErrors() at 
the end).


Please give this a try and let me know if it works for you. Anyhow it 
would be very useful if you could post some test/example code, that 
would help a lot to provide a cleaner solution.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Catching events when jQuery fires

2007-05-20 Thread Emil Ivanov

Try

$('form').trigger('submit');

http://docs.jquery.com/Events#trigger.28_type.2C_data_.29

On May 20, 11:40 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> I tried doing this manually:
>
>  if (jQuery('form').submit()) {  // fire the JavaScript event, perhaps
> to validate
>   // if true, then actually submit it
>   // BUG it's always true, even if event returns false!
>   jQuery('form')[0].submit();
>
> }
>
> Any help would be greatly appreciated - basically I want to fire the
> registered event handlers and capture their return code.
>
> On May 20, 2:15 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
>
> > One big problem I keep on running into is that event handlers don't
> > fire when the event is called via jQuery.
>
> > For instance, I want to disable submitting a form:
> >   jQuery('form').bind('submit', function() { return false; })
>
> > Works like a charm.  But, if I use jQuery then to submit the form, it
> > still does it! Likewise with onclick events, etc.  Is there any
> > solution?



[jQuery] Initial images not showing up in IE6

2007-05-20 Thread mpmchugh


I'm having a problem. Initial images are not showing up in IE until a
millisecond before autoscroll advances, or if manual, until you click the
forward arrow.

This is working fine in Firefox and Safari.

I'm using background images in the li for drop shadows, but it doesn't work
without them either.

http://whitestone.df-dev.com/

(orange box in lower right)

Any idea why?

Thanks,
Michael
-- 
View this message in context: 
http://www.nabble.com/Initial-images-not-showing-up-in-IE6-tf3780737.html#a10692188
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Re: Catching events when jQuery fires

2007-05-20 Thread S. Robert James

I tried doing this manually:

 if (jQuery('form').submit()) {  // fire the JavaScript event, perhaps
to validate
  // if true, then actually submit it
  // BUG it's always true, even if event returns false!
  jQuery('form')[0].submit();
}

Any help would be greatly appreciated - basically I want to fire the
registered event handlers and capture their return code.

On May 20, 2:15 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> One big problem I keep on running into is that event handlers don't
> fire when the event is called via jQuery.
>
> For instance, I want to disable submitting a form:
>   jQuery('form').bind('submit', function() { return false; })
>
> Works like a charm.  But, if I use jQuery then to submit the form, it
> still does it! Likewise with onclick events, etc.  Is there any
> solution?



[jQuery] Color Label on Form Validation Error

2007-05-20 Thread Scott Moore

Not sure if I'm just missing this or what, but I'm using Jörn's
wonderful form validation plug-in and can't seem to find how to add an
error class to the label next to the input field that didn't
validate.

Please don't mistake this as a question about the error messaging, as
that's working just fine. But I also want to add that same error class
to the label of the failed input.

Any thoughts?



[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

packer wants semis everywhere!!!

if (x==1) y= 1;
else y =2;


But I did get my code packed thanks!!!



On 5/20/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


Well D'oh! I should have tried that!!!

On 5/20/07, Kelvin Luck <[EMAIL PROTECTED]> wrote:
>
>
> Ⓙⓐⓚⓔ wrote:
> > thanks! I thought semis were just required when removing linebreaks
> > wouldn't work... I searched the 'net for a definitive rule, I just
> found
> > the regular work-arounds, (semis all over).
> >
> > I'm prepping some code to be packed. Do I have to cat it together with
>
> > the jquery-lite first? can I pack a file on it's own?
> >
> No worries :) I'm not sure I've seen definitive rules anywhere either, I
> guess it's just before any line break that is implicitly marking the end
>
> of an expression...
>
> I've not been packing with the jQuery build scripts, I just use the
> online version of Packer:
> http://dean.edwards.name/packer/
>
> Hope that helps,
>
> Kelvin :)
>



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





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


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

Well D'oh! I should have tried that!!!

On 5/20/07, Kelvin Luck <[EMAIL PROTECTED]> wrote:



Ⓙⓐⓚⓔ wrote:
> thanks! I thought semis were just required when removing linebreaks
> wouldn't work... I searched the 'net for a definitive rule, I just found
> the regular work-arounds, (semis all over).
>
> I'm prepping some code to be packed. Do I have to cat it together with
> the jquery-lite first? can I pack a file on it's own?
>
No worries :) I'm not sure I've seen definitive rules anywhere either, I
guess it's just before any line break that is implicitly marking the end
of an expression...

I've not been packing with the jQuery build scripts, I just use the
online version of Packer:
http://dean.edwards.name/packer/

Hope that helps,

Kelvin :)





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


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


Ⓙⓐⓚⓔ wrote:
thanks! I thought semis were just required when removing linebreaks 
wouldn't work... I searched the 'net for a definitive rule, I just found 
the regular work-arounds, (semis all over).


I'm prepping some code to be packed. Do I have to cat it together with 
the jquery-lite first? can I pack a file on it's own?


No worries :) I'm not sure I've seen definitive rules anywhere either, I 
guess it's just before any line break that is implicitly marking the end 
of an expression...


I've not been packing with the jQuery build scripts, I just use the 
online version of Packer:

http://dean.edwards.name/packer/

Hope that helps,

Kelvin :)


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


Hi,

I've added support for this into the date picker:
http://dev.jquery.com/changeset/1933#file2

As you can see, you can now pass a hoverClass to $().datePicker or 
$().renderCalendar which is added to each TD of the calendar as you 
hover over it. This defaults to dp-hover. You can also pass false if you 
don't want any class added to the TDs.


Hope that helps,

Kelvin :)

tlphipps wrote:

Another issue I've uncovered is related to the :hover effects.  In
your original date picker you were obviously using s because the
hover effect worked correctly in IE.  However, hovering doesn't work
in v2 because of IE's quirkiness.

Anybody have any input on how to get the :hover effect back in IE with
v2?



[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

thanks! I thought semis were just required when removing linebreaks wouldn't
work... I searched the 'net for a definitive rule, I just found the regular
work-arounds, (semis all over).

I'm prepping some code to be packed. Do I have to cat it together with the
jquery-lite first? can I pack a file on it's own?

On 5/20/07, Kelvin Luck <[EMAIL PROTECTED]> wrote:



Hi Jake,

I think it needs them in any situation where a linebreak is being used
to indicate the end of an expression (as when the linebreaks are removed
this implicit end of expression is lost). You can see the changes I had
to make to get it to work with packer here:

http://dev.jquery.com/changeset/1931

Cheers,

Kelvin :)

Ⓙⓐⓚⓔ wrote:
> Kelvin, I thought packer only needed the final ; ... do you know the
> rules? is it as simple as making it work if you remove all linefeeds?
>
>
> On 5/20/07, *Kelvin Luck * <[EMAIL PROTECTED]
> > wrote:
>
>
> tlphipps wrote:
>  > Sorry, one more thing.  I can't get a clean compressed/packed
version
>  > of v2.  Has anybody else had any luck packing this?
>  >
> Hi,
>
> I've just added some missing semicolons to the date picker
> sourcecode so
> that you can now pack it successfully with Dean Edwards' Packer,
>
> Cheers,
>
> Kelvin :)
>
>
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





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


[jQuery] Re: Problems with Selectable Plugin

2007-05-20 Thread Richard Worth

On 5/20/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:



I have seven selectables on my page.
Only the first is reacting...
the code:
http://rafb.net/p/uYWmsK65.nln.html



I'm not sure what the source of the problem is, but it looks like a
dependency issue. When running interface.all.js it works. When running
interface.selectables.js, it's as you describe.

Note: I'm using
Firefox 2
jQuery 1.1.2
Interface 1.2

- Richard D. Worth


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


Hi Jake,

I think it needs them in any situation where a linebreak is being used 
to indicate the end of an expression (as when the linebreaks are removed 
this implicit end of expression is lost). You can see the changes I had 
to make to get it to work with packer here:


http://dev.jquery.com/changeset/1931

Cheers,

Kelvin :)

Ⓙⓐⓚⓔ wrote:
Kelvin, I thought packer only needed the final ; ... do you know the 
rules? is it as simple as making it work if you remove all linefeeds?



On 5/20/07, *Kelvin Luck * <[EMAIL PROTECTED] 
> wrote:



tlphipps wrote:
 > Sorry, one more thing.  I can't get a clean compressed/packed version
 > of v2.  Has anybody else had any luck packing this?
 >
Hi,

I've just added some missing semicolons to the date picker
sourcecode so
that you can now pack it successfully with Dean Edwards' Packer,

Cheers,

Kelvin :)




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


[jQuery] Catching events when jQuery fires

2007-05-20 Thread S. Robert James

One big problem I keep on running into is that event handlers don't
fire when the event is called via jQuery.

For instance, I want to disable submitting a form:
  jQuery('form').bind('submit', function() { return false; })

Works like a charm.  But, if I use jQuery then to submit the form, it
still does it! Likewise with onclick events, etc.  Is there any
solution?



[jQuery] Problems with Selectable Plugin

2007-05-20 Thread Utrabo

I have seven selectables on my page.
Only the first is reacting...
the code:
http://rafb.net/p/uYWmsK65.nln.html

Thanks,
Guilherme Utrabo



[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Ⓙⓐⓚⓔ

Kelvin, I thought packer only needed the final ; ... do you know the rules?
is it as simple as making it work if you remove all linefeeds?


On 5/20/07, Kelvin Luck <[EMAIL PROTECTED]> wrote:



tlphipps wrote:
> Sorry, one more thing.  I can't get a clean compressed/packed version
> of v2.  Has anybody else had any luck packing this?
>
Hi,

I've just added some missing semicolons to the date picker sourcecode so
that you can now pack it successfully with Dean Edwards' Packer,

Cheers,

Kelvin :)





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


[jQuery] Re: datePicker v2 beta

2007-05-20 Thread Kelvin Luck


tlphipps wrote:

Sorry, one more thing.  I can't get a clean compressed/packed version
of v2.  Has anybody else had any luck packing this?


Hi,

I've just added some missing semicolons to the date picker sourcecode so 
that you can now pack it successfully with Dean Edwards' Packer,


Cheers,

Kelvin :)


[jQuery] Re: Chaining doesn't work

2007-05-20 Thread Wizzud


You don't have any chain to continue with after the attr() call!
You might try this instead ...

$('#image_holder').fadeOut(
"slow"
  , function(){
  $('#myImage').attr('src',imageid[activeImage]);
  $('#image_holder').fadeIn("normal");
}
  );



juliandormon wrote:
> 
> Thanks for your help. Here's what I'd like to do:
> 
> Fade image out, then swap it's src, then fade the new image back in.
> 
> I can't seem to continue the chain after I swap the image for some - no
> errors either.
> 
> 
> Here's my code:
> $('#image_holder').fadeOut("slow",
> function(){$('#myImage').attr('src',imageid[activeImage],
> function(){$('#image_holder').fadeIn("normal")} );});
> 

-- 
View this message in context: 
http://www.nabble.com/Chaining-doesn%27t-work-tf3189472s15494.html#a10707093
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: datePicker v2: setStartDate() is not a function?

2007-05-20 Thread Kelvin Luck


Chris W. Parker wrote:

Hello,
 
I'm trying to implement datePicker v2 but Firebug says

"$('#date').setStartDate is not a function". I must be missing something
simple because I can click "calendar" and have the calendar appear. So
it works, just not completely. Any ideas where I'm going wrong?


...


// datePicker v2 stuff
Date.firstDayOfWeek = 7;
Date.format = 'mm/dd/yyy';

$(document).ready(function () {

// Kelvin Luck's datePicker v2
$('#date').datePicker();
$('#date').setStartDate('01/01/2006');

});


Hi,

It seems like you are looking for dpSetStartDate. In fact, to achieve 
what the code above does you can do this:


$('#date').datePicker({startDate:'01/01/2006'});

If you need to changed the start date after the date picker has been 
initialised for any reason (like for example in my "Start and end date 
pickers" example) then you will need to use dpSetStartDate like so:


$('#date').dpSetStartDate('01/01/2006');

Since the date picker methods are added to all jQuery methods I thought 
it polite to prefix them to avoid naming collisions with other plugins.


Ahh - I've just noticed that there was a typo in the documentation which 
is maybe why you got confused... I just fixed it ( 
http://dev.jquery.com/changeset/1930 ) and the documentation ( 
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/documentation.html 
) is now correct,


Thanks,

Kelvin :)


[jQuery] Re: random list item

2007-05-20 Thread Ⓙⓐⓚⓔ

jQuery.fn.randomOne=function(){
   return this.eq( Math.floor(Math.random()*this.length))
}


hidden away in
http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/jquery-traverseDir.js




On 5/20/07, Remy Sharp <[EMAIL PROTECTED]> wrote:



Hi Domnik,

There's a few ways, but this way should also do the trick (assuming
you're targeting an LI):

$('li:nth(' + parseInt(Math.random() * $('li').length) + ')').click();

Let us know how you get on.

On May 20, 4:14 pm, MrNase <[EMAIL PROTECTED]> wrote:
> I have a list with numerous list items and 'onclick' I want to have
> one randomly selected item.
>
> How can I do this the jQuery way?
>
> dominik





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


[jQuery] Re: random list item

2007-05-20 Thread Remy Sharp

Hi Domnik,

There's a few ways, but this way should also do the trick (assuming
you're targeting an LI):

$('li:nth(' + parseInt(Math.random() * $('li').length) + ')').click();

Let us know how you get on.

On May 20, 4:14 pm, MrNase <[EMAIL PROTECTED]> wrote:
> I have a list with numerous list items and 'onclick' I want to have
> one randomly selected item.
>
> How can I do this the jQuery way?
>
> dominik



[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread Jörn Zaefferer


Kush Murod wrote:

http://khurshid.com/jquery/iepnghack/

Your feedback is appreciated
I've added your plugin to the list: 
http://docs.jquery.com/Plugins#jQuery_Extensions
Feel free to change title and description, I'm sure you can come up with 
something better. I've added "(pngfix/pnghack)" to improve the results a 
textsearch yields on that page.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] NEWS: More jQuery Articles

2007-05-20 Thread Rey Bango


New:
http://www.dzone.com/r/jquery_tablefilter_plugin_simple_multicolumn_sort.html
http://www.dzone.com/r/jquery_for_programmers_part_1.html

Oldies but Goodies:
http://www.dzone.com/r/easy_ajax_with_jquery.html
http://www.dzone.com/r/autocomplete_field_with_jquery_code_explained.html
http://www.dzone.com/r/jquery_on_ibm_developerworks.html

Enjoy...

Rey...
jQuery Project
Evangelism Team


[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread Jörn Zaefferer


Kush Murod wrote:

Hi guys,
I've updated the plugin:

* renamed it to pngfix();

* added new function to reset applied hack pngunfix();

http://khurshid.com/jquery/iepnghack/

Your feedback is appreciated
Ah, great, thanks for the update and renaming. Now I can replace 
tooltip's internal pngfix stuff with your plugin and make it optional.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: regular expression question

2007-05-20 Thread Jörn Zaefferer


Kush Murod wrote:

If I have filter for example:
var filter = 
"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='images/blah.gif')"; 


I would like to extract src value which is images/blah.gif

This seems to do the trick pretty well:

var src = filter.match(/src=["'](.+?)["']/i)[1];

Tested with your example.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] random list item

2007-05-20 Thread MrNase

I have a list with numerous list items and 'onclick' I want to have
one randomly selected item.

How can I do this the jQuery way?


dominik



[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread Kush Murod

Hi guys,
I've updated the plugin:

   * renamed it to pngfix();

   * added new function to reset applied hack pngunfix();

http://khurshid.com/jquery/iepnghack/

Your feedback is appreciated
--Kush

Jörn Zaefferer wrote, On 5/19/2007 9:24 PM:


Devin wrote:

This is a jQuery plugin I created to adapt pngfix.js from Bob Osola to
use the jQuery framework.
  

I guess you haven't seen this yet: http://khurshid.com/jquery/iepnghack/
While I still don't like the method-names, I like that it is able to 
fix both img-elements and background-images.


I think its time to get one-and-for-all png fix solution out the door, 
put it in the jQuery repository and on the plugin list.




[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread Brandon Aaron


In addition to that with some PNGs, if you use the zoom feature in IE7
the same black outline will show up.

--
Brandon Aaron

On 5/20/07, Glen Lipka <[EMAIL PROTECTED]> wrote:

If you have a PNG-24 with some transparency on it.
Then use $("img.png").fadeIn("slow")
It will get this horrible black outline where the transparency in the PNG
should be.
I can try and create an example later today.

Glen



On 5/20/07, weepy <[EMAIL PROTECTED]> wrote:
>
> what exactly are the 'IE7' issues ?
>
> weepy
>
>
> On May 20, 12:32 am, "Brandon Aaron" < [EMAIL PROTECTED]> wrote:
> > On 5/19/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> >
> > > Ok, so is there a single jQuery plugin to include?
> > > Im starting to get confused. :)
> > > Do these fixes fix the problem in IE using FadeIn() where it becomes
black?
> >
> > > Glen
> >
> > No single best-of plugin yet and no these do not fix the IE7 issues.
> > :/  There isn't a fix for that, yet... at least not that I've come
> > across.
> >
> > --
> > Brandon Aaron
>
>




[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread Glen Lipka

If you have a PNG-24 with some transparency on it.
Then use $("img.png").fadeIn("slow")
It will get this horrible black outline where the transparency in the PNG
should be.
I can try and create an example later today.

Glen


On 5/20/07, weepy <[EMAIL PROTECTED]> wrote:



what exactly are the 'IE7' issues ?

weepy


On May 20, 12:32 am, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> On 5/19/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> > Ok, so is there a single jQuery plugin to include?
> > Im starting to get confused. :)
> > Do these fixes fix the problem in IE using FadeIn() where it becomes
black?
>
> > Glen
>
> No single best-of plugin yet and no these do not fix the IE7 issues.
> :/  There isn't a fix for that, yet... at least not that I've come
> across.
>
> --
> Brandon Aaron




[jQuery] Re: Chili 1.8 gets chainability

2007-05-20 Thread Stosh

On May 17, 4:11 pm, Andrea Ercolino <[EMAIL PROTECTED]> wrote:
> I've just released  http://notelog.com/category/chili/Chili 1.8 , which
> eventually gets a very requested feature: the mithical jQuery chainability.
> Improved speed and better examples are good news too.

Andrea,
Thanks for these great and needed improvements.  Just out of
curiosity, why use $().fn.X over jQuery.fn.X() ?  Will this have
problems if I do not have jQuery set to use the $() shortcut?

Pax,
- Stan



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] regular expression question

2007-05-20 Thread Kush Murod


Hi guys,
I have a regular expression question
Code below returns full image path if image is png:
--
var image = $$.css('backgroundImage');
if (image.match(/^url\(["'](.*\.png)["']\)$/i)) {
   image = RegExp.$1;
}
--
If I have filter for example:
var filter = 
"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='images/blah.gif')";

I would like to extract src value which is images/blah.gif
How do I do that

Thanks heaps
--Kush



[jQuery] Re: jQuery PNG Fix

2007-05-20 Thread weepy

what exactly are the 'IE7' issues ?

weepy


On May 20, 12:32 am, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> On 5/19/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> > Ok, so is there a single jQuery plugin to include?
> > Im starting to get confused. :)
> > Do these fixes fix the problem in IE using FadeIn() where it becomes black?
>
> > Glen
>
> No single best-of plugin yet and no these do not fix the IE7 issues.
> :/  There isn't a fix for that, yet... at least not that I've come
> across.
>
> --
> Brandon Aaron



[jQuery] Re: Disabling Tooltips + Tooltip Text

2007-05-20 Thread Jörn Zaefferer


DaveG wrote:


Just as an aside, the version of the tooltip library in the SVN 
repository (and the used as a download from your website) is 2.0 
Alpha. This version does not work with your demo page. You might want 
to note that on the Tooltip pages.

Thanks for the hint. I really need to make a release for that plugin.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: does not hide() when within table with

2007-05-20 Thread [EMAIL PROTECTED]

You are right, it should be:






(I use col tags to specify width for table cells)

However, the selects still fail to hide along with the row (in IE),

Best Regards,

/B.


On May 20, 2:16 am, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
> >
> >
> >
> >
>
> Maybe it was a typo, but  tags are only supposed to be on  /> tags.
>
> - Dan



[jQuery] Unable to have a selected option in list when appended, but why?

2007-05-20 Thread [EMAIL PROTECTED]

Hi there.


I hava a function which looks like this:

var insertMontNamesIntoSelect = function(selectedList, selectThis)
{
$(selectedList).empty();
var str = '';
for(var i=1; i<13; i++){
str += '';
}

$(selectedList).append(str);
}

The only thing it does is to build a selectable list of danish month
names.

My problem is that it wont select the  which has selected as
an attribute.


Januar
Februar
Marts
April
Maj
Juni
Juli
August
September
Oktober
November
December


is the code which is generated by the function. And if I cp it into a
different doc, it works just fine. Then "Maj" will be selected by
default.
But not when jQuery creates the list.

But why?