[jQuery] Re: Test - please ignore

2009-07-24 Thread Liam Potter
no, I will acknowledge! anoop wrote: Test - please ignore

[jQuery] Re: Test - please ignore

2009-07-24 Thread Anoop kumar V
Thanks - but if you really should, then please acknowledge my actual posts: http://groups.google.com/group/jquery-en/browse_thread/thread/130b4df144c2e0b9 I would much appreciate any help you could provide.. :-) -Anoop On Fri, Jul 24, 2009 at 12:26 PM, Liam Potter

[jQuery] Re: test - sorry, ignore -- why can't I see my posts....

2009-04-20 Thread brian
On Mon, Apr 20, 2009 at 6:21 PM, kali maya778...@yahoo.com wrote: I can't see any posts I post to this group, why is this, WHY is it at all that you only read this forum if you're logged on to google?? most forums online you just need to register with the forum.. WHY bring google in um

[jQuery] Re: test for .is(:visible) fails in Safari

2009-03-15 Thread Jon Crump
Ricardo, Thanks so much for responding. That's very helpful. My use of events has been very rudimentary so far; your .bind() example has helped me understand them more fully. And now that I know what I'm looking for, various approaches to the problem have been illuminating as well. for

[jQuery] Re: test for .is(:visible) fails in Safari

2009-03-14 Thread Jon Crump
Dear all, OK, solved it myself in case anyone's still listening. It still remains a puzzle why safari on Mac interprets the code differently. The if/else test below isn't necessary. The fadeOut was executing, but the .load() callback failed when the .thumb clicked was the same one as the

[jQuery] Re: test for .is(:visible) fails in Safari

