Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-23 Thread Amos King
t; " echo $rrows['id']; ?>" } ,function(data){ $("#approve ?>").html(data); });' ?>" });'>Approve > -- > View this message in context: > http://old.nabble.com/This-code-is-too-complex-for-a-noob%2C-can-someone-break-this-down.-tp27282222s27240p2

Re: [jQuery] Re: how to get href value

2010-01-23 Thread Amos King
y slow. > > > > Try using event delegation: > > > > $(document).ready(function() { > > $(document).click(function(event){ > > if ($(event.target).is('a') { > > alert( "You clicked a link to " + event.target.hr

[jQuery] Re: 14 Days of jQuery - Donation for free ebook

2010-01-18 Thread Amos King
It says Jan 19 books will be distributed. On Jan 13, 11:06 am, Peter Duerden wrote: > I made adonationvia PayPal that qualifies to receive a random free > ebook (seehttp://jquery14.com/donate). Just wondering how/when I > would hear about obtaining the book? Of have I jumped the gun by > making m

[jQuery] Re: 14 Days of jQuery - Donation for free ebook

2010-01-18 Thread Amos King
Did you ever hear back about this? I'm in the same boat. On Jan 13, 11:06 am, Peter Duerden wrote: > I made adonationvia PayPal that qualifies to receive a random free > ebook (seehttp://jquery14.com/donate). Just wondering how/when I > would hear about obtaining the book? Of have I jumped the g

Re: [jQuery] ZIP with JQeury

2010-01-15 Thread Amos King
a ZIP file with JQuery or something? >> >> Greetz >> > > -- Amos King http://dirtyInformation.com http://github.com/Adkron -- Looking for something to do? Visit http://ImThere.com

Re: [jQuery] Re: plugin dev help

2010-01-15 Thread Amos King
Can someone take another look at the new version and let me know of anything that stands out that could be better? http://gist.github.com/277243 Amos On Fri, Jan 15, 2010 at 1:25 AM, Amos King wrote: > Thanks, I saw the metadata plugin today and I started redoing mine. You > can take a

Re: [jQuery] Resolved

2010-01-15 Thread Amos King
: $('div.block01')[0] == $('div.block02')[0] > > Worked great for me > > Bye > > Sébastien > -- Amos King http://dirtyInformation.com http://github.com/Adkron -- Looking for something to do? Visit http://ImThere.com

Re: [jQuery] Re: Select all items in list on form submit

2010-01-15 Thread Amos King
> > > I always like to give my selectors an element+class/id, apparently it > > is more efficient, and I have noticed that some browses (it seems only > > sometimes) will miss some elements when only using the id/class. > > > > But throw some alerts in there so

Re: [jQuery] Re: plugin dev help

2010-01-14 Thread Amos King
e: > var o = $.meta ? $.extend({}, opts, $this.data()) : opts; > > Updated line: > var o = $.metadata ? $.extend({}, opts, $this.metadata()) : opts; > > > > On Jan 14, 4:14 pm, Amos King wrote: > > I want to start making parts of my code into plugins, but I'm not sure

Re: [jQuery] Cloning content with radio buttons

2010-01-14 Thread Amos King
--- > > I realize this is horrible HTML, I'm just using it to get feedback on > my issue. Either way, with the real code, the IDs and Names are > changed later down after the clone, and the values are reset to > nothing. > > TIA > -- Amos King http://dirtyInformation.com http://github.com/Adkron -- Looking for something to do? Visit http://ImThere.com

Re: [jQuery] Re: delay ajax search while using keyup

2010-01-14 Thread Amos King
dataType: 'html', > > beforeSend: function() { > > $('#search_slips').html(' src="../common/images/ajax- > > loader.gif" alt="loading..." />'); > >

Re: [jQuery] Re: Read ajax response headers?

2010-01-14 Thread Amos King
us) { > > if (status == "success") { > > $('ul.notes').append('' + xhr.responseText + > > ''); > > var key = XMLHttpRequest.getResponseHeader('Note-Key'); > > $('ul.notes > li:last-chil

[jQuery] plugin dev help

2010-01-14 Thread Amos King
I want to start making parts of my code into plugins, but I'm not sure of the best way to approach it. If anyone has any ideas on how to make this a little better that would be great. http://gist.github.com/277243 Thanks, Amos -- Amos King http://dirtyInformation.com http://github.com/A

[jQuery] Re: Shortest possible method of adding/removing class on mouseenter/leave without a plugin

2010-01-13 Thread Amos King
css hover is not supported on some browsers. Amos On Jan 13, 1:00 pm, MorningZ wrote: > i don't understand the ".each" part  jQuery is already going to do > that > > $('#nav > li').bind('mouseenter mouseleave', function() { $ > (this).toggleClass('hover'); }); > > *should* be equiv, although