[jQuery] Re: jQuery Function - how should I write it?

2009-05-13 Thread Bharat
I am all set. Figured it out. It does take some getting used to, but seems to be quite similar to Java: jQuery.fn.toggleOpposite = function(readonly) { if (readonly && this.val().length > 0) { // reset the value to null this.val(''); } return this.attr('disabled',readonly).css('o

[jQuery] Re: jQuery function to click a link on the page

2009-04-09 Thread Thomas Creutz
Thomas Creutz schrieb: > CaptainABrad schrieb: >> Stated simply, is there a way to either: >> 1) Click a link on a page with jQuery, or >> 2) Open a link in a new tab. > > 2: window.open and target "_new" should work > > http://www.mydigitallife.info/2006/10/08/launch-and-open-links-in-new-window

[jQuery] Re: jQuery function to click a link on the page

2009-04-09 Thread Thomas Creutz
CaptainABrad schrieb: > Stated simply, is there a way to either: > 1) Click a link on a page with jQuery, or > 2) Open a link in a new tab. 2: window.open and target "_new" should work http://www.mydigitallife.info/2006/10/08/launch-and-open-links-in-new-window-or-tab-with-_blank-or-_new-as-targe

[jQuery] Re: jQuery function to click a link on the page

2009-04-09 Thread mattimus5...@gmail.com
try using window.open, its not jquery, just javascript, but you use it to open new windows On Apr 9, 10:07 am, CaptainABrad wrote: > http://abrad45.com/sites/beta/ > > I have this almost working. When you drop the icons on the iMac > Screen, the pages are supposed to load in a new tab. I was doi

[jQuery] Re: JQuery $ function

2008-10-18 Thread Dave Methvin
> How does this work...(This actually does what I want it to, but I am > amazed that JQuery can figure out how to select from an array) If the incoming arg to $() is an array, it's assumed to be an array of DOM elements. That's what your get_selected_rows() returns, so jQuery creates an object t