Re: [jQuery] Tabbed view and Flash Movies

2010-01-13 Thread DaveMK
Thanks for the response! I ended up calling a lifeline friend and he helped me figure it out. Very similar to your solution. Again, much appreciated! MorningZ wrote: > > This is completely untested, but it would seem to make sense to work > > Given this HTML > > > >

[jQuery] Re: ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread RobG
On Jan 14, 3:29 am, Jack Killpatrick wrote: > Hi All, > > We've released a new version of our jQuery Validation plugin credit card > extension. It is likely that such validation is more hassle than it's worth... > Changes include: > > 1. updated card prefixes (including latest Discover Card ch

[jQuery] Re: Read ajax response headers?

2010-01-13 Thread bryan
Hmmm, I tried what you suggested, but I don't believe it does anything but change the name of the variable inside the callback function. The same data is being passed. On Jan 13, 2:34 pm, Ami wrote: > try to change the paramater name inside the success function, to > something like "xhr", > f

[jQuery] jQuery Cycle categorized Pager

2010-01-13 Thread M. L. Giannotta
Hello everyone, I've recently discovered the power of jQuery plug-in cycle, and I'm enjoying it. However, tonight I faced an obstacle trying to achieve something. Basically, what I want to do, is to split the pager for a single slideshow into multiple parts, each containing only a some of the slid

[jQuery] Re: jQuery stripping HTML tags from Ajax response

2010-01-13 Thread Dave Methvin
Is #thing a THEAD or TBODY tag? That would be the only valid place to append a TR.

[jQuery] jQuery stripping HTML tags from Ajax response

2010-01-13 Thread Beckley
Hi, Here's what I'm working with (#thing is a table): $.get("/applications/stuff.php", { '_request':'thing', 'id':id, 'otherid':$('#otherid').val() }, function(data) { $('#thing').append(data); } $("#t

[jQuery] Re: Why is this demo doesn't work?

2010-01-13 Thread zirho
thanks MorningZ but I am still kinda hoping that gets fixed for further inconvinience... take care On 2009년12월14일, 오후10시43분, MorningZ wrote: > Use one of the links listed on this page instead: > > http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 6:45 PM, Michael Geary wrote: > In your example, the hello function will never be garbage collected, because > the window object has a property named 'hello' that holds a reference to the > function. Thanks for the correction. Nathan

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

2010-01-13 Thread Matt Maxwell
You're right. This was a small oversight on my end, though, it would have been a little more helpful to the OP if you had provided an explanation with your reply. :) The reason I use var that = this; is not for scope but rather to ensure that the proper object is being referenced inside the funct

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

2010-01-13 Thread Scooby
Thanks guys!! Got it working.. On Jan 13, 7:00 pm, Matt Maxwell wrote: > 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

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

2010-01-13 Thread RobG
On Jan 14, 11:00 am, Matt Maxwell wrote: [...] > var that = this; // scope The value of the this keyword has nothing whatever to do with scope. -- Rob

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

2010-01-13 Thread Matt Maxwell
Also, more information on the call function (if you're not familiar with it) can be found here: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Function/call You could also use the apply fu

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 wrote: > 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 > though, and that is h

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) { i

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

2010-01-13 Thread pedalpete
Everything that I've seen says you have to check the length of the element you are looking for. So I think you want if($(this).parents('ul').length==0){ $(this).addClass("active"); } If a parent UL was found, the length would be > 0

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

2010-01-13 Thread Tim Molendijk
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 though, and that is how to deal with private functions in a powerful yet elegant manner. My plugins generally look something like this: (function($) {

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Michael Geary
Removing a element just removes the script's *source code* from the DOM. It doesn't undo any actions that the script has already performed, such as defining functions or variables or creating other DOM elements. It doesn't change their availability for garbage collection at all. In your example,

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

2010-01-13 Thread Scooby
Want to check if the current links parent, which would be a list item in my case, has an unordered list or not.. Am looking for all the ones without unordered lists... if($(this).parent().not("has(>ul)")){ $(this).addClass("active"); }

[jQuery] Re: Tabbed view and Flash Movies

2010-01-13 Thread MorningZ
This is completely untested, but it would seem to make sense to work Given this HTML Tab 1 Tab 2 Tab 3 then $(document).ready(function() { $("#tabs").tabs({ select: function(event, ui) {

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 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 ret

[jQuery] Re: jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread Jules
Sorry, I just noticed you are using 1.2.6. Ignore my reply. On Jan 14, 11:26 am, Jules wrote: > This clone() works for me in ie 6.0 :).  May be C.fx.step is an > element in your page and IE 6 can't find it for some reason? > > >     script> > >