[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)

[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 =

[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

[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'

[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 =

[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

[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

[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

[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?

[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

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

[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

[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

[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

[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

[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

[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 },

[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

[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

[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,

[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

[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

[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

[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

[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

[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

[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,

[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

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

[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

[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...

[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,

[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);

[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