[jQuery] Re: jQuery Conference for 2009?

2009-06-19 Thread riotbrrd

Very interesting!

What might one find at a jQuery conference? Besides Karl, John, et al,
of course?


[jQuery] A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread riotbrrd

I realize this is not jQuery specific, but I figured you guys might
have some good advice...

I often find myself wanting to assign the same ID to multiple elements
in a document -- typically when there are several versions of an
element which display at different times. Is there a good reason NOT
to do this? If so, what's a better practice?

thanks,
Kim


[jQuery] Re: Work on one specific node and not on the window.document

2009-03-31 Thread riotbrrd

By way of explanation, this works because the jQuery selector function
has an optional context parameter: $(expression, [context]) . See the
docs here: http://docs.jquery.com/Core/jQuery#expressioncontext.

-Kim

On Mar 30, 11:18 pm, xPheRe  wrote:
> To locate a node with id "myId" that is a descendant of another one,
> in a var called "myNode", use:
> $('#myId', myNode)
> Hope it helps :)
>
> On 30 mar, 17:20, tij_dev  wrote:
>
>
>
> > Hi guys !
>
> > I assume this is a really basic question but I'm a JQuery rookie :) so
> > please be indulgent :)
>
> > I would like to get an element by its id but just on a specific node.
> > I only see on the web things like that : $("#myId"). That is the
> > equivalent of window.document.getElementById("myId"). But for me that
> > should be something like myNode.getElementById("myId").
>
> > Is that clear?...
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: I jQery!

2009-03-25 Thread riotbrrd

Um, I really did mean "jQuery". :-\

On Mar 25, 4:08 pm, riotbrrd  wrote:
> Just wanted to send a little luv note to the jQuery team. I'm a UI
> designer and NOT a programmer, but learning jQuery has allowed me to
> make my software wireframes/prototypes way more functional. Yesterday
> a client said to me, "I'm amazed at how fast you guys turn around
> these wireframes." Well, it's mostly due to jQuery.
>
> So, a big thank you to the creators, shepherds, and evangelists, and
> also to the forum experts who have been remarkably responsive and
> helpful.
>
> Cheers!
> -Kim


[jQuery] I jQery!

2009-03-25 Thread riotbrrd

Just wanted to send a little luv note to the jQuery team. I'm a UI
designer and NOT a programmer, but learning jQuery has allowed me to
make my software wireframes/prototypes way more functional. Yesterday
a client said to me, "I'm amazed at how fast you guys turn around
these wireframes." Well, it's mostly due to jQuery.

So, a big thank you to the creators, shepherds, and evangelists, and
also to the forum experts who have been remarkably responsive and
helpful.

Cheers!
-Kim


[jQuery] Re: How to find a parent

2009-02-28 Thread riotbrrd

You guys rock! thanks.

So, .parents works, .parent does not. I think the reason is
this: .parent only finds the single parent immediately up the tree,
but the div I'm looking for is actually several nodes up. The node
that .parent finds is not a div.popup, so I get no object back.

Thanks again!
-Kim

On Feb 28, 9:33 pm, "Rick Faircloth"  wrote:
> Hmmm...after looking at the docs, it would seem
> "parent" would be more appropriate since Kim is
> looking for the first parent of the link '#cancel'.
>
> Why would you think it should be "parents" which
> would return more than the first parent.
>
> Am I misunderstanding something?
>
> Rick
>
>
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
>
> Behalf Of Rick Faircloth
> Sent: Sunday, March 01, 2009 12:26 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: How to find a parent
>
> Thanks for the tip!
>
> Rick
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of mkmanning
> Sent: Sunday, March 01, 2009 12:18 AM
> To: jQuery (English)
> Subject: [jQuery] Re: How to find a parent
>
> It should be .parents
>
>   $(this).parents('div.popup:first')
>
> On Feb 28, 9:05 pm, "Rick Faircloth"  wrote:
> > Assuming that the cancel link has an id of 'cancel':
>
> > How about:
>
> > $(document).ready(function() {
>
> >      $('#cancel').click(function() {
> >                 $(this).parent('div.popup:first')
> >      });
>
> > });
>
> > Not sure what you want to do with the parent div when you locate it...
>
> > untested, buy may work...
>
> > hth,
>
> > Rick
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
> > On
>
> > Behalf Of riotbrrd
> > Sent: Saturday, February 28, 2009 11:47 PM
> > To: jQuery (English)
> > Subject: [jQuery] How to find a parent
>
> > I have a bunch of Divs with class ".popup". Each div is different in
> > what it contains; some are simple, some are pretty complex, containing
> > tables, other divs, etc..
>
> > If I have a link, for example,"Cancel", within that Div, and the only
> > thing that I know about Cancel is that 1) it has a parent div.popup
> > somewhere up the tree (no idea how many levels), and 2) if I go
> > backwards up the tree from Cancel, the first div.popup I encounter
> > will be the right one, how can I go about finding the right parent
> > div.popup? I'd like to just attach a handler that starts with "this"
> > (meaning the Cancel link) and finds the correct div.popup up the tree.
>
> > Hope this is question is clear. Thanks!
> > -Kim- Hide quoted text -
>
> - Show quoted text -


[jQuery] How to find a parent

2009-02-28 Thread riotbrrd

I have a bunch of Divs with class ".popup". Each div is different in
what it contains; some are simple, some are pretty complex, containing
tables, other divs, etc..

If I have a link, for example,"Cancel", within that Div, and the only
thing that I know about Cancel is that 1) it has a parent div.popup
somewhere up the tree (no idea how many levels), and 2) if I go
backwards up the tree from Cancel, the first div.popup I encounter
will be the right one, how can I go about finding the right parent
div.popup? I'd like to just attach a handler that starts with
"this" (meaning the Cancel link) and finds the correct div.popup up
the tree.

Hope this is question is clear. Thanks!
-Kim


[jQuery] Re: Capture a click outside of a specific object?

2009-01-14 Thread riotbrrd

Hmmm, I wasn't able to find anything about that, though I checked only
quickly. What section fo the docs would that be in?

On Jan 13, 5:44 pm, Kean  wrote:
> You might want to look at live and die method now posted in jQuery
> documentation.
>
> On Jan 13, 11:32 am,riotbrrd wrote:
>
>
>
> > Hi all,
>
> > Is there a simple way to capture a click event in a window/document
> > and then determine whether the click was inside an element #foo, or
> > outside of that element?
>
> > Thanks!
> > -Kim- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: Capture a click outside of a specific object?

2009-01-14 Thread riotbrrd

Thanks, Sam! I had to make one change, then it worked.

I got an error message that "event" was undefined, so I changed the
first line from:
$(document.body).click(function(){
to
$(document.body).click(function(event){

Gotta tell ya, when I hear the phrase "event delegation" my head
starts to hurt. I need something like "Event Delegation for
Idiots." ;-)

Thanks for the help!

-Kim


[jQuery] Capture a click outside of a specific object?

2009-01-13 Thread riotbrrd

Hi all,

Is there a simple way to capture a click event in a window/document
and then determine whether the click was inside an element #foo, or
outside of that element?

Thanks!
-Kim