2009-03-14 Thread ricardobeat
Try this: el.find(#pic) .attr({src: pix[imgName].imgSrc, name: imgName}) .bind('load readystatechange', function(e){ if (this.complete || (this.readyState == 'complete' e.type = 'readystatechange')) { el.fadeIn(slow); $(#loading).hide(); }; });

[jQuery] Re: test for css selector capability?

2009-03-02 Thread Greg Glockner
Hi, I realize that jQuery.browser is now deprecated, but I'd like to give a use case where it makes sense to use jQuery.browser: I have some code where each browser renders slightly differently, such as how they treat borders for DIVs. If I use jQuery.browser, I can update the CSS appropriately

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Mohd.Tareq
Hi Geuis, Ther is a function with alias ($.browser) it will gives u functionality to identify browser name like this *$.browser.mozilla , $.browser.msie , ** $.browser.opera , $.browser.safari.* if u wana return the version of browser , then u have use below function *$.browser.version

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Aaron Gundel
jQuery.browser is deprecated in 1.3 + (don't use it). JQuery now uses feature detection. This is a more extensible way of detecting which browser is being utilized. See the following page for more details... http://docs.jquery.com/Utilities/jQuery.support On Mon, Feb 9, 2009 at 4:02 AM,

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Geuis
I think my question was misunderstood. I'm not asking about detecting browser versions. I want to test if the current browser has native support for a particular kind of CSS selector. My previous example was the :first- child pseudo selector that isn't supported in IE6, but is supported in most

[jQuery] Re: test for css selector capability?

2009-02-09 Thread MorningZ
Are you *sure* that parent child doesn't work in IE6? I could see that this CSS declaration, and pretty sure it doesn't work ul li { color: blue; } but part of the magic of jQuery (and other libraries) is that it takes that into account already. and saying $(ul li) should work no

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Geuis
I think my question was misunderstood. I'm not asking about detecting browser versions. I want to test if the current browser has native support for a particular kind of CSS selector. My previous example was the :first- child pseudo selector that isn't supported in IE6, but is supported in most

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Geuis
I guess this really is a hard concept to get across after all. Ok, so there's browser feature detection with .support. So imagine the thing I'm talking about works like this: alert( $('ul li:first-child').support ); alerts 'true' if Firefox, but alerts 'false' if IE6. I'm not trying use the

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Karl Rudd
You could do this because the .css(attribute) returns the computed (the result of all the CSS applied) value of an element's CSS attribute. It would involve adding a stylesheet to the document with the particular selector in it, with say a change to the background colour. Then create elements

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Geuis
Ahh, that's a great point! Thanks Karl, I think you solved my problem! On Feb 9, 4:06 pm, Karl Rudd karl.r...@gmail.com wrote: You could do this because the .css(attribute) returns the computed (the result of all the CSS applied) value of an element's CSS attribute. It would involve adding

[jQuery] Re: Test if BlockUI is blocking an element

2009-01-16 Thread Mike Alsup
Is there a way to test if blockUI is currently blocking a specific element? You can check to see if there is a block on a specific element like this: var isBlocked = $('#elementId').data('blockUI.isBlocked');

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread MorningZ
I'm trying to grasp the concept of need for this check What's a situation where you would wonder what it is? Are you not in control of your own code or something? On Jan 5, 3:53 pm, Andy Matthews amatth...@dealerskins.com wrote: How can I test to see if something is a jQuery object, or a

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Eric Garside
This sort of thing can happen a lot if you're writing functions which take multiple inputs, based on convenience. Being in control of your code shouldn't be a fascist thing like you're describing, where there's only one way in which everything can or should happen. Having openness in parameters

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Andy Matthews
('fast'); $obj.show('fast'); } -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, January 05, 2009 2:57 PM To: jQuery (English) Subject: [jQuery] Re: Test if a variable is a jQuery object? I'm trying to grasp

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Ariel Flesler
There're different ways: obj instanceof jQuery obj obj.constructor == jQuery obj obj.jquery And any other possible attribute sniffing, 'jquery' is obviously the safest. -- Ariel Flesler http://flesler.blogspot.com On Jan 5, 7:08 pm, Eric Garside gars...@gmail.com wrote: This sort of thing

[jQuery] Re: Test that at least one input element has value

2008-12-08 Thread Victor
I just did something similar to your sollution but ended up in the same problem (duplicating the error-message). Did you already found the sollution to it?! On 3 nov, 09:55, Torgeir [EMAIL PROTECTED] wrote: Yes, I need to do somewhat the same thing as the groups option does, but the problem

[jQuery] Re: Test that at least one input element has value

2008-11-03 Thread Torgeir
Yes, I need to do somewhat the same thing as the groups option does, but the problem is that I have 20 - 30 products and I would like to add/remove products without having to update the validation each time. Here's what the docs say about the groups option: A group consists of an arbitrary group

[jQuery] Re: Test that at least one input element has value

2008-10-30 Thread w1ntermut3
If I understand you right, I think you need the groups option: $(#myform).validate({ groups: { username: product1 product2 } }); AFAIK, that'll group error messages for your selected elements.

[jQuery] Re: Test if jquery has loaded

2008-02-08 Thread Shawn
It's not a case of the alert not showing up. That would result in an error halting all processing. So for a human sitting at the screen that would give us the data he wanted. But for code that needs to do something differently if jQuery were not loaded, the alert method would just fail and

[jQuery] Re: Test if jquery has loaded

2008-02-07 Thread Shawn
That would fail if jQuery hasn't loaded. It would give an error saying something like $ has no properties, or $ is not a function. You could try something like this: if (jQuery) { alert(jQuery loaded); } I haven't tested this but don't see why it wouldn't work... HTH Shawn Kyle Browning

[jQuery] Re: Test if jquery has loaded

2008-02-07 Thread Kyle Browning
Of course it would fail if the function didnt exist. Thats the point. He wanted to know how to check if it was loaded or not, so If the alert doesnt show up, its not loaded. On Feb 6, 2008 11:48 PM, Shawn [EMAIL PROTECTED] wrote: That would fail if jQuery hasn't loaded. It would give an

[jQuery] Re: Test if jquery has loaded

2008-02-06 Thread Karl Swedberg
On Feb 6, 2008, at 5:41 PM, MikeeBee wrote: Is there a small piece of code you can put on a page to test if jquery has loaded? Thanks Sure. You could do this: if (typeof jQuery != 'undefined') { // do something } --Karl _ Karl Swedberg www.englishrules.com

[jQuery] Re: Test if jquery has loaded

2008-02-06 Thread Kyle Browning
$(document).ready(function() { alert('hi'); }); This uses jQuery's .ready function on the document object On Feb 6, 2008 2:41 PM, MikeeBee [EMAIL PROTECTED] wrote: Is there a small piece of code you can put on a page to test if jquery has loaded? Thanks

[jQuery] Re: Test if object is jQuery object

2007-10-31 Thread Klaus Hartl
On 30 Okt., 17:55, Josh Nathanson [EMAIL PROTECTED] wrote: Is there a cool way to check if an object is a jQuery object as opposed to any other object? I tried the constructor property but it just says Object(), the same as any other object. Tried typeof, but same deal, just object.

[jQuery] Re: Test if object is jQuery object

2007-10-31 Thread Josh Nathanson
[EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, October 31, 2007 3:06 AM Subject: [jQuery] Re: Test if object is jQuery object On 30 Okt., 17:55, Josh Nathanson [EMAIL PROTECTED] wrote: Is there a cool way to check if an object is a jQuery object as opposed

[jQuery] Re: Test if object is jQuery object

2007-10-30 Thread Wizzud
Try ... if(Object.jquery){ ; // it's (probably) a jQuery object }else{ ; // it's not } On Oct 30, 4:55 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Is there a cool way to check if an object is a jQuery object as opposed to any other object? I tried the constructor property but it just

[jQuery] Re: Test if object is jQuery object

2007-10-30 Thread Eric Martin
On Oct 30, 9:55 am, Josh Nathanson [EMAIL PROTECTED] wrote: Is there a cool way to check if an object is a jQuery object as opposed to any other object? I tried the constructor property but it just says Object(), the same as any other object. Tried typeof, but same deal, just object.

[jQuery] Re: Test if object is jQuery object

2007-10-30 Thread Josh Nathanson
if (obj.jquery) { // it is a jquery object - jquery holds the version } else { // not a jquery object } Thanks Eric and Wizzud, that's what I was looking for. Much better than what I was doing. -- Josh

[jQuery] Re: Test if object is jQuery object

2007-10-30 Thread Yehuda Katz
Another option would be obj instanceof $ On 10/30/07, Josh Nathanson [EMAIL PROTECTED] wrote: if (obj.jquery) { // it is a jquery object - jquery holds the version } else { // not a jquery object } Thanks Eric and Wizzud, that's what I was looking for. Much better than what I

[jQuery] Re: test

2007-09-18 Thread Aaron Heimlich
success! On 9/17/07, KushM [EMAIL PROTECTED] wrote: test -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: test

2007-09-05 Thread Dylan Verheul
Yes they are :-) On 9/5/07, Daniel Rossi [EMAIL PROTECTED] wrote: my emails arent coming through

[jQuery] Re: test

2007-09-05 Thread Giovanni Battista Lenoci
On Sep 5, 11:40 am, Daniel Rossi [EMAIL PROTECTED] wrote: Interesting, im not getting the initial email, just the replies ! I'm using gmail pop though. Same for me, I've renounced to make it work with thunderbird, I use web interface of gmail to send email to the list.

[jQuery] Re: test

2007-09-05 Thread SeViR
Daniel Rossi escribió: Interesting, im not getting the initial email, just the replies ! I'm using gmail pop though. On 05/09/2007, at 7:24 PM, Dylan Verheul wrote: Yes they are :-) On 9/5/07, Daniel Rossi [EMAIL PROTECTED] wrote: With GMail, your messages has not shown in the

[jQuery] Re: test

2007-09-05 Thread Daniel Rossi
On 05/09/2007, at 9:06 PM, SeViR wrote: Yes they are :-) On 9/5/07, Daniel Rossi [EMAIL PROTECTED] wrote: With GMail, your messages has not shown in the conversations. You can use Thunderbird or another email client ;-) Gmail pop here, I use Mac Mail. Thunderbird is terribly broken

[jQuery] Re: test

2007-09-05 Thread Fred Janon
I think Gmail changed something, I don't see my replies to group mails until someone else answers again. The emails are in the sent folder until then. Fred On 9/5/07, Daniel Rossi [EMAIL PROTECTED] wrote: Interesting, im not getting the initial email, just the replies ! I'm using gmail pop

[jQuery] Re: test

2007-07-12 Thread Aaron Heimlich
You are excused :) On 7/12/07, Salvatore FUSTO [EMAIL PROTECTED] wrote: excuse for this test -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: test

2007-07-12 Thread Salvatore FUSTO
thanks :) - Original Message - From: Aaron Heimlich To: jquery-en@googlegroups.com Sent: Thursday, July 12, 2007 5:46 PM Subject: [jQuery] Re: test You are excused :) On 7/12/07, Salvatore FUSTO [EMAIL PROTECTED] wrote: excuse for this test -- Aaron

[jQuery] Re: Test

2007-06-22 Thread Benjamin Sterling
passed :) On 6/22/07, Rey Bango [EMAIL PROTECTED] wrote: Test -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: Test

