[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; i13; i++){
str += 'option value='+i+'';

if(i == selectThis)
str += ' selected ';

str += ''+returnMonthName(i)+'/option';
}

$(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 option which has selected as
an attribute.

select class=selectInput name=periodMonth
option value=1Januar/option
option value=2Februar/option
option value=3Marts/option
option value=4April/option
option selected= value=5Maj/option
option value=6Juni/option
option value=7Juli/option
option value=8August/option
option value=9September/option
option value=10Oktober/option
option value=11November/option
option value=12December/option
/select

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?



[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: 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] 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] 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: 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] 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:

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] 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: 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: 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] 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 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] 
mailto:[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 Ⓙⓐⓚⓔ

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]
 mailto:[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


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 as 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] 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] 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: 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] 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 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: 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] 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 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:


html
head
title/title
script language=javascript src=http://labs.twerq.com/
jquery.pack.js/script
script type=text/javascript
$(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.);
});
});
/script
/head
body

span id=test style=border: 1px solid blue;[x]/span

/body
/html


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] 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: 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] 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] 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] 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] 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 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: 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: 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: 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: 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(div align=\center\img
src=\/cake2/img/images/
loadingAnimation.gif\ //div);
$(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(div align=\center\img
src=\/cake2/img/images/loadingAnimation.gif\ //div);
   });
   $(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: 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.

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

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

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