[jQuery] radio button created using dom are not working in IE

2007-07-09 Thread vishakha sawant
Hi, I am facing a strange issue. It's regarding radio button I am using following code to generate radio button but the following code behavesdifferent for different browser. In IE it sshows all selected radio buttons and user can't deselect them. And in Mozilla it shows last button selected.

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
Glen Lipka wrote: var myString = ; $(#container .item).each(function(i){ myString = myString + , + this.id http://this.id; }); $(#myInput).val(myString); Hope this helps. Glen I like oneliners: var ids = $.map($('#container [EMAIL PROTECTED]'), function() { return this.id;

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
Klaus Hartl wrote: Glen Lipka wrote: var myString = ; $(#container .item).each(function(i){ myString = myString + , + this.id http://this.id; }); $(#myInput).val(myString); Hope this helps. Glen I like oneliners: var ids = $.map($('#container [EMAIL PROTECTED]'), function() { return

[jQuery] jquery.com not available

2007-07-09 Thread Stefan Kilp [sk-software]
jquery.com not available for me, anyone else having the same problem? Best regards, Stefan Kilp -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany.

[jQuery] Re: jquery.com not available

2007-07-09 Thread roryf
Yep, I keep getting a timed out response. On Jul 9, 9:41 am, Stefan Kilp [sk-software] [EMAIL PROTECTED] wrote: jquery.com not available for me, anyone else having the same problem? Best regards, Stefan Kilp -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED]

[jQuery] Re: JQuery - CrossBrowser? - Script not working in Firefox

2007-07-09 Thread Dan G. Switzer, II
With JQuery supposedly crossbrowser capable, I did not think the script I'm using would have any issues in Firefox. Dumb thought, perhaps. It doesn't seem to execute at all in Firefox. It's the AutoCompleter located at http://www.pengoworks.com/workshop/jquery/autocomplete.htm. It's working

[jQuery] loop through elements and stop at first match

2007-07-09 Thread Olivier Percebois-Garve
Hi I want to loop through the jquery array of objects, stop to loop when it finds the first match, and then continue to loop with another search. In another language I would set a var found = false; before the loop and then set it to true in the loop, but with chaining I'm not sure how to do.

[jQuery] clear file input field

2007-07-09 Thread [EMAIL PROTECTED]
I need to clear a file input field on onclick event $('#edit-header-image').val(''); but i dosent work for file input type but it works for text fields also tried normal js type document.getElementById('edit-header-image').value= ''; but it dosent clear the field in IE but it

[jQuery] Re: jquery.forms incorrect object usage in fileupload() with IE

2007-07-09 Thread lordb
Yep this new version work perfectly thank's a lot malsup wrote: Thanks for that info, lordb. I just checked in an update which I think will fix the problem: http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js When you get a chance, let me know if it works for

[jQuery] Re: Drag- Droppables using Interface

2007-07-09 Thread Hurreman
I managed to get your code working ( I don't know why it wouldn't work earlier ), but I ended up with some new odd behaviour. When I drag an element from one droppable to another, it appears to be leaving an empty li instead of removing it. Code: $(dragged).remove().clone().appendTo('#' +

[jQuery] Scroller ticker...

2007-07-09 Thread Jadir Sousa
Hi, I need to develop a scroller ticker, and i think i'll give it a try using jQ :) Before I start this new adveture for me, I thought I'd see if anyone had done anything like it before. I want to do something like this (

[jQuery] Manipulating loaded data

2007-07-09 Thread divinci
Hi all, firstly let me thank you all for supporting such a great library. I am not the most adept programmer so I hope you will help me out by explaining some of the workings of JQuery. Script / $('.galleryList').load(data.dat);

[jQuery] Checkboxes and IE

2007-07-09 Thread resetstudio
Hi guys! I'm having some trouble with checkboxes in IE... so.. after the pageloading i want to check all and i've tryed with attr({checked : checked}) , attr({checked : true}) , usign dom el.checked=true , but nothing... can someone help me?

[jQuery] Re: jquery.com not available

2007-07-09 Thread divinci
Yes, same here in Liverpool UK On Jul 9, 9:41 am, Stefan Kilp [sk-software] [EMAIL PROTECTED] wrote: jquery.com not available for me, anyone else having the same problem? Best regards, Stefan Kilp -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49

[jQuery] Re: How to change of an input textbox

2007-07-09 Thread Michael Price
Try: $(#ID).val(New value); And: variablename = $(#ID).val(); To retrieve it. Regards, Michael Price

[jQuery] Re: JQuery - CrossBrowser? - Script not working in Firefox

2007-07-09 Thread Dan G. Switzer, II
The local autocomplete works fine for me (Firefox/2.0.0.4). With the ajax autocomplete...your file @ http://www.pengoworks.com/workshop/jquery/autocomplete_ajax.cfm gives an error in both FF and IE. That page won't work correctly if you call it directly from a browser w/out a q parameter:

[jQuery] Re: 3D carousel?

2007-07-09 Thread David
Hi Fred, There is an example of a jQuery 3D Carousel at http://www.activespotlight.com/ You can follow the thread that discussed it here: http://groups.google.com/group/jquery-en/browse_thread/thread/caffe8e606a6bbea/7107419fc74469c9?lnk=gstq=Interface+3d+Carousel+problemsrnum=1# Cheers,

[jQuery] Re: 3D carousel?

2007-07-09 Thread Fred Janon
Cool, thanks David! On 7/9/07, David [EMAIL PROTECTED] wrote: Hi Fred, There is an example of a jQuery 3D Carousel at http://www.activespotlight.com/ You can follow the thread that discussed it here:

[jQuery] Re: Binding problems (click/submit)

2007-07-09 Thread Mike Alsup
Bruce, Do you have a sample page we can look at? I don't see anything obviously wrong with the code, but it's hard to tell without seeing more of the page. Mike I'm having difficulty rebinding both a form submit and a click function upon return of an ajax call.

[jQuery] Re: Using AutoCompleter, how do you pass parameters

2007-07-09 Thread Dan G. Switzer, II
One other thing: If the user does not actually select an item from the list and, instead, just tabs out of the field - perhaps because the item that was put into the textbox via the quick-fill was the one he wanted - then the code to populate other fields does not fire. How can I get that code

[jQuery] Re: jquery book

2007-07-09 Thread Karl Swedberg
Hi GianCarlo, It looks to me like the eBook is available. The page has an Add to Cart button for it. Did you try unsuccessfully to purchase it? If so, it's probably a problem with the publisher's website. If you could contact them (http://www.packtpub.com/contact), that would be great.

[jQuery] Re: 3D carousel?

2007-07-09 Thread Michael Price
Fred Janon wrote: Has anyone done or know how to do a carousel like the 3D circular carousel in Flash in Amazon? It looks pretty cool. Forgive me if the link doesn't work for you but the carousel shows the best-seller books in a 3D circular carousel.

[jQuery] Re: How to bind a submit form action

2007-07-09 Thread Mike Alsup
FYI, The latest version of the form plugin now does this for you automatically. You can call ajaxForm numerous times without having to worry about unbinding events. Mike After you replace the public element with the new input you need to rewire the form so that the new button is properly

[jQuery] Re: jquery book

2007-07-09 Thread GianCarlo Mingati
got it!! Now the eBook is available. Nice job, well written and easy to understand. I'm sure i'll get better and better from now on. Kinda having a 'new toy' to play with... GC On Jul 9, 2:49 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Hi GianCarlo, It looks to me like the eBook is

[jQuery] Interface Tooltips and animatons getting queued

2007-07-09 Thread Fredrik Karlsson
I've noticed that animations and such in jQuery tends to queue. When I have many animated elements, each triggered on mouseover ( in this case, Tooltips ), and rapidly move my mouse across several elements, the Tooltips will start showing in the order that the mouse touched them. Is there any

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Rob Desbois
jQuery's in-built selectors with the custom selector ability should provide you with everything you need without having to loop through the array yourself. What are you trying to search for? On 7/9/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Hi I want to loop through the jquery array

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Andy Matthews
And what's the point of stopping the loop only to continue it again? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Desbois Sent: Monday, July 09, 2007 8:57 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: loop through elements and stop at first

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Scott Sauyet
Jeroen Coumans wrote: On Jul 5, 9:56 pm, Scott Sauyet [EMAIL PROTECTED] wrote: I don't want to discourage you from trying, but I think it's more complicated than this. Specificity has to do with the number of id's, the number of classes (and pseudo-classes), and the number of elements in the

[jQuery] jquery books, whats the differences

2007-07-09 Thread Armand Datema
Hi Now that im using jquery more and more for projects I was thinking about buying one or more books ( since there are 3 coming out ) What is the difference between the books target readers etc. I would like a good book that explains jquery and how it works and how to build and setup my own

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Michael Geary
As Rob suggested, explore what you can do with the selectors available in jQuery. But if those don't do the trick, keep in mind that the jQuery result object is an array. If you want to do something unusual with it that isn't provided by the jQuery selectors, you can access the array elements

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Benjamin Sterling
Not exactly sure what you are saying as far as the selectors go, but a plugin should work for now and can be called like: $('.myClass').cssAnimate({params}); and the params should have to be what is in the style sheet and the set the end animation points, ie: assuming the css is: .myClass{

[jQuery] Re: jquery book

2007-07-09 Thread Karl Swedberg
On Jul 9, 2007, at 8:56 AM, GianCarlo Mingati wrote: got it!! Now the eBook is available. Nice job, well written and easy to understand. I'm sure i'll get better and better from now on. Kinda having a 'new toy' to play with... So glad to hear it, GianCarlo! I'll be posting a blog entry soon

[jQuery] Re: Drag- Droppables using Interface

2007-07-09 Thread Benjamin Sterling
Fredrik, Sorry I did not get back to you, I am glad to see you got it working. On 7/9/07, Fredrik Karlsson [EMAIL PROTECTED] wrote: It seems I managed to solve the problem. After trying your code again, and removing .wrap() which caused some weird behaviour, everything's working again. Now

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
I'll whip up a plugin when I get a chance. It will act and feel just like the current $.animate but use classes instead of DOM styling. ~Sean

[jQuery] POT: CSS Selector test

2007-07-09 Thread Benjamin Sterling
Came across this when running thru w3c.org and thought it was interesting: http://www.css3.info/selectors-test/ I have FF2 running and a lot of the selectors failed and in IE7, even more failed. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Benjamin Sterling
Sean, that would be great. On 7/9/07, Sean Catchpole [EMAIL PROTECTED] wrote: I'll whip up a plugin when I get a chance. It will act and feel just like the current $.animate but use classes instead of DOM styling. ~Sean -- Benjamin Sterling http://www.KenzoMedia.com

[jQuery] Jquery hcal parser

2007-07-09 Thread Baxter
For anyone who's interested, I just uploaded a jquery-based hcal parser: http://thebitterpill.com/07-2007/a-jquery-hcal-parser/

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Glen Lipka
*boggle*. Ill have to study that. Looks complicated. Glen On 7/9/07, Klaus Hartl [EMAIL PROTECTED] wrote: Klaus Hartl wrote: Glen Lipka wrote: var myString = ; $(#container .item).each(function(i){ myString = myString + , + this.id http://this.id; }); $(#myInput).val(myString);

[jQuery] Re: jquery books, whats the differences

2007-07-09 Thread Glen Lipka
Mine is (working title) jQuery for Designers. jQuery has improved the lives of web developers, information architects, UX designers, and graphic artists (in addition to programmers). It allows for a much more iterative prototyping process that can be managed by the design team on their own. My

[jQuery] jQuery + AjaxCFC Tutorial Part 1

2007-07-09 Thread Christopher Jordan
Hi folks, Just wanted to let y'all know that I've written the first of a two (possibly three) part tutorial on using Rob Gonda's AjaxCFC with jQuery http://cjordan.us/index.cfm/2007/7/8/jQuery--AjaxCFC-Tutorial-Part-1-Setting-Up-Your-AJAX-Call. Part two will be about manipulating complex data

[jQuery] Re: Jquery hcal parser

2007-07-09 Thread Richard D. Worth
On 7/9/07, Baxter [EMAIL PROTECTED] wrote: For anyone who's interested, I just uploaded a jquery-based hcal parser: http://thebitterpill.com/07-2007/a-jquery-hcal-parser/ Very cool. I'm going to play with this. I think jQuery and microformats are a great match. Has anyone else done work

[jQuery] Re: Jquery hcal parser

2007-07-09 Thread Baxter
I agree. One of the reasons I wanted it to do it with jquery is because dealing with microformats generally involves a lot of picking through looking for that class or this id, which jQuery really excels at. On Jul 9, 10:50 am, Richard D. Worth [EMAIL PROTECTED] wrote: On 7/9/07, Baxter [EMAIL

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
Glen Lipka wrote: *boggle*. Ill have to study that. Looks complicated. Glen Glen, it's not complicated at all :-) I'm using jQuery's $.map method to translate one array - the result set $('#container [EMAIL PROTECTED]') - into another array, containing all the ids of the items in

[jQuery] Re: Scroller ticker...

2007-07-09 Thread Sean Catchpole
I like newsticker: http://www.texotela.co.uk/code/jquery/newsticker/ ~Sean

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread weepy
Lurvely I have a real world example where I can immediately try this out on: http://64squar.es. When the chess pieces appear initially, they all slide onto the board. It's a bit jerky really - esp since its trying to move 32 x 60x60 pngs with alpha channel. It's currently somewhat jerky, so i'd

[jQuery] Re: jQuery + AjaxCFC Tutorial Part 1

2007-07-09 Thread Gareth Hughes
Nice one Chris. Christopher Jordan wrote: Hi folks, Just wanted to let y'all know that I've written the first of a two (possibly three) part tutorial on using Rob Gonda's AjaxCFC with jQuery http://cjordan.us/index.cfm/2007/7/8/jQuery--AjaxCFC-Tutorial-Part-1-Setting-Up-Your-AJAX-Call.

[jQuery] Re: Set element's css 'min-height' to browser's viewport height?

2007-07-09 Thread Karl Swedberg
that's brilliant, Klaus! Thanks for sharing that. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 8, 2007, at 12:23 PM, Klaus Hartl wrote: zarino wrote: Hi! I'd like to set all elements with the class .inner to have a minimum height equal to

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
On 7/9/07, weepy [EMAIL PROTECTED] wrote: When the chess pieces appear initially, they all slide onto the board. It's a bit jerky really - esp since its trying to move 32 x 60x60 pngs with alpha channel. There are lots of browser limitations with working with PNGs. But more importantly, this

[jQuery] ANN: CFJS 1.1.8 is now available for download

2007-07-09 Thread Christopher Jordan
Hi folks, Just wanted to let everyone know that version 1.1.8 of CFJS (both the jQuery and independent flavors) is now available for download from riaforge.org (http://cfjs.riaforge.org). Many thanks to Trent Richardson who coded the new functions that this version makes available, namely:

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread weepy
they are different animations - but it should be easy to bunch them all together. On Jul 9, 5:56 pm, Sean Catchpole [EMAIL PROTECTED] wrote: On 7/9/07, weepy [EMAIL PROTECTED] wrote: When the chess pieces appear initially, they all slide onto the board. It's a bit jerky really - esp

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Glen Lipka
Its only relevant if you are changing a bunch of stuff at the exact same time. Here is a real world example: A grid, similar to EXT's grid. Capabilities with a large number of rows: Sorting, Selecting (shift select), adding, deleting, re-ordeing via drag, changing height (excel type), changing

[jQuery] Using scrollIntoView with overflow blocks

2007-07-09 Thread offwhite
I have a web page that has a div with the following style. overflow: auto; white-space: nowrap; width: 100%; height: 300px; The overload and height causes the div block to display a scrollbar when height of the content exceeds that height. What I need to do is scroll to a point in that block

[jQuery] Re: Manipulating loaded data

2007-07-09 Thread Matt Stith
This has come up many many many times on this list. You need to put a callback in the .load call, like this: $('.galleryList').load(data.dat,function() { // Do bindings here }); On 7/9/07, divinci [EMAIL PROTECTED] wrote: Hi all, firstly let me thank you all for supporting such a great

[jQuery] Re: jQuery + AjaxCFC Tutorial Part 1

2007-07-09 Thread Rey Bango
Great job Chris! I'll definitely check this out. Rey Christopher Jordan wrote: Hi folks, Just wanted to let y'all know that I've written the first of a two (possibly three) part tutorial on using Rob Gonda's AjaxCFC with jQuery

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
On 7/9/07, Glen Lipka [EMAIL PROTECTED] wrote: A big question in my mind is: On a slow machine with ONE animation: Is doing it this way smoother than not? Does CSS manipulation of a single animation make it smoother? What is the gating factor for a slow computer? CPU or Ram or Video card?

[jQuery] Really removing items from the DOM

2007-07-09 Thread Stephan Beal
Hi, all! i'm a recent jQuery convert (but by no means a noob programmer) and i'm INCREDIBLY impressed with the library. i'm working on an application for prototyping board game designs (a hobby of mine) and i have a question about how to do one thing in jQuery: How do i permanently remove items

[jQuery] Syntactic sugar for checking whether an element exists

2007-07-09 Thread Felix Geisendörfer
I've just been wondering if jQuery has some syntactic sugar for checking if an element exists. I know the following works: if ($('#my-element').length) { // #my-element exists }

[jQuery] jVariations r2 = developer plugin/tool updated

2007-07-09 Thread Brian Cherne
I've recently updated my jVariations plug-in (not sure if anyone was using the old version). It is a developer tool that allows you to toggle variations (aka corner cases) on a single HTML page. Useful for rapid visualization of code changes... before weaving in the real DHTML calls or handing

[jQuery] validation pluging work in FireFox but Not in Internet Explorer

2007-07-09 Thread WebolizeR
Hi; I've used the jQuery's official validation plugin (http:// bassistance.de/jquery-plugins/jquery-plugin-validation/), your can see the page in here (http://nexus.di-tasarim.com/index.php? option=com_nexusact=coursestask=viewAppid=1) The main difference between the orginal code and mine is,I

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Mike Alsup
You can also do: if ($('#my-element')[0]) { } or if ($('#my-element').size()) { } or if you want the sugary syntax you can declare it yourself: jQuery.fn.exists = jQuery.fn.size; Mike On 7/9/07, Felix Geisendörfer [EMAIL PROTECTED] wrote: I've just been wondering if jQuery has some

[jQuery] Re: Really removing items from the DOM

2007-07-09 Thread Su
On 7/9/07, Stephan Beal [EMAIL PROTECTED] wrote: How do i permanently remove items from the DOM *and* jQuery object? i am aware of jQuery(..).remove(), but the docs for remove() say: Assuming there is one(I'm fairly low-level with JS) have you tried just using the regular Javascript process

[jQuery] Release: Accordion 1.4

2007-07-09 Thread Jörn Zaefferer
An update to the jQuery accordion plugin brings you, among minor bugfixes and a demo overhaul (http://jquery.bassistance.de/accordion/), one notable new feature: The navigation-option automatically activates a part of the accordion based on the current location (URL) of the page. The basic

[jQuery] Is there a way to READ the $.ajax settings?

2007-07-09 Thread Stephan Beal
Hi, all! i would like to force $.ajax() to use synchronous mode temporarily and then switch it back to whatever mode it was in before i started. The problem is, i can't find away to read that setting (without dipping into the undocument/private structure of the jQuery code). Of course, i can do

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Sean Catchpole
I believe that learning jquery returns an array like object is more useful than creating a .exists() function. ~Sean

[jQuery] Re: Really removing items from the DOM

2007-07-09 Thread Jonathan Chaffer
On Jul 9, 2007, at 13:45 , Stephan Beal wrote: How do i permanently remove items from the DOM *and* jQuery object? i am aware of jQuery(..).remove(), but the docs for remove() say: This does NOT remove them from the jQuery object, allowing you to use the matched elements further. This

[jQuery] Re: Non integer amount of visible items

2007-07-09 Thread yhager
Jan Sorgalla wrote: Hi, this mix is a bit difficult to handle. I've updated jquery.jcarousel.js. Please download it from http://sorgalla.com/projects/jcarousel/ and try if it works now for you. Jan Yay! The fix works! :) Thanks again.. --yuval -- View this message in

[jQuery] Re: Designerly Ajax ? from newbie

2007-07-09 Thread Richard D. Worth
Slightly more concise, not tested: function getContent(id, url) { $('#' + id).fadeOut(1200, function() { $('#' + id).load(url).fadeIn(1200); } } - Richard

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Sean Catchpole
$.ajaxSettings.async ~Sean

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Felix Geisendörfer
Sean, Mike: I agree with your notion that learning that the jQuery object is array-like (It'd be cool if it was a real array and .push / .sort would work on it) is very worthwhile. I knew that when I initially stumbled across the problem and knew that doing it via '.length' was one solution. I

[jQuery] Random number of events required on page

2007-07-09 Thread [EMAIL PROTECTED]
What I'm trying to figure out how to do is to have jQuery handle multiple events on one page, that are pulled out a of a database (can be any amount of numbers). A good example of what I'm trying to do would be a large FAQ listing, where each question is clickable, which after it is clicked,

[jQuery] allow no more than 3 checkboxes checked

2007-07-09 Thread cfdvlpr
I have about 10 checkbox input elements with the same name and I'd like to not let the user select more than 3 of them. How can I do this with Jquery?

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Jörn Zaefferer
Felix Geisendörfer wrote: It'd be cool if it was a real array and .push / .sort would work on it That isn't so far fetched. There is the array plugin: http://dev.jquery.com/browser/trunk/plugins/array And a push-implementation is missing there but easy to add: push: function( t ) {

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Jörn Zaefferer
cfdvlpr wrote: I have about 10 checkbox input elements with the same name and I'd like to not let the user select more than 3 of them. How can I do this with Jquery? Do you want to prevent the user from actually selecting more then three checkboxes? Or just validating? The latter case is

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Matt Kruse
On Jul 9, 1:50 pm, Sean Catchpole [EMAIL PROTECTED] wrote: I believe that learning jquery returns an array like object is more useful than creating a .exists() function. IMO, many people look for common sense methods that should exist in jQuery, or at least as part of a standard and

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Andy Matthews
Your checkboxes are an array (assuming that they all have the same name). Something like this might work: $('input.checkboxfieldname').click(function(){ if ($(this).length = 3) { alert('sorry, only three checkboxes allowed'); } }); -Original Message-

[jQuery] Re: Random number of events required on page

2007-07-09 Thread Michael Geary
You could use event bubbling. Set a click event handler on a parent element that contains all of your clickable questions. In that click handler, check this to see if it actually is one of the clickable questions and take your action then. -Mike From: [EMAIL PROTECTED] What I'm trying to

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Andy Matthews
Ignore my code completely, it doesn't work. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cfdvlpr Sent: Monday, July 09, 2007 2:43 PM To: jQuery (English) Subject: [jQuery] allow no more than 3 checkboxes checked I have about 10 checkbox

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Jörn Zaefferer
Matt Kruse wrote: As another example, I think .hasClass() should exist, even though you can do .is(.className) - simply because most people will look for a method called hasClass rather than reading the docs and eventually finding that .is() is the correct way to do it. It makes jQuery a little

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Michael Geary
Felix, not to worry, there's nothing wrong at all with using .length - and it is obviously faster than a function call. In the earliest versions of jQuery, the jQuery object was not an array, but had a private array object that you accessed using .get(n) and .size(). The only reason those

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Sean Catchpole
On 7/9/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: I can't find the initial branch of this thread. Could someone repeat what exists() is supposed to do? $.fn.exists = function() { return !!this.length; } ~Sean

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Sean Catchpole
On 7/9/07, cfdvlpr [EMAIL PROTECTED] wrote: I have about 10 checkbox input elements with the same name and I'd like to not let the user select more than 3 of them. How can I do this with Jquery? You can try this: $.fn.limit = function(n) { var self = this; this.click(function(){ return

[jQuery] Re: blur( fn ) doesn't work in Opera?

2007-07-09 Thread MrNase
I even tried $(#inputthreadtitle).bind(blur, function(){ // }); but that also doesn't work. :-(

[jQuery] Re: JQuery - CrossBrowser? - Script not working in Firefox

2007-07-09 Thread AtlantaGeek
Ok, so you da man when it comes to this AutoCompleter? I did try the page from FF and it definitely worked. Would you mind looking at the code? function findValue(li) { if( li == null ) return alert(No match!); // if coming from an AJAX call, let's use the CityId as the value

[jQuery] Re: Using AutoCompleter, how do you pass parameters

2007-07-09 Thread AtlantaGeek
Now if I could only make sense of that page. g So you wrote that mod to the original AutoCompleter by Dylan V and now you and this other guy Joern are working on it? Sorry, just trying to understand who's who. What should I download from that page? On Jul 9, 8:49 am, Dan G. Switzer, II

[jQuery] Google Maps like interface with JQuery

2007-07-09 Thread Pete
Hi All, Does anyone know of a Google Maps like interface implemented using JQuery? The only real requirement is that a user can zoom in/out. On zoom, a new image is properly loaded in terms of zoom and user expected location. If not, could you point me to a couple functions within JQuery that

[jQuery] Re: Really removing items from the DOM

2007-07-09 Thread Stephan Beal
On Jul 9, 8:52 pm, Jonathan Chaffer [EMAIL PROTECTED] wrote: I think you're confused about what the jQuery object means here. snip $('#myElement') will match no elements. It will be an empty jQuery object. Aha! Okay, that's exactly what i need/want :D. Once again, jQuery delivers :). It

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Stephan Beal
On Jul 9, 9:26 pm, Sean Catchpole [EMAIL PROTECTED] wrote: $.ajaxSettings.async That's exactly what i was looking for. Thanks :). Do you happen to know if that's documented anywhere? i can find no mention of it on the jquery site, and using the on-site search engine returns (as usual) No page

[jQuery] Re: Really removing items from the DOM

2007-07-09 Thread Stephan Beal
My apologies if this reply shows up twice... i'm confused about what i have and have not done tonight... On Jul 9, 8:52 pm, Jonathan Chaffer [EMAIL PROTECTED] wrote: I think you're confused about what the jQuery object means here. There isn't a master internal list of objects that is keeping

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Felix Geisendörfer
Felix, not to worry, there's nothing wrong at all with using .length - and it is obviously faster than a function call. I figured that by now. I think Matt was much better at explaining why I think an alternative exists() function is useful - it simply is the most intuitive thing a new jQuery

[jQuery] Getting the next span

2007-07-09 Thread jmbJq
Been using jQuery for a while, but can't seem to figure this one out. What I want to do is get the next span element when someone clicks on the text inside the first span element. Then when someone clicks on the text in the second span element, get the next span, and so on. If someone clicks on

[jQuery] maskedinput multiple mask characters not working

2007-07-09 Thread Eric Crull
When using the maskedinput plugin, using single masked character works fine: $(#date).mask(99/99/); //the / are mask characters and are ignored by the plugin. and double mask characters work fine at the end of the input: $(input.childAge).mask(99Y 99Mo); //also works fine. But when you

[jQuery] Re: Google Maps like interface with JQuery

2007-07-09 Thread Rey Bango
Hi Pete, Here are two links for you to look at: http://projects.sevir.org/storage/jqmaps/index.html http://olbertz.de/jquery/googlemap.html# Hopefully they can help you out. Rey Pete wrote: Hi All, Does anyone know of a Google Maps like interface implemented using JQuery? The only real

[jQuery] Re: Getting the next span

2007-07-09 Thread Glen Lipka
Did you try next(span)? Glen On 7/9/07, jmbJq [EMAIL PROTECTED] wrote: Been using jQuery for a while, but can't seem to figure this one out. What I want to do is get the next span element when someone clicks on the text inside the first span element. Then when someone clicks on the text in

[jQuery] Re: Getting the next span

2007-07-09 Thread Sean Catchpole
$('#span1').bind('click', function() { return $(this).next(span); }); or $('#span1').bind('click', function() { return $(~ span,this); }); ~Sean

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Sean Catchpole
On 7/9/07, Stephan Beal [EMAIL PROTECTED] wrote: Do you happen to know if that's documented anywhere? i can find no mention of it on the jquery site, and using the on-site search engine returns (as usual) No page title matches. I doubt it's documented, I just dug it our of the source (which is

[jQuery] Re: Getting the next span

2007-07-09 Thread Eric Crull
I use this logic to get the next input, and to search for the next input if there were intervening elements, for example: divinput/div div table trtd//tdtd/td/tr trtd/tdtdinput/td/tr /table /div The function will iterate through until it finds the next input, even if it is not

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Stephan Beal
On Jul 9, 11:32 pm, Sean Catchpole [EMAIL PROTECTED] wrote: $.fn.limit = function(n) { var self = this; this.click(function(){ return (self.filter(:checked).length=n); });} $(input:checkbox).limit(3); Ever the skeptic of code which looks too simple, i tried that out... it actually does

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Stephan Beal
On Jul 10, 4:13 am, Sean Catchpole [EMAIL PROTECTED] wrote: I doubt it's documented, I just dug it our of the source (which is well documented). i was hoping to avoid using internal details (i.e., those not documented in the public APIs), but if it's unavoidable then... oh, well. Thanks again

[jQuery] announcement: jQuery-based generic board game interface

2007-07-09 Thread Stephan Beal
Hiya! The jQ site says that this list is the place to make announcements, so here it goes... The past couple of days i've been working on an application for playtesting new boardgames (a long-time hobby of mine), and it's now at a point where it mostly does what i want. With only about 175

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Michael Geary
There's no reason at all to stick with .get(n) and .size() now that the array-like jQuery object allows the simpler and more efficient [n] and .length. I disagree. Whenever you need to sort the elements in an ul or something then you'll have to use the Array.sort() function, so you

  1   2   >