[jQuery] [ANN] jQuery Metadata 2.1

2009-06-23 Thread Yehuda Katz
I just released jQuery Metadata 2.1, which adds support for HTML5 data-*. Usage: This is a p; $.metadata.setType("html5") $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"; Get it at http://plugins.jquery.com/project/meta

[jQuery] Re: Forms and syntax: Radio buttons and tutorials?

2008-07-20 Thread Yehuda Katz
#x27;).attr('checked', 'checked'); > > > > > or > > > > > $("[EMAIL PROTECTED]'option01']:checked") > > > > > If I had to guess, I would say the the first option is faster... but I > > > like the readability of the second one better. > > > > > Anyone know of a good tutorial that details how to wok with forms > > > using jQuery (sans-plugins)? > > > > > Many thanks in advance! > > > > > Cheers, > > > Micky > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

[jQuery] Re: How do I write a JQuery expression for this?

2008-07-20 Thread Yehuda Katz
thin a span with class "TreeView", there is a table. Within the > table, there are TD's. I want to select the TD's whose content ends > in ".pdf". How would I go about writing an expression to, say, apply > a class to only those nodes? > > > Than

[jQuery] Re: check if an id exists

2007-12-26 Thread Yehuda Katz
I would definitely recommend $("#id").length. When working in a language, it's important to keep in mind the language's idioms. In the case of JS, 0 == false, so if($("#id").length) is a perfectly good idiom. It's a bit confusing coming from another language (where 0 is true), but that'

[jQuery] Re: how to create a function in jquery?

2007-12-26 Thread Yehuda Katz
You need to provide more information about what you're trying to do. You can do something like $("#button_a, #button_b, #button_c").click(...), but I'm not sure why you're defining those variables. Also, without var, those variables are being defined in the global scope, which is bad pract

[jQuery] Re: Programmatically controlling cut and paste

2007-12-26 Thread Yehuda Katz
If you're only using IE, you're good to go. An alternative that works cross-browser is to hijack Flash's access to the clipboard via ExternalInterface. -- Yehuda On Dec 26, 2007, at 9:29 AM, Chris Jordan wrote: Okay, I think I just found it. Before I posted this question I was searching g

[jQuery] Re: Dojo & Jquery

2007-11-05 Thread Yehuda Katz
jQuery and Dojo are both in the interop camp (one global object; no modifying native objects) so it should be fine :) Sent from my iPhone On Nov 5, 2007, at 7:08 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED] > wrote: Is anyone using Dojo & jQuery together? If so, are there any issues?

[jQuery] Re: Canceling an animation

2007-11-02 Thread Yehuda Katz
#x27;slow');},500); > > > > If I need to cancel it, how do I this? > > I would like to cancel it regardless of whether it is still in the > > initial setTimeout of 500ms, or has already started to fadeIn. > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Comparing Arrays

2007-11-01 Thread Yehuda Katz
This is undocumented but try $(arr1).not(arr2).get() Sent from my iPhone On Nov 1, 2007, at 9:38 PM, Flesler <[EMAIL PROTECTED]> wrote: Well.. you have jQuery.inArray, that will do part of the job. It gives you the index of the given value in one array or -1. jQuery.inArray( 1, [8,3,2,1,2] )

[jQuery] Re: How to pull details info into master page (php/mysql)

