Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-13 Thread Karl Rudd
Do you mean the $( 'selector', context)? By default $() searches the document, the document is the context. If you add a second argument that is a DOM element or a jQuery object then they become the context, and it searches inside them. For more info I suggest: http://docs.jquery.com/Core

[jQuery] Newbie Question - wraping an element

2007-02-13 Thread Agrawal, Ritesh
Hi, I have been using jquery for some time but never really created my own extension that requires dom manipulation. I am wondering how can I wrap a span with two table element. So my original code is something like this Original div class=box span class=headingHeading/span /div Modified

Re: [jQuery] Newbie Question - wraping an element

2007-02-13 Thread Karl Rudd
You almost had it :). There's a handy function called wrap that you can use. $('div.box').children('span.heading').wrap('tabletrtd/td/tr/table'); More documentation here: http://docs.jquery.com/DOM/Manipulation#wrap.28_elem_.29 Karl Rudd On 2/13/07, Agrawal, Ritesh [EMAIL PROTECTED]

[jQuery] Some jQuery tips and tricks

2007-02-13 Thread Dmitrii Dimandt
Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are available here: http://dmitriid.com/jquery/en/ I hope to add more examples with time. Hopefully, this

Re: [jQuery] check for checked

2007-02-13 Thread Andreas Wahlin
As usual, it comes down to selector-fu, thanks gyes :) Andreas On Feb 12, 2007, at 23:56 , Klaus Hartl wrote: Mike Alsup schrieb: What about this? $(':checkbox:checked', checkboxes); Sweet! If you don't need to filter radios, I guess $(':checked') would work, doesn't it? -- Klaus

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Rafael Santos
Just one comment, i dont like to repeat ID's =) 2007/2/13, Dmitrii Dimandt [EMAIL PROTECTED]: Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are available

[jQuery] Attribute Selector issue

2007-02-13 Thread Allan Mullan
Hey all, I'm probably just tired but I would have thought that the following should get any links with a href=/home.html $('[EMAIL PROTECTED]/home.html]') But it doesn't work... What's the correct way of getting these elements? Thanks, Allan ___

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread Kolman Nándor
Hi, Some browsers store the href attribute as full path, so /home.html would become http://www.some.com/home.html. Nandi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allan Mullan Sent: Tuesday, February 13, 2007 10:44 AM To: jQuery Discussion.

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Andreas Wahlin
6) Finally, can anyone comment on introducing jQuery into a team of web developers with low to moderate javascript experience, building webapps or web sites that could run into the millions of dollars? Is jQuery robust enough and easy enough to deploy that it's an easy win? I showed

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Klaus Hartl
Dmitrii Dimandt schrieb: Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are available here: http://dmitriid.com/jquery/en/ I hope to add more

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread David
hi Allan, To quote Jorn's tutorial: More often then selecting anchors by name, you might need to selected anchors by their href attribute. This can be a problem as browsers behave quite inconsistently when returning what they think the href value is. To match only a part of the

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread Allan Mullan
Thanks heaps for that David, works beautifully :-) Do you have a link to the tutorial? Cheers, Allan David wrote: hi Allan, To quote Jorn's tutorial: More often then selecting anchors by name, you might need to selected anchors by their href attribute. This can be a problem

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread Aaron Heimlich
On 2/13/07, Allan Mullan [EMAIL PROTECTED] wrote: Hey all, I'm probably just tired but I would have thought that the following should get any links with a href=/home.html $('[EMAIL PROTECTED]/home.html]') But it doesn't work... What's the correct way of getting these elements? Nope,

[jQuery] Finding All IDs beginning with a certain string

2007-02-13 Thread paulkissick
Is it possible to find all IDs who's beginning matches a string but with different endings. I can't use class's as i'm using them for styles. -- View this message in context: http://www.nabble.com/Finding-All-IDs-beginning-with-a-certain-string-tf3220128.html#a8942932 Sent from the JQuery

Re: [jQuery] Finding All IDs beginning with a certain string