2007-06-22 Thread Ⓙⓐⓚⓔ
you really should return false; On 6/22/07, Benjamin Sterling [EMAIL PROTECTED] wrote: passed :) On 6/22/07, Rey Bango [EMAIL PROTECTED] wrote: Test -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- Benjamin Sterling

[jQuery] Re: Test

2007-06-22 Thread Benjamin Sterling
Actually... it would return true since I do believe he was looking for a positive response. ;) On 6/22/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: you really should return false; On 6/22/07, Benjamin Sterling [EMAIL PROTECTED] wrote: passed :) On 6/22/07, Rey Bango [EMAIL PROTECTED] wrote:

[jQuery] Re: Test

2007-06-22 Thread Rey Bango
LOL! Benjamin Sterling wrote: Actually... it would return true since I do believe he was looking for a positive response. ;) On 6/22/07, *Ⓙⓐⓚⓔ* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: you really should return false; On 6/22/07, *Benjamin Sterling* [EMAIL PROTECTED]

[jQuery] Re: test if element as a class

2007-04-27 Thread Michael Price
Alexandre Plennevaux wrote: hello, i'm trying to test a condition whether a link has a given class, and have it return true or false. if ($(this).attr(class)=='refresh') { alert(changing page); return true; } else { return false; } Try, from memory: if ($(this).is(.CLASSNAME))

[jQuery] Re: test if element as a class

2007-04-27 Thread pixeline
hi Michael, i just did : if ($(this).filter(.selected)) { return true; } else { and it worked ! On Apr 27, 10:44 am, Michael Price [EMAIL PROTECTED] wrote: Alexandre Plennevaux wrote: hello, i'm trying to test

[jQuery] Re: test if element as a class

2007-04-27 Thread Dave Cardwell
pixeline wrote: hi Michael, i just did : if ($(this).filter(.selected)) { return true; } else { and it worked ! That's not quite right. .filter() returns a jQuery object, which will always evaluate to true. To

[jQuery] Re: Test for a function being defined

2007-04-04 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Shelane, Is there a test to know if a function has been defined or declared? function modify(){ ...my code } if(function('modify')) or something like that? A function is just a variable. if( !!modify ) alert(exists); if( typeof modify == function

[jQuery] Re: Test for a function being defined

2007-04-03 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
if (typeof(modify)==function){} .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.: ||:. Nathan Young Cisco.com-Interface Development A: ncy1717 E: [EMAIL PROTECTED] -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of