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
o the filesystem in that way. If you are using envjs or jsc(macs javascript console) then you can get to the system, and you could write an algorithm to zip files. Amos On Fri, Jan 15, 2010 at 8:13 AM, waseem sabjee wrote: > This is usually handled by server side script like ASP or PHP as you h

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
Wouldn't this just compare the first element of the list of objects returned? Amos On Fri, Jan 15, 2010 at 3:45 AM, Sébastien BEIRNAERT < beirnaert.sebast...@gmail.com> wrote: > I found out how to compare 2 JQuery object : juste add [0] at the end > of the JQ object > ex

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
Thanks, I saw the metadata plugin today and I started redoing mine. You can take another look at: http://gist.github.com/277243 Let me know what you think. Thanks, Amos On Fri, Jan 15, 2010 at 1:18 AM, Thomas wrote: > When I started writing reusable plugins at work, I've read a c

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
the state of the var and makes the call if it is ready. Although that may have some timing issues too. Good luck. Give it a little more thought and I think you can come up with something. Amos On Thu, Jan 14, 2010 at 7:57 PM, mslade wrote: > Here's what I would do. Hope this mak

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

2010-01-14 Thread Amos King
Why do you want an if when the separation of concerns is all there for you? Amos On Thu, Jan 14, 2010 at 1:21 PM, bryan wrote: > Holy moly, that's beautiful. Thanks so much for your help! > > > > On Jan 14, 11:04 am, Mike Alsup wrote: > > > So if someone has a s

[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() { $ > (

[jQuery] Re: validate - submit with href - quickie

2009-06-29 Thread Amos Robinson
You're not wrapping your domready in a function. With your example $(document).ready( $("#submitregister").click( ... ); ); The .click call is being evaluated straight away and passed to document.ready. You want to wrap it in a function so document.ready will cal

[jQuery] tablesorter bug: th with colspan

2009-05-04 Thread Amos Robinson
3 4 ...etc... But if I try to sort by 'Four', it will sort by the third column instead. So, here is a simple, naiive bugfix that seems to work for me; I'd like to hear any feedback that anyone has. I haven't tried at all with colspans in the data. Thanks, Amos Robinson

[jQuery] jCarousel question

2008-05-30 Thread Amos
carousel will display as a list and then pop into horizontal display. In the style sheet, I removed all references to vertical styles. The misbehavior is the same in IE 6 and FF 2 and 3. Site: www.satterlee.com/bec Any hints on how to handle this will be much appreciated. Amos