2007-02-13 Thread Erik Beeson
From http://docs.jquery.com/DOM/Traversing/Selectors#CSS_Selectors : [EMAIL PROTECTED] an E element whose foo attribute value begins exactly with the string bar So maybe (untested): $('[EMAIL PROTECTED]') where foo is what the all of the IDs start with. You know you can style classes too...

[jQuery] Which file to download from SVN?

2007-02-13 Thread Seb Duggan
OK, I'm not very well up on SVN... I've read that the latest build on SVN might fix the problem of flickering in FF Mac, so thought I'd download it to test... Which file/branch/etc. should I be trying? Seb ___ jQuery mailing list

Re: [jQuery] Finding All IDs beginning with a certain string

2007-02-13 Thread paulkissick
Works a treat. Thanks a lot. The class is doing the styles, but i have to apply a unique ID for certain rows on a table. Hard to explain completely, but suffice to say, your code works. Much appreciated. Erik Beeson wrote: From http://docs.jquery.com/DOM/Traversing/Selectors#CSS_Selectors :

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Dmitrii Dimandt
Thank you! The example has been updated! On 2/13/07, Klaus Hartl [EMAIL PROTECTED] wrote: Here's more semantic markup I'd use for that: ul id=wrapper li h2Title 1/h2 pBody 1/p /li li h2Title 2/h2 pBody 2/p /li li h2Title

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Luke Lutman
Matt Kruse wrote: 1) There seems to be a lot of emphasis on using selectors and pseudo-selectors to access everything. It makes code short and simple, but is it really the most efficient? Reusing selectors helps performance. You can reuse a selection by storing selected elements in a

[jQuery] Get the selected option of a select element

