[jQuery] Re: My first jQuery plugin

2008-07-18 Thread Karl Swedberg
On Jul 18, 2008, at 9:13 AM, Mike Alsup wrote: Yes, Sam's selector will definitely stop climbing the DOM once it finds the first match. That's what the :eq(0) part does. Actually, I don't think that's true. I believe :first, :last, :eq, etc apply their logic after the list of potential e

[jQuery] Re: My first jQuery plugin

2008-07-18 Thread Mike Alsup
> Yes, Sam's selector will definitely stop climbing the DOM once it   > finds the first match. That's what the :eq(0) part does. Actually, I don't think that's true. I believe :first, :last, :eq, etc apply their logic after the list of potential elements has been built. The results are accurate

[jQuery] Re: My first jQuery plugin

2008-07-18 Thread Karl Swedberg
Hi Pete, Yes, Sam's selector will definitely stop climbing the DOM once it finds the first match. That's what the :eq(0) part does. The :first selector does the same thing as :eq(0), so this would work equally as well: $("#myelement").parents("table:first") --Karl Karl Swedb

[jQuery] Re: My first jQuery plugin

2008-07-18 Thread ProggerPete
Mmm tasty. That does look the goods. Do you know whether under the hood it is smart enough to stop climbing the DOM once it finds the 1st match? Cheers, Pete On Jul 17, 5:40 pm, Sam Collett <[EMAIL PROTECTED]> wrote: > How about: > > $("#myelement").parents("table:eq(0)") > > Does that do what

[jQuery] Re: My first jQuery plugin

2008-07-17 Thread Sam Collett
How about: $("#myelement").parents("table:eq(0)") Does that do what you want? Example: http://demos.texotela.co.uk/parents.html --Sam On Jul 17, 7:51 am, ProggerPete <[EMAIL PROTECTED]> wrote: > Hi Andy, >   parents doesn't do quite what I want.  I want a method I can use in > event delegatio

[jQuery] Re: My first jQuery plugin

2008-07-17 Thread ProggerPete
Hi Andy, parents doesn't do quite what I want. I want a method I can use in event delegation handlers that basically says, 'Give me the nearest x element'. I could of course check the current element, if it doesn't match I could then do a parents and then work on the 1st result in that, but th

[jQuery] Re: My first jQuery plugin

2008-07-15 Thread Andy Matthews
Pete... There is a built in parent method which does pretty much what you're doing. http://remysharp.com/jquery-api/ Look under parents(). -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ProggerPete Sent: Tuesday, July 15, 2008 10:41 AM To: jQ

[jQuery] Re: My first jQuery

2008-06-04 Thread gandalf458
Oh what a plonker! Thanks for that. Works a treat now. Now I can play with different effects. Cheers G :)

[jQuery] Re: My first jQuery

2008-06-04 Thread Scott Sauyet
gandalf458 wrote: Thanks guys. I am trying to do something based on what I've seen in a couple of the tutorials. But I think it's more different that I realise. The page I'm playing with is at You're using an id selector, "#section1", but your markup is using "section1" as a class. Either sw

[jQuery] Re: My first jQuery

2008-06-04 Thread gandalf458
Thanks guys. I am trying to do something based on what I've seen in a couple of the tutorials. But I think it's more different that I realise. The page I'm playing with is at http://www.compassion-in-business.co.uk/x.php Thanks

[jQuery] Re: My first jQuery

2008-06-04 Thread Scott Sauyet
gandalf458 wrote: I'm trying my first simple jQuery task, a mouseover event to display a box with some text. $("p.sec-ia").addClass("unhide").show("slow"); works fine but when I add the mouseover $("#section1").hover(function(){ $("p.sec-ia").addClass("unhide").show("slow"); },funct

[jQuery] Re: My first jQuery

2008-06-04 Thread Sean O
Did you place your code inside jQuery's document ready function? $(document).ready(function() { $("#section1").hover(function(){ $("p.sec-ia").addClass("unhide").show("slow"); },function(){ $("p.sec-ia").

[jQuery] Re: My first jQuery

2008-06-04 Thread Joseph DJOMEDA
hi i'm also a newby.try with something simple to see whether you have set jquery well.even copy and paste from a tuorial.just to be sure your are not looking for something elsewhere. 2008/6/4 gandalf458 <[EMAIL PROTECTED]>: > > I'm trying my first simple jQuery task, a mouseover event to display

[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-20 Thread Sam Sherlock
nice work. a good start select rows or cols - and be able to copy (just them to copypaste) shift clicking sorting (excel can exclude header cells) double click to edit in place (I see you can put the value in the top, but that alot of backward and forewards with the mouse) transform cell referance

[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-19 Thread Robert-CFL
Here is a link to a running version of the plugin: http://www.weebly.com/uploads/3/1/3/8/313814/jquery.sheet.html On Dec 19, 3:02 pm, Robert-CFL <[EMAIL PROTECTED]> wrote: > Actually, I thank you for the criticism. The reason that I went ahead > and posted it was because it is (in reality) past

[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-19 Thread Robert-CFL
Actually, I thank you for the criticism. The reason that I went ahead and posted it was because it is (in reality) past a beta state in that it works and at TrimPath it's in version 1.0.14. It's in beta in my eyes because I'm porting it over from standard JavaScript and the additional jQuery fun

[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-18 Thread Shawn
Sounds like a good plugin, but may I offer a couple of suggestions? 1. Post a demo of the plugin. I don't have time to download and setup all the plugins I might potentially want to use. A quick sample takes me seconds to make that evaluation, rather than 30+ minutes to go through a setup ar

[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-18 Thread Sam Sherlock
The demo page is not loading any jquery. if this is the url http://jqueryplugins.weebly.com/jquerysheet-in-action.html - S On 18/12/2007, Robert-CFL <[EMAIL PROTECTED]> wrote: > > > I know there's not to much content, but let me know if you want to > help out with this plugin. it has GREAT poss