[jQuery] Re: idTabs and hoverintent

2008-10-30 Thread Sean Catchpole
If you bind idTabs using click (by default) then you can use the following to trigger it via hoverIntent: $(a[href*=#]).hoverIntent(function(){ $(this).click(); }, function() {}); ~Sean On Oct 29, 5:08 am, Ettiene [EMAIL PROTECTED] wrote: Hi there, I've implemented idTabs on a website and

[jQuery] Re: Annouce: idTabs 2.0

2008-04-24 Thread Sean Catchpole
1. Is jQuery 1.2.3 a requirement? An excellent question, as I only tested with 1.2.3... but it's highly probably that it works with older versions too. I'll try to test it out later. 2. What do each of the individual files do? For example, there is a notice to download jQuery.idTabs.min.js

[jQuery] Annouce: idTabs 2.0

2008-04-21 Thread Sean Catchpole
It's been a long time since I released idTabs 1.0 and I'm happy to say that a lot more people than I was expecting are using it. As time has passed, so has my programming style. I have completely recoded the structure and added a few options people requested. idTabs can now be bound dynamically,

[jQuery] Re: plugins leaving jquery namespace in bind function

2008-02-01 Thread Sean Catchpole
var mb3 = $(this); On that line, the this is referring to the scope of the function which is not inside of an $.each(..) or $.fn.foo(..) ~Sean

[jQuery] Re: Masked Input Optional Characters

2008-01-29 Thread Sean Catchpole
Jason, Based on your response I would recommend allowing the user to enter either format using the watermark plugin to suggest the format of the input, then if they enter it lazily (ex: Month 9) when they tab out of the input box, correct their format. The reduces any server side validation and

[jQuery] Re: [ANN] Lily, javascript visual programming tool

2008-01-29 Thread Sean Catchpole
Excellent app. Visual programming is a lot of fun and great for creating quick mashups and data analysis. Is there a way to separate the visual code and the results it produces? ~Sean

[jQuery] Re: Problem in [] filter

2008-01-28 Thread Sean Catchpole
You could try $('tr:has(td):even') [hasElement] support was removed in ~v1.2(perhaps earlier) in favor of :has(element) ~Sean

[jQuery] Re: Shadowbox Media Viewer

2008-01-25 Thread Sean Catchpole
Awesome work Michael. I love the title font, excellent choice. Glad to see it's library independent. ~Sean On Jan 25, 2008 3:45 AM, mjijackson [EMAIL PROTECTED] wrote: Hello all, I'm putting the finishing touches on a media viewer application that I coded up recently (think Thickbox). It

[jQuery] Re: jQuery 1.1.2 Released: Happy 2nd Birthday!

2008-01-16 Thread Sean Catchpole
Great release, love the changes. Thank you ~Sean

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Sean Catchpole
1. Is jQuery going to be here for the long term? Yes, with a large and active community jQuery is in it for the long run. Help is always easy to find. 2. Why not use prototype, what are the benefits of jQuery over it? jQuery simplifies and reduces code size, and offers a plugin system that

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Sean Catchpole
, December 06, 2007 12:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations Wow, the digg this story thing worked. :) http://digg.com/programming/Getting_jQuery_into_Big_Corporations Glen On Dec 6, 2007 10:12 AM, Sean Catchpole

[jQuery] Re: problem setting up idTabs on ajax success callback in IE6 sp2

2007-11-26 Thread Sean Catchpole
Do you have a demo page or some sample code? ~Sean On Nov 25, 2007 8:17 AM, ogurec [EMAIL PROTECTED] wrote: Hi, when i try to initialize idTabs on successful ajax request it fails in IE6, but works in FF2, Opera 9 and Safari for Windows. Anyone else had such problem? Is there a solution?

[jQuery] Scripts at the bottom of the page

2007-11-05 Thread Sean Catchpole
Is there a good reason why placing scripts at the bottom of a page is a bad idea? By placing them in the head all javascript files must be downloaded before the rest of the page can render. This seems odd since most of the time the javascript needs to wait for the page to be loaded anyway. Other

[jQuery] Re: Drastically reducing jQuery load time

2007-11-04 Thread Sean Catchpole
Hi Robert, I doubt the load time of jQuery is very significant. Downloading files take much much longer than it does to execute. Regardless, I personally would not use frames since then the url will never change. ~Sean

[jQuery] Re: jQuery Challenge

2007-11-04 Thread Sean Catchpole
I believe animation between classes is in the works as part of the UI or similar package. ~Sean

[jQuery] Re: NEWS: Google Code Using jQuery

2007-11-02 Thread Sean Catchpole
yay \o/ ~Sean

[jQuery] Re: Best Practice

2007-11-02 Thread Sean Catchpole
I think you got the jist of it. Syntax looks just fine. The filter isn't necessary, but I doubt it will be depreciated in future releases. function getRecord(id,URL){ jQuery(#ResultsTable tr .selected).removeClass(selected); jQuery(#+id).addClass(selected);

[jQuery] Re: [NEWS] Humanized Messages

2007-10-17 Thread Sean Catchpole
Very Cool. ~Sean

[jQuery] Slide

2007-09-26 Thread Sean Catchpole
jQuery has native a slide effect, but I am looking for something similar one could call shift. The content actually moves, not just the border. jQuery Slide: A-AB-ABC Shift Slide: C-BC-ABC Is there a plugin other than interface that does this? ~Sean

[jQuery] Re: ANNOUNCEMENT: Chili 1.9 much faster

2007-09-26 Thread Sean Catchpole
That's great! Excellent plugin. I've been using it to present idTabs: http://www.sunsean.com/idTabs/ ~Sean On 9/26/07, Andrea Ercolino [EMAIL PROTECTED] wrote: Chili is now much faster than before. Try it! http://noteslog.com/post/chili-19-released-today/ -- View this message in

[jQuery] Re: Paste Monkey Beta Launched

2007-09-26 Thread Sean Catchpole
Looking good Tane. The only changes I'd make are CSS related, but since it's still beta I'll cut ya some slack. =P Keep up the good work. ~Sean

[jQuery] Re: idTabs Plugin working with class and not id

2007-09-22 Thread Sean Catchpole
Hiya, You bet, try this: HTML a href=#myclassTab/a img class=myclass/ div class=myclass/ JAVASCRIPT $(#textcontent).idTabs(function(id,list,set){ $(a,set).removeClass(selected) .filter([EMAIL PROTECTED]'+id+'],set).addClass(selected); for(i in list) $(list[i]).hide();

[jQuery] Re: A better way to update jQuery Plug-ins...

2007-09-16 Thread Sean Catchpole
Anyone can test with the latest version of jquery by grabbing a nightly build. http://code.jquery.com/nightlies/jquery-nightly.js The issue is rather that plugin authors don't have the time to update their plugins right when the new version comes out. I believe there are already some plugins

[jQuery] Re: XSL Templating

2007-09-12 Thread Sean Catchpole
No, this is not built into jQuery. There is however a plugin that can do this for you. http://jquery.com/plugins/project/XSLT ~Sean On 9/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there an option to apply XSL stylesheets to XML recieved via jQuery.ajax()? I have some templated xml

[jQuery] Re: Faster then innerHTML

2007-09-12 Thread Sean Catchpole
Excellent, I'll look into this. ~Sean On 9/12/07, Felix Geisendörfer [EMAIL PROTECTED] wrote: Here is an interesting blog post that I came across: http://blog.stevenlevithan.com/archives/faster-than-innerhtml The synopsis basically is that one can gain dramatic speed improvements on

[jQuery] Re: .ready(), Rhino and HttpUnit

2007-09-12 Thread Sean Catchpole
Hi Rob, .ready() won't work in Rhino since there is no page to wait if it's ready. Everything else should work just fine. ~Sean On 9/12/07, Rob Desbois [EMAIL PROTECTED] wrote: Ok I've enlightened myself a little: I tried it with jQuery 1.2 and discovered that the line number changed - it's

[jQuery] Re: Strip out HTML tags

2007-09-11 Thread Sean Catchpole
You could try this trick: var stripme =iHTML/i string; var stripped = $(p/p).html(stripme).text(); ~Sean On 9/11/07, AnandG [EMAIL PROTECTED] wrote: I retrieve a lot of strings from a JSON file. These strings can contain HTML tags. I would like to show the strings (for example a

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-10 Thread Sean Catchpole
yay \o/ Congrats! ~Sean

[jQuery] Re: [REMINDER] jQuery Detection Script

2007-09-09 Thread Sean Catchpole
I will take this opportunity to remind everyone that there is also a firefox plugin. http://www.sunsean.com/jquerydetect/ ~Sean

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Sean Catchpole
I'll try to pull out the time later to write a more thorough response, but for now this is how you would code than line your pasted: $(label).not(:contains('nbsp;')) ~Sean On 9/4/07, Andy Matthews [EMAIL PROTECTED] wrote: Anyone have any input on this? Surely someone has written a tute on

[jQuery] Re: Feeling pretty special right about now...

2007-09-04 Thread Sean Catchpole
/drool ~Sean On 9/4/07, Rey Bango [EMAIL PROTECTED] wrote: Yep, I'm feeling pretty special right about now with my new JQUERY MUG COASTER SET!! wut!!! http://www.reybango.com/images/jquery/jquerymug8x6.jpg http://www.reybango.com/images/jquery/jquerycoaster8x6.jpg Let the envy

[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Sean Catchpole
This could be very useful on large pages. Great work ~Sean

[jQuery] Re: compare two arrays

2007-08-29 Thread Sean Catchpole
This can be done using mapreduce or other functions, but they are only supported in Firefox atm. Writing a double for loop is easy to code and wider supported. ~Sean On 8/28/07, Potluri [EMAIL PROTECTED] wrote: Is there a jquery way to compare two arrays without looping. like I have an

[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Sean Catchpole
On 8/28/07, Nico [EMAIL PROTECTED] wrote: $(this).children(span).children(a).html(it works); I would have chosen the following $(span a,this).html(it works); ~Sean

[jQuery] Re: xml and xlst and ajax

2007-08-28 Thread Sean Catchpole
This plugin may be of assistance: http://jquery.com/plugins/project/XSLT ~Sean

[jQuery] Re: A Quick Thank You to the jQuery UI team

2007-08-27 Thread Sean Catchpole
On 8/27/07, Rey Bango [EMAIL PROTECTED] wrote: I know you guys have been busting your tails... Thanks Rey, it's been a lot of fun. On 8/27/07, Smith, Allex [EMAIL PROTECTED] wrote: This may be a dumb question... But is there any release info about jQuery UI out yet? Screen shots or otherwise?

[jQuery] Re: OT CSS skins

2007-08-27 Thread Sean Catchpole
An interesting post, thank you. I have created a revised version that uses only one image: http://dev.jquery.com/view/branches/sean-dev/pro/pro.html ~Sean On 8/27/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: if anyone is interested, Stu Nicholls, one of the most creative css hackers,

[jQuery] Re: OT CSS skins

2007-08-27 Thread Sean Catchpole
. --John On 8/27/07, Sean Catchpole [EMAIL PROTECTED] wrote: An interesting post, thank you. I have created a revised version that uses only one image: http://dev.jquery.com/view/branches/sean-dev/pro/pro.html ~Sean On 8/27/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-08-20 Thread Sean Catchpole
). Much improved: http://dev.jquery.com/~john/ticket/animatetest/ --John On 7/9/07, Sean Catchpole [EMAIL PROTECTED] wrote: On 7/9/07, Glen Lipka [EMAIL PROTECTED] wrote: A big question in my mind is: On a slow machine with ONE animation: Is doing it this way smoother than

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-20 Thread Sean Catchpole
Excellent work Brandon, I can't wait to give it a try. ~Sean

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Sean Catchpole
Pretty cool Yehuda, I'll have to give it a shot so I can give ya some feedback. ~Sean

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Sean Catchpole
On 8/17/07, John Resig [EMAIL PROTECTED] wrote: $(...).onclick().toggle().end(); I really like this idea John. ~Sean

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Sean Catchpole
I wrote a fun dom creation plugin, but in the end it's not much better than the built in dom creation: http://jqueryjs.googlecode.com/svn/branches/sean-dev/jquery.dom.js ~Sean

[jQuery] Re: changing class

2007-08-16 Thread Sean Catchpole
Hi, Are aware that there are tabs plugins? To answer your question: $(function(){ $(#tabs li a).click(function(){ $(#tabs li).removeClass(select); $(this).parent().addClass(select); }); }); ~Sean

[jQuery] Re: Updated Plugin: jQuery Timers. jQuery-oriented setTimeout/setInterval

2007-08-15 Thread Sean Catchpole
Looks great Blair, excellent plugin. Thanks ~Sean

[jQuery] Re: [ANNOUNCE] tablesorter 2.0 released

2007-08-15 Thread Sean Catchpole
Looks great Christian. I've been using tablesorter for a while, very useful for adding quick sort functionality. ~Sean

[jQuery] Re: [NEWS] Brandon Aaron on Ajaxian

2007-08-14 Thread Sean Catchpole
Congrats Brandon! ~Sean

[jQuery] Re: Question: Efficient Usage of jQuery

2007-08-13 Thread Sean Catchpole
Loading different pages with .ready's is just fine. If the page has already loaded then all .ready functions will be executed immediately. Also, there is probably not a scoping issue. You might want to make sure that the html you are trying to change (a tags) have all been loaded at the point your

[jQuery] Re: Performance Booster - $( expr, context, fn ) ?

2007-08-13 Thread Sean Catchpole
You bring up an interesting point Willi. You stated that $() runs 2 times, which is correct, except that the first time there is significantly more work being done. The first time it has to search through the DOM collecting all the DOM elements and matching them against the selector. This is a lot

[jQuery] Re: jquery slimbox?

2007-08-12 Thread Sean Catchpole
There was recently one just made called Moonbox although I cannot find a link at the moment. Keep your eyes open for it. ~Sean On 8/12/07, iblastoff [EMAIL PROTECTED] wrote: Hi, I've searched to no avail thus far. Does anyone know if theres been a port of slimbox (or something similar to

[jQuery] Re: Creating Custom Classes

2007-08-11 Thread Sean Catchpole
Mootools tries be a bit more C-like, where jQuery uses javascript OO like peanut butter and jelly. //jQuery version var ajax_request = function(options) { op = { }; //default options $.extend(op,options); //overwrites defaults //more code here like $.ajax() } ~Sean

[jQuery] Re: new cookieJar plugin, feedback please

2007-08-11 Thread Sean Catchpole
Great Plugin! ~Sean

[jQuery] Re: Partial Accordion Possible?

2007-08-10 Thread Sean Catchpole
On 8/10/07, Sam Collett [EMAIL PROTECTED] wrote: http://www.texotela.co.uk/accordiontest.php You could try this: $(#menu).Accordion({header:'li.haschildren[strong]'}); ~Sean

[jQuery] Re: [NEWS] jQuery Team Member Jörn Zaeffere r in Javamagzin

2007-08-10 Thread Sean Catchpole
Congrats Jörn! ~Sean

[jQuery] Re: Using jQuery to parse a string

2007-08-10 Thread Sean Catchpole
Hi, This might be a fancier solution: var s = title.string1-color.string2-size.string3; h={}; $.each(s.split('-'),function(x){ var t = x.split('.'); h[ t[0] ] = t[1]; }); ~Sean On 8/10/07, cfdvlpr [EMAIL PROTECTED] wrote: That's just the kind of help I needed. Here's what I have now

[jQuery] Re: Using jQuery to parse a string

2007-08-10 Thread Sean Catchpole
Quick: x is each item of the array. Short: $.each is similar to Array.map $.each calls the function for each item in the array. If the function returns false then it stops. This is different from a map function in that a map function will replace the value in the array with what is returned by

[jQuery] Re: Partial Accordion Possible?

2007-08-10 Thread Sean Catchpole
Hi Sam, With your html I was able to get this to work: $('#menu').Accordion({ header: 'li strong' }); ~Sean

[jQuery] Re: Slide Right

2007-08-09 Thread Sean Catchpole
On 8/9/07, Mike Alsup [EMAIL PROTECTED] wrote: http://www.malsup.com/jquery/cycle/ Nice plugin Mike, when did you release this?

[jQuery] Re: Slightly OT: overview of HTML5 elements

2007-08-09 Thread Sean Catchpole
That's really cool Stephan, thanks for sharing. HTML needs a refresher. Classitisis is everywhere and it would be nice to have a few more useful tags to play with. Then again I use XML so I just make tags up anyway =P. ~Sean

[jQuery] Re: Move JSON into the JQuery's core?

2007-08-07 Thread Sean Catchpole
This would be a wonderful application for a download builder. The core should remain exactly that, a core. ~Sean

[jQuery] Re: Best way to select a cell in a table?

2007-08-05 Thread Sean Catchpole
On 8/3/07, Matt Penner [EMAIL PROTECTED] wrote: If I wanted the 2nd row 3rd cell the following works: $(tr:eq(1), td:eq(2)) This will return the entire 2nd row and 3rd column. On 8/3/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote: I would use $(td:eq(2), $(tr:eq(1))) This works, but is a clunky

[jQuery] Re: Using JQuery in firefox extension

2007-08-05 Thread Sean Catchpole
Hi Lucemia, The problem your having is that window in plugins is not referring to the same thing as javascript in a page. I used this page to guide me: http://developer.mozilla.org/en/docs/Code_snippets:On_page_load In that example they use doc to refer to the document. So $(body,doc) would

[jQuery] Re: Turning a checkbox on and off

2007-08-05 Thread Sean Catchpole
Mtich, I like to toggle checkbox states by emulating a click. This allows for any bound events to also trigger. $(:checkbox).click() ~Sean

[jQuery] Re: Coder vs Designer?

2007-08-02 Thread Sean Catchpole
Hi Matt, You've touched on a interesting topic and everyone has their own way of doing it. Personally I split my code into two sections, backend and frontend, or rather data and presentation. With this in mind I consider javascript to be on the frontend and therefor a designers tool. On 8/2/07,

[jQuery] Re: Best practices for dynamic form creation?

2007-08-01 Thread Sean Catchpole
On 8/1/07, jayturley [EMAIL PROTECTED] wrote: currentItem = ' form action=ajax_test.asp?mode=delete style=display:inline;input type=image src=images/icons/ cancel.gif id=' + j.items[0].item_id + ' //form'; $('#content p').append(currentItem); $('form action=ajax_test.asp?mode=delete')

[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Sean Catchpole
vi

[jQuery] Re: tr[position() mod 3 = 0]

2007-07-30 Thread Sean Catchpole
Dmitrii, the code Erik Beeson pasted works, here's another option: $.extend({expr:{::{mod: i%m[3]==0}}}); //adds mod selector $(tr:mod(3)) ~Sean

[jQuery] Re: History anchors with variable and value (#var=value)

2007-07-30 Thread Sean Catchpole
The following code will set index.html#num=2#foo=bar to num=2; foo=bar; (function(){ var l=window.location.hash.split('#').slice(1) for(var i=0; il.length; i++) { var s = l[i].split('='); if(!s[1]) eval(window.+s[0]); else if(/^\d*\.?\d*$/.test(s[1])) eval(window.+l[i]); else

[jQuery] Re: tr[position() mod 3 = 0]

2007-07-30 Thread Sean Catchpole
On 7/30/07, John Resig [EMAIL PROTECTED] wrote: As of jQuery 1.1.3 you can now do: $(tr:nth-child(3n)) I knew it! I couldn't remember which selector did it, but I thought I had seen it before. Thanks John. ~Sean

[jQuery] Re: [NEWS] jQuery Essentials - Round 2

2007-07-28 Thread Sean Catchpole
Great article. Those are some wonderful plugins (including Round 1). ~Sean

[jQuery] Re: ANNOUNCE: jTagEditor 1.0 beta

2007-07-26 Thread Sean Catchpole
Looks great Jay! Keep up the hard work. ~Sean

[jQuery] Re: vs '

2007-07-26 Thread Sean Catchpole
On 7/26/07, Mitchell Waite [EMAIL PROTECTED] wrote: This going will make me sound really dumb but what is the difference between using single quote versus double quotes in jQuery, e.g. Mitchell, the concept of single vs double quotes is more of a javascript question. The simple answer is that

[jQuery] Re: [To Klaus] tabs plugin suggestion

2007-07-24 Thread Sean Catchpole
Rob, If I understood you correctly, then idTabs does exactly what your asking for. http://www.sunsean.com/idTabs/ If I misunderstood, can you clarify? ~Sean

[jQuery] Re: [To Klaus] tabs plugin suggestion

2007-07-24 Thread Sean Catchpole
On 7/24/07, voltron [EMAIL PROTECTED] wrote: Whoa! Just what I was looking for, can one dynamically assign content to the tabs using Ajax? Great plugin Sure you bet. Passing a click function can allow for many possibilities to idTabs, including things entirely different from tabs. I suppose

[jQuery] Re: A jQuery success story

2007-07-20 Thread Sean Catchpole
A Great Story Michael, thank you. ~Sean

[jQuery] Re: Slow plugin scripts -- any way to speed them up?

2007-07-13 Thread Sean Catchpole
Kim, Just as general rules for speeding things up. Saving results rather than searching multiple times will always speed things up. As I said though, it's hard to give specific suggestions without seeing more code. ~Sean

[jQuery] Re: escaping characters in regex

2007-07-13 Thread Sean Catchpole
On 7/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: function serialize(s) { serial = $.SortSerialize(s); alert(serial.hash); var hash = serial.hash; var temp = hash.replace(new RegExp( sort1\[\]=, gi ),''); }; Perhaps this will work: function serialize(s) {

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Sean Catchpole
I have better suggestion for children than the one presented in that article. DOMdom way: { 'div': [ 'span', 'span' ] } my suggestion: div (span,span) The ( and ) are for grouping. This allows for multiple children, making text easy: $(body).domAppend(p (#this, b #is, #fun)); ~Sean

[jQuery] Re: too much recursion (sound PopUp)

2007-07-12 Thread Sean Catchpole
The problem is with this line: sound=window.open(url,'soundbumbam','height=50,width=150'); Try declaring sound at the top of the script var sound; ~Sean

[jQuery] Re: [ANNOUNCE] planet.jquery.com

2007-07-12 Thread Sean Catchpole
Great work guys. Looks awesome. ~Sean

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Sean Catchpole
I really like this idea. It could be very powerful. ~Sean

[jQuery] Re: Remove Column from a table

2007-07-12 Thread Sean Catchpole
$('#myid table').find('th:first-child, td:first-child').remove(); ~Sean

[jQuery] Re: Setting DOM values (non-attributes)

2007-07-12 Thread Sean Catchpole
jQuery returns an array of DOM elements, so try this: $('#postedText')[0].scrollTop = ~Sean

[jQuery] Re: Slow plugin scripts -- any way to speed them up?

2007-07-12 Thread Sean Catchpole
Kim, tablesort should be able to handle a table that big. Do you have a live example? ~Sean

[jQuery] Fwd: [jQuery] Re: allow no more than 3 checkboxes checked

2007-07-10 Thread Sean Catchpole
On 7/10/07, cfdvlpr [EMAIL PROTECTED] wrote: That works very well. Could you also grey out the unchecked checkboxes after 3 are checked? $.fn.limit = function(n) { var self = this; this.click(function(){ (self.filter(:checked).length==n)?

[jQuery] Re: Element defined or not

2007-07-10 Thread Sean Catchpole
On 7/10/07, Sebastián V. Würtz [EMAIL PROTECTED] wrote: Wich is the best way to know if a element for example a div is defined? We get this question a lot. jQuery returns the DOM in an array like fashion. This is standard: if($(div).length) ... or sometimes: var div = $(div)[0]; if(div) ...

[jQuery] Re: Fwd: [jQuery] Re: allow no more than 3 checkboxes checked

2007-07-10 Thread Sean Catchpole
On 7/10/07, Andy Matthews [EMAIL PROTECTED] wrote: Why add the class disabled Sean? In case someone wanted to change the CSS when it is disabled. On 7/10/07, Jonathan Sharp [EMAIL PROTECTED] wrote: You're missing your return statement in this revised version (for the noob's: which is needed

[jQuery] Re: NEWS: Digg uses jQuery to Build the Digg iPhone App

2007-07-10 Thread Sean Catchpole
Cool news, thanks for the info Rey. ~Sean

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
I'll whip up a plugin when I get a chance. It will act and feel just like the current $.animate but use classes instead of DOM styling. ~Sean

[jQuery] Re: Scroller ticker...

2007-07-09 Thread Sean Catchpole
I like newsticker: http://www.texotela.co.uk/code/jquery/newsticker/ ~Sean

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
On 7/9/07, weepy [EMAIL PROTECTED] wrote: When the chess pieces appear initially, they all slide onto the board. It's a bit jerky really - esp since its trying to move 32 x 60x60 pngs with alpha channel. There are lots of browser limitations with working with PNGs. But more importantly, this

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-09 Thread Sean Catchpole
On 7/9/07, Glen Lipka [EMAIL PROTECTED] wrote: A big question in my mind is: On a slow machine with ONE animation: Is doing it this way smoother than not? Does CSS manipulation of a single animation make it smoother? What is the gating factor for a slow computer? CPU or Ram or Video card?

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Sean Catchpole
I believe that learning jquery returns an array like object is more useful than creating a .exists() function. ~Sean

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Sean Catchpole
$.ajaxSettings.async ~Sean

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Sean Catchpole
On 7/9/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: I can't find the initial branch of this thread. Could someone repeat what exists() is supposed to do? $.fn.exists = function() { return !!this.length; } ~Sean

[jQuery] Re: allow no more than 3 checkboxes checked

2007-07-09 Thread Sean Catchpole
On 7/9/07, cfdvlpr [EMAIL PROTECTED] wrote: I have about 10 checkbox input elements with the same name and I'd like to not let the user select more than 3 of them. How can I do this with Jquery? You can try this: $.fn.limit = function(n) { var self = this; this.click(function(){ return

[jQuery] Re: Getting the next span

2007-07-09 Thread Sean Catchpole
$('#span1').bind('click', function() { return $(this).next(span); }); or $('#span1').bind('click', function() { return $(~ span,this); }); ~Sean

[jQuery] Re: Is there a way to READ the $.ajax settings?

2007-07-09 Thread Sean Catchpole
On 7/9/07, Stephan Beal [EMAIL PROTECTED] wrote: Do you happen to know if that's documented anywhere? i can find no mention of it on the jquery site, and using the on-site search engine returns (as usual) No page title matches. I doubt it's documented, I just dug it our of the source (which is

[jQuery] Re: Introducing Hot Chili

2007-07-08 Thread Sean Catchpole
A very interested greasemonkey script, thank you. Some downsides are picking the right color theme for the right background color. And also, if this was a full firefox extension then you could integrate it into the right click menu nicely. Cheers ~Sean On 7/8/07, Andrea Ercolino [EMAIL

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-06 Thread Sean Catchpole
On 7/6/07, Gordon [EMAIL PROTECTED] wrote: Regarding the CSS cascade problem, would making any custom rules jQuery creates !important help? I initially looked into this and tried to implement it with no success. However after rewriting the script bout 5 times, I got it! I have updated the

  1   2   3   >