[jQuery] Re: Table show/hide rows slow in IE

2007-10-12 Thread Matt Kruse
the opposite to be true. If you change an element's class in IE, the resulting re-flow of the document can be very slow. For things like changing styles on hover, I always directly manipulate the style of the object rather than change the class, since class changing introduces a noticeable lag in IE. Matt

[jQuery] Re: Any server status if use script tag for XSS?

2007-10-09 Thread Matt
Maybe you could attach an onload or onerror event to your html element (script) ? Anyway, jQuery has a home made method to let you do this, cross-browser: See http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback Matt 2007/10/9, Jacky [EMAIL PROTECTED]: Hi, I would like to call crossite

[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-03 Thread Matt
Very nice plugin. Do you plan to add some callbacks options (for example, open, close, toggle, remove), and/or possibility to add/remove branches/items from an ajax request ? I'm thinking of using it as a directory browser as you can guess :-) thanks Matt 2007/10/3, Jörn Zaefferer [EMAIL

[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-03 Thread Matt
Thanks Jorn, already updated a few pages I'm using this on. Great plugin, thank you for all the hard work! On Oct 2, 3:29 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Good news everyone! The treeview plugin version 1.3 is out, giving you an even better tool at hand to display and navigate your

[jQuery] .is() cannot check against the parent chain?

2007-10-02 Thread Matt Kruse
) { ... } Is there a better way? Matt Kruse

[jQuery] Re: How to add/remove dynamic blocks of html

2007-10-02 Thread Matt
thank you guys, I really appreciate your comments and insight! On Oct 1, 10:05 pm, howardk [EMAIL PROTECTED] wrote: I do occasionally look at the source code, but I'm still new enough to JavaScript that sometimes (even with 12 years of Java under my belt, and a whole slew of other languages

[jQuery] Re: Can jQuery help?

2007-10-02 Thread Matt Stith
try $(#Explination).addClass(Explination); On 10/2/07, Johny [EMAIL PROTECTED] wrote: Hi, I have style defined like this div#Explanation{position:absolute; top:720px; width:10px; right: 0px;margin:40px 0 0 0;} and my HTML code div id=Explanation table border=1 cellpadding=0

[jQuery] Re: .is() cannot check against the parent chain?

2007-10-02 Thread Matt Kruse
alternative (=v1.2) could be... o.filter(function(){return !$(this).parent().is('unwantedclass');}); True, but I'm needing to checking for the class on any element in the parent chain, not just the immediate parent. So I guess the way I'm doing it will suffice. Thanks for your help! Matt Kruse

[jQuery] slider bug on IE6

2007-10-01 Thread Matt
Hi, Just to let you know, if it can help someone else, i found this bug with ui.slider.js on IE6 (it's a simple syntax error but it obviously causes the script stopping executed): http://dev.jquery.com/ticket/1762#preview cheers -- Matthias ETIENNE

[jQuery] Re: How to add/remove dynamic blocks of html

2007-10-01 Thread Matt
simple here on how the append/join syntax works. Here is an example: $($(this).parent()).append([p,input type='text' class='+inputClass+',button onclick: '+$ (this).parent().remove();return false;+',/p].join()); I get an: missing ] after element list error in Firebug. Any thoughts? Thanks. Matt

[jQuery] Re: toggle and checkbox

2007-09-25 Thread Matt
Hi, I would do : $('#myfield').attr('disabled', 'disabled'); // disabled $('#myfield').attr('disabled', ''); // enabled, i guess Matt 2007/9/24, sheetzam [EMAIL PROTECTED]: Using jquery 1.2.1 toggle: jQuery().ready(function(){ $('#multiple').toggle( function

[jQuery] Re: $(function()

2007-09-25 Thread Matt Stith
Using a function like that is called an anonymous function, and in this case you are passing the anonymous function to the jQuery object, which stores it and calls on it when the DOM is finished loading. On 9/25/07, Danjojo [EMAIL PROTECTED] wrote: 2 Questions. 1. are there the correct

[jQuery] Re: Adding :hover css support to IE6 - ie6HoverFix

2007-09-21 Thread Matt Penner
. Matt From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Bach Sent: Friday, September 21, 2007 7:07 AM To: jquery-en@googlegroups.com Subject: [jQuery] Adding :hover css support to IE6 - ie6HoverFix Hi list, The other day i

[jQuery] Handling timeouts with jsonp ajax requests

2007-09-21 Thread Matt
Hi, How jQuery handles timeouts on jsonp requests ? Does it call the error callback ? something else ? Basically a request like this one... [] $.ajax({'url' : url, 'data' : params, dataType : 'jsonp', timeout: 2500, success : callback, error : callback}); [] ... does not seem to call

[jQuery] Re: BlockUI question

2007-09-20 Thread Matt Kruse
calling blockUI you can use the same element over and over as shown in the last example on this page: Does the example create a memory leak pattern via the circular reference? I haven't checked it with drip, but it looks to me like a leak scenario. Matt Kruse

[jQuery] $.getJSON and timeouts

2007-09-19 Thread Matt
Hi guys, Is there any way to handle timeouts when using $.getJSON() ? I tried to setup ajax timeout options to 2500 (2.5 sec), but as getJSON does not use a XHR, it seems not to work. Any help would be grately appreciated, thanks in advance, Matt

[jQuery] Re: $.getJSON and timeouts

2007-09-19 Thread Matt
Hi Peter, Thanks for your answer, I will try that. Matt 2007/9/19, Peter Bengtsson [EMAIL PROTECTED]: $.getJSON() is just a wrapper on $.ajax(). The equivaqlent of $.ajax({url:..., dataType:'json', data:..., success:..}) Try using $.ajax with that dataType instead and throw

[jQuery] Re: idea to track plugin updates: myJquery.com

2007-09-17 Thread Matt Kruse
the domain to anyone who builds a working tool similar to what I was thinking of, which it sounds like you are. Matt Kruse

[jQuery] Re: rounded border plugin?

2007-09-12 Thread Matt
On Sep 11, 3:29 pm, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 11, 11:14 pm, Matt [EMAIL PROTECTED] wrote: Hi All, I'm new to JQuery, and relatively new to JS. I noticed there are a few plugins for doing rounded corners, but the ones I've seen seem to work on background colors only

[jQuery] Re: why is code working on Firebug console, but not in script file?

2007-09-11 Thread Matt Vance
, 'Point1', false, false); to check by if of the jmap plugin initialisation (usually any plugins create and id or class, by which u can find out if it has been loaded, look in the firebug in html for a clue ) On Sep 10, 8:07 pm, Matt Vance [EMAIL PROTECTED] wrote: I'm a javascript novice

[jQuery] Re: why is code working on Firebug console, but not in script file?

2007-09-11 Thread Matt Vance
, false); to check by if of the jmap plugin initialisation (usually any plugins create and id or class, by which u can find out if it has been loaded, look in the firebug in html for a clue ) On Sep 10, 8:07 pm, Matt Vance [EMAIL PROTECTED] wrote: I'm a javascript novice and I'm working

[jQuery] rounded border plugin?

2007-09-11 Thread Matt
if the area inside the border was selected. Is there anything like this? Thanks, I'm really starting to get into JQuery, seems like a great library! Matt

[jQuery] why is code working on Firebug console, but not in script file?

2007-09-10 Thread Matt Vance
I'm a javascript novice and I'm working with the jMaps plugin for jQuery to add Yahoo Maps to a site. For basic maps, the plugin is working great; however, I'm having trouble getting its addPoint function to work. When I try the following script, the map displays but the point doesn't:

[jQuery] Re: where is Fisheye menu (not from interface)

2007-09-03 Thread Matt Stith
The only one i've seen is the interface one, you sure you saw an independent plugin? On 9/3/07, Mario Moura [EMAIL PROTECTED] wrote: Hi folks I swear had seen Fisheye menu solution but it wasnt from Interface. It was another JQuery Plugin. Anyone know where is it? Regards Mario

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
of the sniffing that exists in jQuery already is unnecessary. Matt Kruse

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
sniffing. Or are there other reasons that I'm not aware of? Matt Kruse

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
you've limited it to only safari? Fixing browser-specific bugs using browser sniffing is highly suspect and almost never necessary. In almost all cases, the bug/quirk can be fixed in the general case without any check for browser. Matt Kruse

[jQuery] 1.1.4 update breaks page

2007-08-24 Thread Matt Kruse
when I get a chance, but I thought I would post a message now in case anyone else is having a similar problem. Of course, it could be my own problem somewhere, but I'll try to rule that out ;) Matt Kruse

[jQuery] Re: 1.1.4 update breaks page

2007-08-24 Thread Matt Kruse
an updated package and I'd know I couldn't update yet. I'd love to build it if only I had 2 spare seconds in life ;) Matt Kruse

[jQuery] Re: Killing ajax calls

2007-08-22 Thread Matt Stith
A much better solution is to set a delay on the keyup, say, half a second, then execute the ajax request when that timeout finishes. Its much easier on your server to do it this way. On 8/22/07, Tamm Sjödin [EMAIL PROTECTED] wrote: actually that made things even more confusing :P for the

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Matt Stith
Can we get a description of what you are doing? There shouldnt be a reason for a function to send tons of ajax calls. Either condense them to 1, or use a different method. On 8/21/07, Tamm [EMAIL PROTECTED] wrote: I'm working on a function that sends far too many ajax calls, an easy way to

[jQuery] Get the element that's appended directly without using second step?

2007-08-20 Thread Matt Penner
This is exactly how I do it. I don't even append the new element until it has been fully populated or manipulated. I don't want my users to see a half way completed div if some procedure takes longer than expected. *Matt Penner** *Database Engineer II GIS Support [EMAIL PROTECTED] (951) 940-6108

[jQuery] Re: some javascript function on some.html won't work

2007-08-19 Thread Matt Stith
you might be looking for $(#somediv), $(somediv) is looking for somediv, while $(#somediv) is looking for div id=somediv. Check out http://docs.jquery.com/DOM/Traversing/Selectors for some info on selectors On 8/19/07, Michael Lo [EMAIL PROTECTED] wrote: Dear all: can some one help why

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Matt Stith
Sweet, i needed something like this about a week ago, ended up writing my own :-/ Cool anyways! nice job! On 8/18/07, Yehuda Katz [EMAIL PROTECTED] wrote: Hi guys, I have just committed a new plugin to the trunk. It's a simple templater that allows you to create templates that get

[jQuery] Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
instead if you needed to. Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
. The cascade of side-effects is enormous. I don't see any side-effect at all, but I may of course be wrong ;) Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
, so there is no performance hit. And this would be the case in the change I suggested. Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
thing with wait() - it would eat up the following commands so that a setTimeout() could be called and execution could continue when the pause was done. The end result was some kind of slick-looking code in some places. But more of a mental exercise than anything extremely practical ;) Matt Kruse

[jQuery] Re: ORing selectors

2007-08-15 Thread Matt Stith
I would do something like $(#X).add(.Y); On 8/15/07, rickdog [EMAIL PROTECTED] wrote: What is the cleanest way for ORing select results, e.g. returning all DIVs with id=X or class=Y?

[jQuery] Re: Quick question...

2007-08-15 Thread Matt Stith
one either... obviously. It's quite difficult finding a decent HTML parser in PHP. Oh well... guess I can still dream about one. On Aug 15, 7:29 pm, Matt Stith [EMAIL PROTECTED] wrote: I highly doubt something like that exists. I had trouble finding an HTML parser in any form for php, let

[jQuery] Re: fancy menu - tell me what you guys think

2007-08-14 Thread Matt Penner
This is great but I have to also comment on the delay. It does feel a little unresponsive. If I click on a menu item before the slider has time to get there (which is quite easy to do) it tends to flash and act a little quirky. I'm using FF 2.0 on WinXP Good job! *Matt Penner* *From:* jquery

[jQuery] Re: using load cross site

2007-08-13 Thread Matt Stith
The only way around is to use a server-side script as a proxy, as loading scripts cross-site is a security risk, which is why browsers block that out. On 8/13/07, Anthony Leboeuf(Worcester Wide Web) [EMAIL PROTECTED] wrote: Hello, I am working on a website for the BBB and need to load a

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Matt Stith
You need to add the element to the document via .appendTo, .prependTo, or one of those similar methods. It isnt added to the DOM just by creating it. On 8/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I can use $('#id', window.document) to get an existing element from a document in a

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Matt Stith
', window.document).appendTo('body'), nothing happened; If I try $ ('divnew div text here/div', window.document).appendTo('body', window.document), an Invalid Argument error is thrown. Any suggestion? Thanks On Aug 12, 11:43 am, Matt Stith [EMAIL PROTECTED] wrote: You need to add the element

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Matt Stith
Did you remove the 2nd argument to appendTo? that function only takes 1 argument. Using the context when creating an element is useless too, so might as well remove the 2nd argument to $ On 8/12/07, Jay W [EMAIL PROTECTED] wrote: Well, Matt, it is only working in Safari, (maybe firefox

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Matt Stith
. top.addDiv = function (window) { var doc = window.document; S('divHAHAHAHAHAH test/div').appendTo(doc.body); S('#show', doc).toggle(); } Thanks so much for your help. On Aug 12, 11:04 pm, Matt Stith [EMAIL PROTECTED] wrote: Did you remove the 2nd argument to appendTo

[jQuery] Coder vs Designer?

2007-08-03 Thread Matt Penner
Good catch Klaus Christof. I am a coder and relatively new to CSS. I do have a little tenancy towards classitis which I am trying to cure myself of. Thanks for the good suggestions! Matt -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf

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

2007-08-03 Thread Matt Penner
3rd cell the following works: $(tr:eq(1), td:eq(2)) This is a rather simplistic example but is this better than, say, giving every cell its own id or is there a completely different method that others prefer? Thanks, Matt Penner

[jQuery] :eq vs :nth?

2007-08-03 Thread Matt Penner
Ah, thanks for that. I'll check the code next time. Matt From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg Sent: Friday, August 03, 2007 2:18 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: :eq vs :nth? They're

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

2007-08-03 Thread Matt Penner
had multiple tables this would indeed return multiple elements unless I selected the individual table as well. At least this is my understanding. Matt From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ganeshji Marwaha Sent: Friday

[jQuery] Re: Good Javascript editor or IDE?

2007-08-02 Thread Matt Penner
of choice. Thanks to those offering similar solutions. I'm looking more for an IDE that can understand the link between several js files and assist with intelligent Intellisense / Snippet like features. If anyone else has others to offer keep them coming! Thanks, Matt

[jQuery] Coder vs Designer?

2007-08-02 Thread Matt Penner
class=headingCourse Title/spanspan class=content' + crs.title + '/span/div'); is very ugly and muddled. Thanks! Matt Penner

[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
I'm Addicted Coding Revolution Best Library I could go on forever On 8/1/07, kiwwwi [EMAIL PROTECTED] wrote: jQuery Rocks!! oh... possibly will add two more words; Thank you :) I'm not the best scripter and jquery has simply allowed me to accomplish with my own personal site

[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
O rly? On 8/1/07, Geoffrey Knutzen [EMAIL PROTECTED] wrote: Remember, the two words must be less than a total of 20 characters (compressed) :) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Duymelinck Sent: Wednesday, August 01,

[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
Ok then ;) On 8/1/07, Aaron Heimlich [EMAIL PROTECTED] wrote: On 8/1/07, Matt Stith [EMAIL PROTECTED] wrote: O rly? Ya rly -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Good Javascript editor or IDE?

2007-08-01 Thread Matt Penner
anyone have? Is there something sophisticated enough that can have intellisense with jQuery or my own objects in external js files? Thanks, Matt

[jQuery] Re: The JS/jquery version of PHP's array_unique

2007-07-31 Thread Matt Stith
I would just do something like: $.prototype.unique = function(arr) { $.merge(arr,arr); }; Simple. On 7/31/07, fambizzari [EMAIL PROTECTED] wrote: PHP developers will all know about the array_unique() function which removes duplicate values from an array. Up until today, we've been using

[jQuery] Re: Newcomer to jQuery, trouble using ajax functions alongside built in jQuery behaviours

2007-07-29 Thread Matt Stith
Some code samples would really be helpful here. You can copy any paste, just change any info like URLs that you dont want us to know. Its hard to describe a block of code using a paragraph of text :P On 7/29/07, Jim Newfer [EMAIL PROTECTED] wrote: Hello everyone, I am quite new to jquery but

[jQuery] Re: How does everyone handle the constant updating of jQuery and plug-ins?

2007-07-28 Thread Matt Kruse
and enhancements. If anyone thinks this is a good idea and wants to develop this kind of functionality, I'd be willing to point or transfer the domain to a site that offers this kind of service. Matt Kruse

[jQuery] Re: Callback after append?

2007-07-25 Thread Matt Stith
Thats right, the only things that need a callback are ajax and animations (unless im missing something) On 7/25/07, Klaus Hartl [EMAIL PROTECTED] wrote: juliandormon wrote: I'm adding html into a div using append. I want to update my custom scrollbar plugin which is in a parent div after

[jQuery] Re: innerFade or jQuery Cycle Plugin feature addition will pay $$$

2007-07-24 Thread Matt Stith
Ill take the payment if he wont :DI know i didnt help at all but i could always use some extra money xD On 7/24/07, juliandormon [EMAIL PROTECTED] wrote: Hi Mike, Awesome. I would like to pay you for this. You turned me down once before for some form plug-in help. Please let me know your

[jQuery] Can jQuery get attributes of the actual style sheet?

2007-07-23 Thread Matt Penner
on obtaining values from a style sheet so I thought I'd ask if it was even possible. Thanks, Matt Penner

[jQuery] Re: Opening external links in a new window

2007-07-23 Thread Matt Stith
Or even easier, $([EMAIL PROTECTED]'http']).attr('target','_blank'); On 7/23/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Jul 23, 2007, at 6:45 PM, cfdvlpr wrote: Is there an easy way to do this that does not require you to hand code each external link? Can you write a Jquery function

[jQuery] Re: Opening external links in a new window

2007-07-23 Thread Matt Stith
Im not really worried about that.. The validator wont notice that your setting the target with javascript, so its fine for me :P On 7/23/07, Karl Swedberg [EMAIL PROTECTED] wrote: On Jul 23, 2007, at 7:53 PM, Matt Stith wrote: Or even easier, $([EMAIL PROTECTED]'http']).attr('target','_blank

[jQuery] Re: jQuery for Dummies

2007-07-19 Thread Matt Stith
Wow, quite an impressive rep! Glad to have you on the jQuery side, Mitch! On 7/20/07, Michael Geary [EMAIL PROTECTED] wrote: Mitch?!? Holy cow, it's good to see your name here. Listen up, kids. The Waite Group published some of the most important books of the microcomputer / personal

[jQuery] Re: SITE: American Eagle (ae.com)

2007-07-18 Thread Matt Stith
Sweet! Even though they are still using document[something] in alot of places (namely, f_standard_js.js), they seem to be making good use of jQuery! On 7/18/07, Quin Hoxie [EMAIL PROTECTED] wrote: Just noticed that American Eagle's website ae.com is using jquery. A quick glance shows they are

[jQuery] Re: Announce: Confirmer plugin

2007-07-18 Thread Matt Stith
Lol, i still have friends and relatives that double click everything... Ive seen this scenario play out a couple times.. When the X button is over an ad or something.. :( On 7/18/07, Michael Geary [EMAIL PROTECTED] wrote: Now that i think about it, i'm constantly saying to my g/f, don't

[jQuery] Re: misunderstanding of .text()?

2007-07-15 Thread Matt Stith
.load isnt a blocking function, meaning that it starts the ajax request and then continues the chain. So you might try something like this: $('pre').load('jquery.splitter.js',function() { // Do escaping stuff here }); The 2nd argument to load is a function that will be called once the request

[jQuery] Re: Possible idea regarding $() and multiple selectors via add()

2007-07-13 Thread Matt Stith
.add is intended to be used in the chain, in case you need something like this: $(#foo).html(foobar).add(#bar).slideDown(); Would add foobar to #foo, and slide both #bar and #foo down. Also, you can do $(#foo,#bar) to select both. On 7/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So

[jQuery] Re: Element defined or not

2007-07-10 Thread Matt Stith
Try if ($(selector).length0){ //... } 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? like in php if ( empty($test) ) or if ( isset($test) ) thx

[jQuery] Re: Manipulating loaded data

2007-07-09 Thread Matt Stith
This has come up many many many times on this list. You need to put a callback in the .load call, like this: $('.galleryList').load(data.dat,function() { // Do bindings here }); On 7/9/07, divinci [EMAIL PROTECTED] wrote: Hi all, firstly let me thank you all for supporting such a great

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

2007-07-09 Thread Matt Kruse
that .is() is the correct way to do it. It makes jQuery a little more approachable and user-friendly if it has exactly what you're looking for and expect, even though it may just be a wrapper for the real underlying functionality. Matt Kruse

[jQuery] Re: JQuery - CrossBrowser? - Script not working in Firefox

2007-07-08 Thread Matt Stith
Its working fine for me in firefox. Try using firebug or just the javascript console to see if any errors are being reported. What version of firefox are you using? On 7/7/07, AtlantaGeek [EMAIL PROTECTED] wrote: With JQuery supposedly crossbrowser capable, I did not think the script I'm

[jQuery] Re: question about redirecting url after post using jquery

2007-07-05 Thread Matt Stith
You might wanna use firebug and make sure your getting a correct response. It might be making an error because what you are assigning isnt a url. On 7/5/07, Mike Fern [EMAIL PROTECTED] wrote: hi devs, i'm new to this group. i recently play with jquery and feel happy with the features and

[jQuery] Re: How to Rotate an Image 90 Degrees

2007-06-26 Thread Matt Stith
Thats not exactly something you want javascript doing, thats more of a server-side thing. Are you using php? On 6/26/07, cfdvlpr [EMAIL PROTECTED] wrote: Is there any plugin that will rotate an image 90 degrees? Something tells me this is difficult if not impossible to do.

[jQuery] Re: How to terminate each befor full iteration

2007-06-17 Thread Matt Stith
if (!okay) return; maybe? :P On 6/17/07, wyo [EMAIL PROTECTED] wrote: I'd like to terminat (beak) the iteration in the following code if a value is emtpy. Is that somehow possible? var okay = true; $('.input_required').each (function (i){ if ($(this).val() == ) { okay = false;

[jQuery] Re: Newbie question about click()

2007-06-15 Thread Matt Stith
I believe you can use $(p).toggle(slow); and it will achieve the result you are after, no need for 2 seperate functions. On 6/15/07, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: Hi, I'm a newbie in jquery please be patient :-) I'm playin with jquery mixing some tutorials. I'm trying to

[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Matt Kruse
to use plugins, the look and feel/API of jQuery to them will in large part be that of the plugins they choose, which leaves jQuery's fate up to random developers creating random plugins. Not so good, IMO. Matt Kruse

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-12 Thread Matt Vanderpol
I don't know if order matters, but I kept all the elements in alphabetical order when adding this. I inserted it between IEFavoritesWereImported and InputFieldWidthRatio. -Matt On Jun 12, 2007, at 8:16 AM, Franck Marcia wrote: Yes, I did. I applied Matt's tip, restarted Safari

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Matt Stith
Yes, getElementById returns the first one found, i.e. the first one in the dom, if there are multiple nodes with the same id. On 6/12/07, Aaron Heimlich [EMAIL PROTECTED] wrote: On 6/12/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Plus, what happens if you have: div id=bam / span

[jQuery] Re: Show hide div with cookie for remembering position -- possible solution

2007-06-11 Thread Matt Stith
Hi! Heres a couple things i might do $('a.show').hide(); $('a.hide').click(function(){ $('a.show').show(); $('h2.title,.view-header-latest').add(this).hide(); // Combine multiple $.cookie('hideShow,hide,{expires:365}); // Only need one

[jQuery] Re: getting the caller of an event

2007-06-11 Thread Matt Stith
using javascript is much better than putting the functions inline in the HTML. Its alot cleaner, and makes it alot easier to manage. On 6/12/07, james_027 [EMAIL PROTECTED] wrote: Hi, I have think of that solution, and but my concern is I have read somewhere that says, why change the dom if

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-11 Thread Matt Vanderpol
Per a comment on Slashdot (http://apple.slashdot.org/comments.pl? sid=238141cid=19468947) open %APPDATA%\Apple Computer\Safari\Preferences.plist in your favorite text editor. Add: keyIncludeDebugMenu/key true/ and save it. Restart Safari. -Matt On Jun 11, 2007, at 8:00 PM, Mike Alsup

[jQuery] Re: [ot] String.split in Opera.

2007-06-10 Thread Matt Stith
why not just use /(\s+)/ in firefox too then? It gives me the correct number of 5. On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: javascript:alert(hello there Opera.split(/\b/).length) Firefox says 5 , safari says 6, Opera says 15! it really got me confused while writing some jQuery code! now I

[jQuery] Re: [ot] String.split in Opera.

2007-06-10 Thread Matt Stith
o.O damn, like you said, i didnt know there was that big of a difference! On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: safari says 3 for javascript:alert(hello there Opera.split(/(\s+)/).length) On 6/10/07, Matt Stith [EMAIL PROTECTED] wrote: why not just use /(\s+)/ in firefox too

[jQuery] Re: [ot] String.split in Opera.

2007-06-10 Thread Matt Stith
IE would throw an exception and try to install adware on your computer. :P On 6/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: WWIED? What would IE do? On 6/10/07, Matt Stith [EMAIL PROTECTED] wrote: o.O damn, like you said, i didnt know there was that big of a difference! On 6/10/07, Ⓙⓐⓚⓔ [EMAIL

[jQuery] Re: Replace

2007-06-08 Thread Matt Stith
...k? :P You got a question? On 6/8/07, Kixe [EMAIL PROTECTED] wrote: select id=catid name=catid option value=1A (1st)/option option value=2B (2nd)/option /select

[jQuery] Re: Getting the window/frame size with JQuery .. help

2007-06-08 Thread Matt Stith
Hmmm.. I think we need some sort of How do i... page on the jquery website... Ive seen some of the same questions, like this one, asked over and over On 6/8/07, Brandon Aaron [EMAIL PROTECTED] wrote: The dimensions plugin extends the built-in height and width methods to work on the window and

[jQuery] Re: Append Area to Map

2007-06-08 Thread Matt Stith
A bit of HTML would help a bit! On 6/8/07, Jimmy Glass [EMAIL PROTECTED] wrote: I have been trying to append a freaking Area tag to a MAP tag for about 2 hours now... The data argument is always a string. function(data) {

[jQuery] Re: select td 2 levels up

2007-06-07 Thread Matt Stith
You could just do $(this).parent().parent().addClass(greenback); That should work fine. On 6/7/07, Josh Nathanson [EMAIL PROTECTED] wrote: I am trying to select the first td element two levels up from the clicked div element. I have this, which works, but it's ugly.

[jQuery] Re: CurvyCorners Minified

2007-06-06 Thread Matt Stith
You can go ahead and do it yourself! http://dean.edwards.name/packer/ (google is your friend ;) ) On 6/6/07, Glen Lipka [EMAIL PROTECTED] wrote: Is there a packed / minified version of the jQuery Curvy Corners? Glen

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread Matt Kruse
Specificity is a big reason to use id's. You can make a rule using #id { ... } and know that it will take precedence over all your tag/class-based rules. Matt Kruse

[jQuery] Re: jquery way to set page title?

2007-06-01 Thread Matt Stith
No need for jquery here, using normal javascript would be much faster. document.title = blahblahblah; (i think :-\ ) On 6/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Subject line is the question. How do I use JQuery to set the page title (what goes in the TITLE tags)? Thanks, -

[jQuery] Re: good show/hide icon

2007-05-30 Thread Matt Stith
Search up 'Famfamfam', that site has an icon set called 'Silk' thats available for free, that has tons of icons, for pretty much anything you can imagine. Also you might wanna check out IconBuffet.com (if you sign up, let me know your screenname, ill send you a couple sets) On 5/30/07, SamCKayak

[jQuery] Re: good show/hide icon

2007-05-30 Thread Matt Stith
You could use the icons 'add.png' and 'delete.png' for hide/show maybe? Anyways, just add me as a friend on IB (im seventoes), and comment on my page for any icons you want, i have tons of stamps so i can send you anything. On 5/30/07, SamCKayak [EMAIL PROTECTED] wrote: Silk is a great deal,

[jQuery] Re: Determining show / hide state

2007-05-30 Thread Matt Stith
Yeah, you can select only hidden or visible objects by using $(#selector:visible) or $(#selector:hidden) easy as jCake ;) On 5/30/07, SamCKayak [EMAIL PROTECTED] wrote: Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam

[jQuery] Re: jQuery on Rails-related

2007-05-29 Thread Matt Stith
Its a mod of Ruby On Rails that replaces the default Prototype/Scriptaculus with jQuery. On 5/29/07, Daemach [EMAIL PROTECTED] wrote: What is jQuery on Rails? ;) On May 29, 9:52 am, Yehuda Katz [EMAIL PROTECTED] wrote: Hey guys, Great news! Hpricot has accepted my patches to make hpricot

[jQuery] Re: Problem with globalEval

2007-05-27 Thread Matt Stith
The HTML comments are to hide the script from older browsers that dont understand javascript. On 5/27/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: why do you have !-- comments -- instead of /* comments */ in a script? On 5/27/07, Network Newbie [EMAIL PROTECTED] wrote: When the function 'globalEval'

[jQuery] Re: Problem with globalEval

2007-05-27 Thread Matt Stith
[EMAIL PROTECTED] wrote: The older browsers that jQuery doesn't support? On 5/27/07, Matt Stith [EMAIL PROTECTED] wrote: The HTML comments are to hide the script from older browsers that dont understand javascript. On 5/27/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: why do you have !-- comments

[jQuery] Re: Problem with globalEval

2007-05-27 Thread Matt Stith
True, but alot of cell phone browsers will show the scripts if its not commented out. On 5/27/07, RobG [EMAIL PROTECTED] wrote: On May 28, 5:10 am, Matt Stith [EMAIL PROTECTED] wrote: The HTML comments are to hide the script from older browsers that dont understand javascript. The use

<    1   2   3   4   5   >