Re: [jQuery] wrapinner with 1.1.1

2007-02-20 Thread Oliver Boermans
Served? Served what? On 20/02/07, John Resig [EMAIL PROTECTED] wrote: I just got served :-( ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] wrapinner with 1.1.1

2007-02-20 Thread Sam Collett
On 20/02/07, Oliver Boermans [EMAIL PROTECTED] wrote: Served? Served what? On 20/02/07, John Resig [EMAIL PROTECTED] wrote: I just got served :-( Dave knows something about jQuery that John doesn't (or he forgot about) ;) It does show that there can be several ways to do the same thing in

Re: [jQuery] wrapinner with 1.1.1

2007-02-20 Thread Klaus Hartl
Sam Collett schrieb: On 20/02/07, Oliver Boermans [EMAIL PROTECTED] wrote: Served? Served what? On 20/02/07, John Resig [EMAIL PROTECTED] wrote: I just got served :-( Dave knows something about jQuery that John doesn't (or he forgot about) ;) It does show that there can be several ways

[jQuery] wrapinner with 1.1.1

2007-02-19 Thread Oliver Boermans
Hey all, I had some trouble today attempting to use the simple wrapinner plugin with jquery 1.1.1. http://motherrussia.polyester.se/jquery/wrapInner/ Some modification to the plugin code was required to make it do what I was looking for. // The additional argument is 's' (for selector

Re: [jQuery] wrapinner with 1.1.1

2007-02-19 Thread Christian Bach
;', id: 'a'}); Before: pI will become a link to jQuery.com/p After: pa href=http://jquery.com;I will become a link to jQuery.com/a/p /christian 2007/2/19, Oliver Boermans [EMAIL PROTECTED]: Hey all, I had some trouble today attempting to use the simple wrapinner plugin with jquery 1.1.1

Re: [jQuery] wrapinner with 1.1.1

2007-02-19 Thread John Resig
, Oliver Boermans [EMAIL PROTECTED]: Hey all, I had some trouble today attempting to use the simple wrapinner plugin with jquery 1.1.1. http://motherrussia.polyester.se/jquery/wrapInner/ Some modification to the plugin code was required to make it do what I was looking

Re: [jQuery] wrapinner with 1.1.1

2007-02-19 Thread Oliver Boermans
Tidy! Thanks John. While that is suits my particular purpose nicely, I'm curious, how would you to change it to insert the to-be-wrapped content into the _deepest_ point in the supplied HTML snippet. Like regular wrap. eg: Usage: $('p').wrapInner('stronga href=//a/strong'); To make this: pHello

Re: [jQuery] wrapinner with 1.1.1

2007-02-19 Thread John Resig
(this); }); }; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Monday, February 19, 2007 10:50 AM To: jQuery Discussion. Subject: Re: [jQuery] wrapinner with 1.1.1 It seems like this would be a better solution: jQuery.fn.wrapInner = function(html