2007-11-01 Thread Yehuda Katz
Sent from my iPhone On Nov 1, 2007, at 5:29 PM, "Dave Buchholz - I-CRE8" <[EMAIL PROTECTED] > wrote: I now have this working using the following code: $(document).ready(function() { $('#view a').click(function() { $('#show-details').hide(); $.get($(this).attr("href"), {}, function

[jQuery] Re: Canceling an animation

2007-11-01 Thread Yehuda Katz
You can cancel an animation via $().stop Sent from my iPhone On Nov 1, 2007, at 5:17 PM, "S. Robert James" <[EMAIL PROTECTED]> wrote: I have an animation that runs after a delay: setTimeout(function(){$(".mbox").fadeIn('slow');},500); If I need to cancel it, how do I this? I would like

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-01 Thread Yehuda Katz
re. There are a number of features that are not ubiquitously used, but represent extremely common usage patterns, and are in use in a large number of apps (think getJSON, for instance). -- Yehuda On 11/1/07, Lee Hinde <[EMAIL PROTECTED]> wrote: > > > On 10/31/07, Yehuda Katz <[EMAIL

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-01 Thread Yehuda Katz
g it. > > > > So as far as I'm concerned, livequery is the biggest advance in jQuery > since > > its inception (no, I am not its author). I'm trying to understand why > it's > > having such a slow rate of adoption. > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Reminder: Last few hours to save 30% on jQuery in Action BETA

2007-11-01 Thread Yehuda Katz
d > discover that it's either almost obsolete when it comes out because 2 > versions of the software came out before the book is in the stores or the > book doesn't address much more than what's on the web site, hence the book > publishing market shrinking. > > Thanks >

[jQuery] LiveQuery (Discuss Please)

2007-10-31 Thread Yehuda Katz
ng to bind some event handler to a selector regardless of when it appears on the page, is extremely common. So again, I'm trying to understand why the rate of adoption has been so slow. Any thoughts? -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Reminder: Last few hours to save 30% on jQuery in Action BETA

2007-10-31 Thread Yehuda Katz
ot sure if it's EST or PST...). Get the book at: http://www.manning.com/affiliate/idevaffiliate.php?id=485_93 Use coupon code JQM30 for 30% off! -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Test if object is jQuery object

2007-10-30 Thread Yehuda Katz
Thanks Eric and Wizzud, that's what I was looking for. Much better than > what I was doing. > > -- Josh > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: jQuery Presentation

2007-10-29 Thread Yehuda Katz
log for any who would like to take a look: > > http://grover.open2space.com/node/186 > > The presentation was well attended (near full room), and well received, > I think. I may have converted one or two folks from Prototype even. :) > > Shawn > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Any jQuery plugin for image upload with preview?

2007-10-29 Thread Yehuda Katz
This could be done trivially via Ajax Sent from my iPhone On Oct 29, 2007, at 8:46 AM, Bhaarat Sharma <[EMAIL PROTECTED]> wrote: Hi Wondering if someone here knows a plugin that would dynamically show the user what image has been uploaded. say the page has 3 text fields with browse button

[jQuery] Re: Consider a standard documentations for plugins

2007-10-28 Thread Yehuda Katz
I'm going to start taking a more active role as the official cat herder (plugin lead). A number of people had ideas at jQueryCamp that were very intersting to me and will drive innovation in this area. Stay tuned! Sent from my iPhone On Oct 28, 2007, at 3:15 PM, "Rick Faircloth" <[EMAIL

[jQuery] [ANN] jQuery in Action (30% OFF COUPON)

2007-10-23 Thread Yehuda Katz
king this code to see how strong the jQuery community's response will be :) -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: jQuery and Mootools Problem

2007-08-23 Thread Yehuda Katz
ere no quick solution ? i need both librarys > > > > > > > > > > > > greetz julian > > > > > > > > On 23 Aug., 14:36, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > > > > > Time to namespace our expandos. > > >

[jQuery] Re: JSON MIME type?

2007-08-23 Thread Yehuda Katz
text to eval(). Once you get the response text, simply > do: eval(responseText). > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: jQuery and Mootools Problem

2007-08-23 Thread Yehuda Katz
a problem, after loading the site, i became an js error > > > > > this.$events[type].keys has no properties > > >mootools.v1.11.js > > > Line 2878 > > > > > Here is a screenshot:http://gfx.kj187.de/jqueryMootoolsProblem.tiff > > > > > Has anybody an idea ?? > > > > > regards kj187 (julian) > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Templater

2007-08-19 Thread Yehuda Katz
It would be trivial to change the template field syntax. In the next revision of this thing, I'll probably just make it configurable. -- Yehuda On Aug 19, 9:23 am, Pops <[EMAIL PROTECTED]> wrote: > On Aug 19, 2:37 am, "Yehuda Katz" <[EMAIL PROTECTED]> wrote: &g

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Yehuda Katz
gt; wrote: > > Pretty cool Yehuda, I'll have to give it a shot so I can give ya some > feedback. > > ~Sean > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] [PLUGIN] Templater

2007-08-18 Thread Yehuda Katz
;The number being passed in is 17.6 and its integer value is 17" In typical jQuery style, you can make it work on elements too: $("#testMe").updateTemplate({first: "Yehuda", last: "Katz", number: 17}); Result: Yehuda Katz 4 You can also load in the content

[jQuery] Re: How to check multiple checkboxes checked at a time

2007-08-18 Thread Yehuda Katz
one id is checked. > > > > I'm waiting for staright response. > > > > Thanks in advance. > > > > -- > > View this message in context: > > http://www.nabble.com/How-to-check-multiple-checkboxes-checked-at-a-time-tf4268943s15494.html#a12149798 > > Sent from the JQuery mailing list archive at Nabble.com. > > > > > > > -- > Joan Piedra || Frontend webdeveloper > http://joanpiedra.com/ -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: stop animation

2007-08-18 Thread Yehuda Katz
or tell me how to do it, that'd be great. > > > > Cheers, > > Christian Dannie > > > > On Aug 4, 6:40 am, "Ganeshji Marwaha" < [EMAIL > > PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&[EMAIL PROTECTED]>> > > wrote:

[jQuery] Templating in attr and css?

2007-08-18 Thread Yehuda Katz
p with any compelling use-cases on-the-fly. If you think this would be useful, and want it in 1.2, can you reply to this post with a specific use-case that you could see using in real-life? I really want to get this into 1.2, but it requires some proof of use ;) -- Yehuda Katz Lead Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: An open letter to non-Believers...

2007-08-07 Thread Yehuda Katz
in the original request for articles doesn't > work (http://jquery.com/blog/2007/06/28/163/). :( > > :) > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Convert to jQuery

2007-08-07 Thread Yehuda Katz
I forgot return: $.fn.resize = function(max) { max = max || 100; return this.each(function() { if(this.width > this.height && this.width > max) this.width = max; else if(elem.height > max) elem.height = max; }); }; That's so it remains chainable. -- Yehuda

[jQuery] Re: Convert to jQuery

2007-08-07 Thread Yehuda Katz
m.height > max) elem.height = max; > } > } > > I an just know really getting into jquery but not sure how to convert > tis. My aim to be able to this function onblur of the file input field > - if possible. > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Need help with $.post()

2007-08-07 Thread Yehuda Katz
('file.php',{ > foo: 'bar' > },function(){ > // whatever > }); > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325

[jQuery] Re: Traversing Dom and Reading innerHTML

2007-08-07 Thread Yehuda Katz
selector for the HTML for the anker element after a given > li element with a specific id. > > > In the example i would need "Products" as the result for: Give me the > HTML from the anker after the li element with the id=produkte. > > > > > > Products a

[jQuery] Moving Plugins to new repository

2007-07-24 Thread Yehuda Katz
ure that your plugin does, in fact, do that. Thanks a ton! -- Yehuda Katz Plugin Team Leader | jQuery (ph) 718.877.1325

[jQuery] jQuery on Rails-related

2007-05-29 Thread Yehuda Katz
Hey guys, Great news! Hpricot has accepted my patches to make hpricot compatible with jQuery, which means you'll only need to checkout the latest hpricot from svn to use jQuery on Rails. -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325

[jQuery] Re: jquery vs. ext (tonight)

2007-04-08 Thread Yehuda Katz
n (which hopefully will produce something tangible) that it would be very nice if people built their functionality using jQuery.fn instead of $.fn because at least one other kit uses '$' to prefix their namespaces and no one else uses the jQuery prefix (obviously). -Ariel -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325

[jQuery] Re: Small Interface website update

2007-04-06 Thread Yehuda Katz
Now all we need is a hierarchical D&D tree and resizable layouts (with content panes), and Interface beats Ext any day of the week in my book. -- Yehuda On 4/6/07, Yehuda Katz <[EMAIL PROTECTED]> wrote: Hey! Props to you guys; I've been waiting for this for the longest time

[jQuery] Re: Small Interface website update

2007-04-06 Thread Yehuda Katz
; Starting next week I will have some free time again and me and Paul >> will continue working on Interface 2. I hope this month we will >> release it. >> >> Take care. >> >> >> > I hate to flood the list with kudos, but seeing the capabilities of In