2007-02-13 Thread Alexandre Plennevaux
hello! i'm trying to have the selected option's value in a select element populate an input field. i tried this: script type=text/javascript $(document).ready(function(){ $('#allOrganisations').change(function() { $(#organisation).attr(value, $(option,this).val()); }); });

Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-13 Thread Mike Alsup
hmm.. no response... experts..do you have any suggestion.. This is almost certainly an issue with IE's 'hasLayout' property. What version of the corner plugin are you using? The latest version shouldn't have any problems with layout issues.

Re: [jQuery] Get the selected option of a select element

2007-02-13 Thread Mike Alsup
it kind of work, but it always give the same value, no matter what the user picks. Is there a way to know which option is selected ? i looked in the documentation, and :selection is not supported. For single selects you can get the value right on the select element:

Re: [jQuery] Enabling wildcards in .className selector

2007-02-13 Thread George Adamson
Just discovered that simple wildcards can be used *without* modifying jquery code (phew), by using \\S* in the selector syntax... Can be done like this: $(INPUT.myClass\\S*) will match .myClass1 and .myClassHello etc. This only works where selector searches in the jquery code rely on a regex,

[jQuery] Enabling wildcards in .className selector

2007-02-13 Thread George Adamson
I recently had a need for a simple wildcard in the class selector syntax. eg: $(INPUT.myClass*) would match .myClass1 and .myClassHello etc. As an experiment to make this work I made a small change to JQuery's code but that is decidedly poor practice! I'd like to apply the change as a small

Re: [jQuery] Newbie Question - wraping an element

2007-02-13 Thread Agrawal, Ritesh
Hi, Thanks to all your reply...actually I can use wrap..as I will be inserting one more row..and both of them are not in the center of the table. ...I just showed the example for convience...the actual code that I am trying to work out is this Original Original div class=box span

Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-13 Thread Rey Bango
Ritesh, There are a couple of corner plugins available. Which one are you using for this example? I'll see if I can help. Rey.. Agrawal, Ritesh wrote: hmm.. no response... experts..do you have any suggestion.. Regards, Ritesh Agrawal, Ritesh wrote: Hi, I am trying to get corner

Re: [jQuery] Enabling wildcards in .className selector

2007-02-13 Thread Klaus Hartl
George Adamson schrieb: Just discovered that simple wildcards can be used *without* modifying jquery code (phew), by using \\S* in the selector syntax... Can be done like this: $(INPUT.myClass\\S*) will match .myClass1 and .myClassHello etc. This only works where selector searches in

Re: [jQuery] Get the selected option of a select element

2007-02-13 Thread Agrawal, Ritesh
try this $(#Organisations).change(function(){ $(#organisation).attr('value', $(this).attr('value') ); }); Regards, Ritesh Alexandre Plennevaux-2 wrote: hello! i'm trying to have the selected option's value in a select element populate an input field. i tried this:

[jQuery] Closing a tickbox from within an iframe

2007-02-13 Thread mmch
Is it possible to be able to close an iframe from within itself? I am using an iframe thickbox to upload an image. I would like to be able to close the iframe/thickbox and refresh the page when the script completes. Anyone got any ideas? Thanks Marc -- View this message in context:

Re: [jQuery] Setting an image caption width

2007-02-13 Thread Kenneth
This should work: $('div.image p').width($('div.image p').prev().width()); Although I am not sure why $(this) would not work; perhaps someone else will know why? On 2/13/07, Seb Duggan [EMAIL PROTECTED] wrote: I've got a number of pictures with captions that will be floated right in the main

Re: [jQuery] Setting an image caption width

2007-02-13 Thread Klaus Hartl
Seb Duggan schrieb: I've got a number of pictures with captions that will be floated right in the main body text. The HTML looks like this: div class=image img src=myimage.jpg width=250 height=350 alt=Image description pA caption for the image/p /div Because the images

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Paul
Matt, I think your final statement sealed the deal when I was deciding. This list is packed with experienced, patient, and helpful jQuery gurus. I've been developing for nearly a decade and have subscribed to a lot of lists over those years, and the degree of helpfulness you see on here is rare

Re: [jQuery] Setting an image caption width

2007-02-13 Thread Seb Duggan
Thanks Klaus. Yes, I'm using jQuery 1.1. However, this still doesn't seem to work. Try the sample code with a longer caption, and this: $('div.image p').click( function() { alert( $(this).width() ); }); Now, clicking the caption will report its actual width. It's not being limited to the

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Alexandre Plennevaux
Matt, You 've been one of my js heroes for years, welcome on board! alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Sent: mardi 13 février 2007 15:11 To: 'jQuery Discussion.' Subject: Re: [jQuery] jQuery Design Decisions? Comparison to

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Kenneth
Matt, First off, a warning that this response doesn't address any of your specific questions; I'm still semi-new to jQuery and thus I'll leave the big questions for others. However, if you don't read anymore past this, just count this as a vote of confidence for the jQuery community! Before I

Re: [jQuery] problem with mootools like top navigation

2007-02-13 Thread dolorian
Now with the new version of the Interface plugin, there is a function 'animation stop'. Can you resolve the 'stack up issue' with it, as I could not. -- View this message in context: http://www.nabble.com/problem-with-mootools-like-top-navigation-tf3159556.html#a8945191 Sent from the JQuery

[jQuery] Accordion trouble

2007-02-13 Thread Jon Ege Ronnenberg
Hi all. I've just found the Accordion plug-in and it seems pretty straight forward to implement but I get an $(:first-child, this)[0] has no properties in firebug when the page load and the navigation doesn't work. My code is really simple but maybe it could be thickbox or I'm just tired.. ...

Re: [jQuery] Enabling wildcards in .className selector

2007-02-13 Thread George Adamson
Oh silly me, thanks Klaus, excellent suggestion. That should cover most situations. Much simpler than fiddling with regex, and easier for others to follow! Cheers, George Klaus Hartl wrote: George Adamson schrieb: Just discovered that simple wildcards can be used *without* modifying

[jQuery] Memory leak in blank index.htmljquery

2007-02-13 Thread Michal . Till
Hi all, I was investigating a memory leak in my application and unfortunately everything led to jQuery. So I created this simple HTML file: html head script src=packages/jquery/jquery-latest.pack.js /script /head body test /body /html Then I started Drip, the IE Leak Detector

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Jake McGraw
Matt, Just my two cents. JQuery's selectors and transversing got me hooked, its abstracted AJAX functions made me stay. If you're looking to introduce jQuery to a group of developers, why not have them develop the same application in plain jane js and then using jQuery. Compare the flexibility

Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-13 Thread Mike Alsup
I am using Dave Methvin's corner plugin..Its available from the link below But what version? When I run your code with the latest version (1.7) I don't have any problems in IE (6 or 7). Mike ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Memory leak in blank index.htmljquery

2007-02-13 Thread John Resig
How fast are you reloading? We have code to remove all memory leak-able code, but if it's reloading too fast, it may never get to that point. To our understanding, jQuery doesn't have any known leak points. What version of jQuery are you using? --John On 2/13/07, Michal.Till [EMAIL PROTECTED]

[jQuery] Select box manipulation plugins update

2007-02-13 Thread Sam Collett
I have updated my plugins for working with select boxes. I am unable to test in Safari, but there should hopefully be no problems. Tested in IE 7, Firefox 2 and Opera 8.54. Available at http://www.texotela.co.uk/code/jquery/select/ Changes: addOption also replaces options with the same value (so

Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-13 Thread Agrawal, Ritesh
Hi Mike, Thanks for probing me...actually the problem was with jquery..I was using older version of jquery ..I downloaded that last year in November...once I updated my jquery everything started working fine.. cheers :) Ritesh malsup wrote: I am using Dave Methvin's corner plugin..Its

Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-13 Thread Mike Alsup
Mike's been doing a lot of heavy lifting on the plugin lately, so I wouldn't call it *my* plugin. Especially since it isn't working. :-) Can you post a link to a test page? Lacking that, can you expand on the definition of isn't working and describe what you are seeing? Hi Dave, I tested

Re: [jQuery] Accordion trouble

2007-02-13 Thread Sam Collett
On 13/02/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: Hi all. I've just found the Accordion plug-in and it seems pretty straight forward to implement but I get an $(:first-child, this)[0] has no properties in firebug when the page load and the navigation doesn't work. My code is really

[jQuery] wrap, before, after all not working with table data

2007-02-13 Thread Ryan Doom
Hey guys, does Jquery not get along with complex HTML table wrapping or handling? I posted this last night, and haven't heard anything. Here is the source code: http://www.ryandoom.com/Portals/5/PhotoDrop.zip I have been playing with Jquery for about a week now and have had a lot of success

[jQuery] Why not standardize to use jQuery( instead of $('...

2007-02-13 Thread howard chen
or jq('#... this completely solved the problem of collision... howard ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Accordion trouble

2007-02-13 Thread Jon Ege Ronnenberg
That's true. It's easy to forget that jQuery can't do EVERYTHING for you ('cause it's awesome). Thanks On 2/13/07, Sam Collett [EMAIL PROTECTED] wrote: On 13/02/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: Hi all. I've just found the Accordion plug-in and it seems pretty straight forward

Re: [jQuery] Which file to download from SVN?

2007-02-13 Thread Karl Swedberg
Hi Seb, If you want to do an SVN checkout, the instructions at http:// docs.jquery.com/Downloading_jQuery should help. If you just want to quickly grab a file, feel free to take one of the flavors on my test server. They are all Rev 1316 from 2/9/07, and they should have the flicker fix

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread R. Rajesh Jeba Anbiah
On Feb 13, 2:23 pm, Dmitrii Dimandt [EMAIL PROTECTED] wrote: I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are available here:http://dmitriid.com/jquery/en/

[jQuery] Jquery Shortkeys Plugin - Ctrl doesn't work?

2007-02-13 Thread mundi
maybe i'm missing something obvious, but when i do this... $().shortkeys({ 'Ctrl': function(){ alert('Ctrl'); } }); i get nothing. yet any other key i assign works just fine. i tried all lowercase too ctrl. does

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread Brandon Aaron
This has been fixed in SVN but you'll need Revision 1323 or greater. -- Brandon Aaron On 2/13/07, Aaron Heimlich [EMAIL PROTECTED] wrote: On 2/13/07, Allan Mullan [EMAIL PROTECTED] wrote: Hey all, I'm probably just tired but I would have thought that the following should get any links

Re: [jQuery] wrap, before, after all not working with table data

2007-02-13 Thread Agrawal, Ritesh
Hi all , This seems exactly the same problem as mine see http://www.nabble.com/Newbie-Question---wraping-an-element-tf3219302.html Glad to see someone else is also having trouble :-) Ritesh Ryan Doom wrote: Hey guys, does Jquery not get along with complex HTML table wrapping or

Re: [jQuery] populate/generate selectbox on the fly?

2007-02-13 Thread Jake McGraw
Dominik: If you're comfortable using the json_encode function in PHP 5.2.0, you could do the following: Client Side (each id for select, #company for ul): $(function(){ $(#category).change(function(){ $.getJSON('myapp.php',{category:$(this).val()},function(json){ $(#state).empty();

Re: [jQuery] Closing a thickbox from within an iframe

2007-02-13 Thread James Thomas
Sure - I just recently asked the same question and the method to do this is: $(frameElement); // The iframe itself $(frameElement.parentNode); // This is the div tag containing the iframe mmch wrote: Is it possible to be able to close an iframe from within itself? I am using an iframe

Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-13 Thread Daemach
I'm not sure how I missed that. I use http://jquery.bassistance.de/api-browser and http://docs.jquery.com/DOM/Traversing/Selectors on a daily basis. Again, thanks. I'm a DOM programmer so I'm having to force myself to rethink everything. Sometimes it just takes a hit from the experts to break

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread sdkester
Mr. Kruse, I'd like to take a minute to respond to your well thought out post. Item 6 is the only one I think I can speak authoritatively on. I'm a msdn.microsoft.com/vfoxpro/ Visual Foxpro developer working at a multi location clinic developing intranet applications that fill the gaps left

Re: [jQuery] Which file to download from SVN?

2007-02-13 Thread Geoffrey Knutzen
Thank you for these links Karl. I was about to request this when I got called away. I came back only to find this post. Thank you very much. -Geoff _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg Sent: Tuesday, February 13, 2007 8:22 AM To: jQuery

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Karl Swedberg
On Feb 13, 2007, at 11:22 AM, R. Rajesh Jeba Anbiah wrote: For #1, what about: $(document).ready(function() { $(#wrapper p).hide(); //hide initially $(#wrapper h2).click (function() { $(p, $(this).parent()).slideToggle(slow); }); }); Looks good to me.

Re: [jQuery] jQuery Validation 1.0 Alpha

2007-02-13 Thread Jörn Zaefferer
Aaron Heimlich schrieb: On 2/12/07, *Jörn Zaefferer* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Implementing multiple messages per rule via plugin settings should be pretty straight forward, but not via the other mechanisms (title attribute, error labels in markup).

Re: [jQuery] Accordion trouble

2007-02-13 Thread Jörn Zaefferer
Jon Ege Ronnenberg schrieb: That's true. It's easy to forget that jQuery can't do EVERYTHING for you ('cause it's awesome). Thanks By the way, I've update the plugin (http://bassistance.de/jquery-plugins/jquery-plugin-accordion/) today, it now allows to close all parts of the accordion via

Re: [jQuery] interface autocomplete wont work in IE?

2007-02-13 Thread bdee
any luck with this - i still have been unable to get it to work. Charles Capps wrote: bdee wrote: I have been playing with the autocomplete feature of the interface plugin and i have it working nicely in firefox but for some reason it doesnt work in IE. how can i get it to work in IE?

Re: [jQuery] wrapping or cloning problem

2007-02-13 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Hi John. Thanks for taking a stab at this! Your solution does fit my problem statement, and I agree it's a clever approach. I grabbed the function you sent and I got wrapall from the URL you sent. I'm not getting good behavior overall from it and I'm new enough to jQuery that I can't tell

Re: [jQuery] Select box manipulation plugins update

2007-02-13 Thread Sam Collett
On 13/02/07, Sam Collett [EMAIL PROTECTED] wrote: I have updated my plugins for working with select boxes. I am unable to test in Safari, but there should hopefully be no problems. Tested in IE 7, Firefox 2 and Opera 8.54. Available at http://www.texotela.co.uk/code/jquery/select/ Changes:

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread Brandon Aaron
And actually I just fixed an issue with the ^= selector and href in firefox. So you will actually need REV 1336. a href=#test/a $('[EMAIL PROTECTED]#]').size(); // previous to 1336 in firefox would report 0 Hopefully that wraps up the href attribute selector issues. -- Brandon Aaron On

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Jörn Zaefferer
Matt Kruse schrieb: I am evaluating jQuery for two purposes: I think one point yet deserves a litte more focus: jQuery's core is small, but it has already a ton of plugins available. Still, it is quite likely that you have some requirement that isn't covered fully by an available plugin. In

Re: [jQuery] wrapping or cloning problem

2007-02-13 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
I posted my sample HTML here: http://ncyoung.com/temp/simplify.html .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.: ||:. Nathan Young Cisco.com-Interface Development A: ncy1717 E: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED]

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Jörn Zaefferer
Jörn Zaefferer schrieb: Matt Kruse schrieb: I am evaluating jQuery for two purposes: Just discovered your use unary operator tip (http://www.javascripttoolbox.com/bestpractices/#plus). Great! Much more succinct then a parseInt(value). I don't really like the term Best Practice

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Rey Bango
I haven't seen a community were developers learnd that much from others as jQuery's. The bloody newbies that asked basic questions months or even weeks ago, are now answering complex question themselve. And some of them even make it to the project team. ;o)

Re: [jQuery] jQuery Validation 1.0 Alpha

2007-02-13 Thread Aaron Heimlich
On 2/13/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: The first line of that function is already included in the plugin I know, that's where I got it from. but not generating IDs. Sounds like a good idea, I'll investigate that. Here's something to start you off: function

Re: [jQuery] Which file to download from SVN?

2007-02-13 Thread Seb Duggan
Thanks Karl - that's very useful. And yes, the FF flicker is now fixed! Seb On 13 Feb 2007, at 16:21, Karl Swedberg wrote: Hi Seb, If you want to do an SVN checkout, the instructions at http:// docs.jquery.com/Downloading_jQuery should help. If you just want to quickly grab a file,

Re: [jQuery] Table data malformed in DOM using before, after and wrap

2007-02-13 Thread Ryan Doom
This worked Karl! Thanks... Would this be a bug then? * Ritesh - Karl's comment solved my problem, even though I think how I was doing it 'should' work. Ryan Doom [EMAIL PROTECTED] www.webascender.com office   : 517.579.0420 mobile : 517.507.9274

Re: [jQuery] jQuery + Yahoo Pipes

2007-02-13 Thread Rey Bango
Very cool. I wanted to look at doing something with Pipes so this will give me a start. Rey Shane Graber - jQuery wrote: Saw this posted on del.icio.us this afternoon and thought I'd forward it to the discussion group: http://comments.deasil.com/2007/02/10/y-pipe-integrated-with-ajax/

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Michael E. Carluen
Matt, Welcome! I have been a huge fan of your work. I am hoping you’d adopt jQuery instead of others... it’ll be great to have another js guru (amongst the many) in the camp. Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer

Re: [jQuery] Setting an image caption width

2007-02-13 Thread Klaus Hartl
Seb Duggan schrieb: Thanks Klaus. Yes, I'm using jQuery 1.1. However, this still doesn't seem to work. Try the sample code with a longer caption, and this: $('div.image p').click( function() { alert( $(this).width() ); }); Now, clicking the caption will report its actual width.

Re: [jQuery] Table data malformed in DOM using before, after and wrap

2007-02-13 Thread Dave Methvin
$(.Photo).before(table border='0' cellpadding='0' cellspacing='0' width='1'trtdx /tdtd).after(/tdtdy/td/tr/table); The arguments to .before() and .after()should be well-formed complete HTML fragments. You can't pass the top half of a table to .before() and the bottom half to .after(). To wrap

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Dave Methvin
Just discovered your use unary operator tip (http://www.javascripttoolbox.com/bestpractices/#plus). Great! Much more succinct then a parseInt(value). Be very careful using the + operator this way. +32px returns NaN parseInt(32px) returns 32 ___

Re: [jQuery] Improve jQuery.prop, was: Setting an image caption width

2007-02-13 Thread Jörn Zaefferer
Klaus Hartl schrieb: Stupid me, I forgot a return statement (too much Ruby lately)... and also the unit seems to be required: $('div.image p').css('width', function() { return $(this).prev().width() + 'px'; }); jQuery.prop could be modified to append the px to computed values like

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Karl Swedberg
On Feb 13, 2007, at 4:25 PM, Dave Methvin wrote: Just discovered your use unary operator tip (http://www.javascripttoolbox.com/bestpractices/#plus). Great! Much more succinct then a parseInt(value). Be very careful using the + operator this way. +32px returns NaN parseInt(32px) returns 32

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Matt Kruse
Thank you to everyone for all your responses. I have indeed decided to go with jQuery as a base for future work, so I also plan to contribute to the project with my own plugins, etc. I like the summary of jQuery that has been expressed like this: $('selectSomething').doSomething() It seems

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Matt Kruse
dave.methvin wrote: Just discovered your use unary operator tip (http://www.javascripttoolbox.com/bestpractices/#plus). Great! Much more succinct then a parseInt(value). Be very careful using the + operator this way. +32px returns NaN parseInt(32px) returns 32 True, but in this case

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Brandon Aaron
I find having the doSomething part as separate plugins works very nicely and allows me to be flexible with different sites and not load a bunch of stuff I'm not actually using. I then just create an ant task to put all the files into one and compress. -- Brandon Aaron On 2/13/07, Matt Kruse

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Dave Methvin
Be very careful using the + operator this way. +32px returns NaN parseInt(32px) returns 32 True, but in this case you aren't really type-converting to a number, you're actually wanting to extract a number from a string. Yeah, I just saw the gleam in Jörn's eye and knew he was thinking

Re: [jQuery] Setting an image caption width

2007-02-13 Thread Seb Duggan
Perfect, Klaus! Thanks, that does exactly what I want it to. Now to rewrite the HTML, so the float div is generated automatically, and the caption is generated from the alt attribute... Seb On 13 Feb 2007, at 21:03, Klaus Hartl wrote: Stupid me, I forgot a return statement (too much

[jQuery] left to right animation

2007-02-13 Thread Geoffrey Knutzen
I am trying to make a left to right animation similar to slideDown and I am having no luck. Is it even possible? And if it is, how do you do it? Thanks -Geoff ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Jörn Zaefferer
Brice Burgess schrieb: I really don't like the idea of forking jQuery, but I'd much rather have less selectSomething logic and more doSomething logic, so maybe at some point I'll prepare a version of about the same size (or bigger) with emphasis on the opposite end. Or maybe not. jQuery does

Re: [jQuery] Memory leak in blank index.htmljquery

2007-02-13 Thread Michal . Till
Hi, How fast are you reloading? What version of jQuery are you using? To limit possible influences, I made the same experiment with plain IEs 6 and 7, reloading the test file manually, once in a 15-20 seconds interval. I use the latest file from jquery.com, 1.1.1, * Rev: 1153, Date:

Re: [jQuery] left to right animation

2007-02-13 Thread Brice Burgess
Geoffrey Knutzen wrote: I am trying to make a left to right animation similar to slideDown and I am having no luck. Is it even possible? And if it is, how do you do it? Thanks -Geoff Geoff, Anything is possible :) I know that the Interface Elements for jQuery covers this under

Re: [jQuery] left to right animation

2007-02-13 Thread Ⓙⓐⓚⓔ
I used .animate({opacity: 'hide',height: 'hide', left:window.innerWidth-90, top:window.innerHeight-90}, slow,'',function(){$(this).attr('style','display:none')}) to slide down and to the left! on my puppy's pages http://jpassoc.com/junior all his slide shows use that effect! On 2/13/07,

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread John Resig
There's a whole mess of Forms plugins: http://docs.jquery.com/Plugins#Forms All of them focus on different tasks (although, there's currently a bunch of validation plugins). I think you'll find that it's trivial to extend jQuery with plugins, and really make it your own. --John On 2/13/07,

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Rey Bango
Hi Matt, It seems that the library has heavy emphasis on the selectSomething in its core, and depends a lot on plugins for the doSomething part. I can forsee writing my own jQuery++ or whatever that adds a lot more functionality that I consider to be core rather than depending on multiple

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Jörn Zaefferer
Dave Methvin schrieb: True, but in this case you aren't really type-converting to a number, you're actually wanting to extract a number from a string. Yeah, I just saw the gleam in Jörn's eye and knew he was thinking about changing the parseInt/parseFloat to + in jQuery core. There are

Re: [jQuery] Improve jQuery.prop, was: Setting an image caption width

2007-02-13 Thread John Resig
Can't think of any way offhand - go for it. --John On 2/13/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Klaus Hartl schrieb: Stupid me, I forgot a return statement (too much Ruby lately)... and also the unit seems to be required: $('div.image p').css('width', function() { return

Re: [jQuery] left to right animation

2007-02-13 Thread Brice Burgess
Geoffrey Knutzen wrote: I am trying to make a left to right animation similar to slideDown and I am having no luck. Is it even possible? And if it is, how do you do it? Geoff, I forgot to mention the jQ Easing plugin; http://gsgd.co.uk/sandbox/jquery.easing.php This can serve as a

Re: [jQuery] interface autocomplete wont work in IE?

2007-02-13 Thread Charles Capps
I ended up hacking the display: block into the code - see around line 150: http://leftoversraiding.org/skin/leftovers-main/js/interface/iautocompleter.js I've still been trying to figure out the actual source of the behavior so I can file an actual bug and perhaps more sane patch, but this fixed

[jQuery] jQuery (or code based on it) makes IE7 crash

2007-02-13 Thread Danial Tzadeh
Have anybody encountered such a problem? It happens when ajax is called probably, as my clients say so (based on whenever loading... message appears) Thanks in advance Danial ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Attribute Selector issue

2007-02-13 Thread David
hi Allan, The tutorial is here: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery Cheers, DB Allan Mullan wrote: Thanks heaps for that David, works beautifully :-) Do you have a link to the tutorial? Cheers, Allan David wrote: hi Allan, To quote Jorn's tutorial:

Re: [jQuery] Improve jQuery.prop, was: Setting an image caption width

2007-02-13 Thread Klaus Hartl
Jörn Zaefferer schrieb: Klaus Hartl schrieb: Stupid me, I forgot a return statement (too much Ruby lately)... and also the unit seems to be required: $('div.image p').css('width', function() { return $(this).prev().width() + 'px'; }); jQuery.prop could be modified to append the

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Matt Kruse
Rey Bango-2 wrote: Send me the link to the PT one and we'll see what we can do. This one is nice: http://snook.ca/files/prototype_1.5.0_snookca.pdf as is this one: http://www.snook.ca/archives/javascript/prototype_disse/ Although sometimes cheat sheets end up just being a list of methods

  1   2   >