[jQuery] Re: why coding like this:(function(){})();

2009-03-15 Thread T.J. Crowder
the containing scope. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available

[jQuery] Re: what's the good things coding like this:(function(){})();

2009-03-15 Thread T.J. Crowder
See the reply in your duplicate thread: http://groups.google.com/group/jquery-en/browse_thread/thread/6366e26a7727a81d On Mar 15, 12:50 pm, lovespring wrote: > (function(){})(); > what's the first () means? is this a standard grammar?and why coding > like this?

[jQuery] Re: why coding like this:(function(){})();

2009-03-15 Thread T.J. Crowder
#x27;s f() example), and it additionally is > passing an argument to the function (the jQuery object--which is > global, which is then assigned to the $ inside the function). The foo# > variables inside have different scope as indicated. A variable > declared inside a function with var

[jQuery] Re: Working with hash?

2009-03-15 Thread T.J. Crowder
@brian, @mkmanning: FWIW, looked to me from his example like he really did mean hash (what some use as a synonym for the anchor portion of the URI), not query string. Perhaps he's doing some history stuff... -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consu

[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread T.J. Crowder
.org/TR/CSS2/selector.html [2] http://www.w3.org/TR/css3-selectors [3] http://docs.jquery.com/Release:jQuery_1.3 [4] http://wiki.github.com/jeresig/sizzle HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 18, 10:21 am, will wrote

[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread T.J. Crowder
.6 code doesn't quite work in 1.3? HTH, sorry for missing != support earlier. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 18, 10:59 am, "T.J. Crowder" wrote: > Hi, > > Is there a != attribute operator?

[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-19 Thread T.J. Crowder
Hi Ricardo, My guess is that he's using multiple class names and that's why it wasn't working originally (false positives); see my post a couple back. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 19, 12:54 am, ric

[jQuery] Re: Is there anyway to grab the Children of an Element?

2009-03-19 Thread T.J. Crowder
text (no pun!) we can probably figure it out, if the above isn't helpful. FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 19, 1:20 pm, Martin wrote: > Hello, > >

[jQuery] Re: Help me solve this IE6 design issue

2009-03-21 Thread T.J. Crowder
bgiframe [3] http://www.google.com/search?q=iframe+site%3Adocs.jquery.com HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 21, 12:03 pm, "sandee...@adpsconsulting.com" wrote: > The problem in brief :- > In simple

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-22 Thread T.J. Crowder
* * You would probably want to generalize that into a reusable module of some kind, but the logic is simple enough. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting s

[jQuery] Re: Pointers to disable default function if JS is enabled

2009-03-22 Thread T.J. Crowder
tDefault(); } }); (You'll need to add in your animate logic, etc.) HTH, and apologies if I'm misreading. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 22, 2:28 pm, mike wrote: > folks, I am trying to puzzle something

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-22 Thread T.J. Crowder
xpert Guarantee Certified Developer > > XHTML:http://www.expertrating.com/transcript.asp?transcriptid=1879053 > > CSS :http://www.expertrating.com/transcript.asp?transcriptid=1870619 > > RentACoder > > Profile:http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInf... >

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-22 Thread T.J. Crowder
ng a > concrete example is always helpful, especially since the OP's skill > level is unknown). In the case of my example it would be > > $('#btnStop').click(function(){clearInterval(swapDiv);}); > > I think it would be good for the OP to note that part of t

[jQuery] Re: submit form into shadowbox (or lightbox)

2009-03-23 Thread T.J. Crowder
use jQuery.post [2] which is a simplified wrapper for it, but .post is missing out some important things IMHO, like a callback on failure.) [1] http://docs.jquery.com/Ajax/jQuery.ajax#options [2] http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype HTH, -- T.J. Crowder tj / crowder software / com

[jQuery] Re: submit form into shadowbox (or lightbox)

2009-03-23 Thread T.J. Crowder
3, 1:57 pm, "T.J. Crowder" wrote: > Hi, > > You can POST the form using jQuery.ajax[1] (being sure to set the > 'type' parameter to 'POST'), and then handle creating and populating > the shadowbox/lightbox in the 'success' handler using the res

[jQuery] Re: jquery toggle class, I needed to switch class....

2009-03-23 Thread T.J. Crowder
Query.fn.switchClass = function(class1,class2) { if (this.hasClass(class1)) { this.removeClass(class1).addClass(class2); } else { this.removeClass(class2).addClass(class1); } }; [1] http://blog.niftysnippets.org/2008/03/horror-of-implicit-globals.html FWIW, -- T.J. Cr

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread T.J. Crowder
gree, they don't all have to be globals. JavaScript provides very powerful OOP features in the form of prototypical inheritance. You can also simulate class-based inheritance if you like, although JavaScript is not class-oriented; it's that flexible. :-) HTH, -- T.J. Crowder tj /