Re: [jQuery] Re: Link Clicks Double Firing

2010-01-14 Thread Matt Maxwell
That is true, but if you remove the link's href, the application will not degrade for users without JavaScript enabled. On Thu, Jan 14, 2010 at 8:46 AM, bill ozzi...@gmail.com wrote: this really an interesting jq/html semantic issue: if the a tag is not handling the actual redirection to

Re: [jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread Matt Maxwell
What I'm assuming is happening here is that the even tied to the a tag is firing as well as the click tied to the cell. It appears as though two windows are opened because the page you're currently on goes to the PDF and a new window is opened with the PDF. The easiest solution would be to add

Re: [jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread Matt Maxwell
This is correct. I actually wrote a few jQuery extensions that handle this. The code is: $.fn.extend({ // checks to see if an element exists // if no callback is supplied, returns // a boolean value stating if the element // exists, otherwise executes the callback exists: function (callback) {

Re: [jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Matt Maxwell
Maybe try using something like: $.myplugin.fill.call( this, red ); On Wed, Jan 13, 2010 at 6:47 PM, Tim Molendijk taw.molend...@gmail.comwrote: Hey all, I've been developing jQuery plugins for quite some time now, and I like to think I got pretty good at it. One issue keeps nagging me

Re: [jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Matt Maxwell
at 7:04 PM, Matt Maxwell leftwithoutli...@gmail.comwrote: Maybe try using something like: $.myplugin.fill.call( this, red ); On Wed, Jan 13, 2010 at 6:47 PM, Tim Molendijk taw.molend...@gmail.comwrote: Hey all, I've been developing jQuery plugins for quite some time now, and I like to think

Re: [jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread Matt Maxwell
the function. Thanks, Matt On Wed, Jan 13, 2010 at 7:12 PM, RobG rg...@iinet.net.au wrote: On Jan 14, 11:00 am, Matt Maxwell leftwithoutli...@gmail.com wrote: [...] var that = this; // scope The value of the this keyword has nothing whatever to do with scope. -- Rob