RE: [jQuery] Callback in $.getJSON is called but variable assignment doesn't persist.

2010-01-04 Thread Josh Nathanson
Probably an async issue - any code after the $.getJSON call (but not in the callback) will get executed before the async call returns. Any code that is dependent on this.Settings being set with the returned data must be within the callback function. Also "this" is probably not what you are expect

RE: [jQuery] Selectors and Internet Explorer

2009-12-10 Thread Josh Nathanson
Maybe try closing the option tag? -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of rob Sent: Thursday, December 10, 2009 12:54 PM To: jQuery (English) Subject: [jQuery] Selectors and Internet Explorer I'm having some problem w

RE: [jQuery] Can't get image's dimension under a hidden object

2009-11-19 Thread Josh Nathanson
One little trick I've used is to use absolute positioning to move the image way off the page, like left = -5000, then display the image, get the dimensions, then hide it again. This way your layout won't be disturbed. -- Josh From: Michael Geary [mailto:m...@mg.to] Sent: Thursday, N

[jQuery] Re: Single page application and jQuery

2009-09-22 Thread Josh Nathanson
Hi Phaedra, Probably, most people don't pay much attention to memory leakage when they are creating applications, or they don't test on IE. A quick scan of the jQuery bug tracker shows a few bug reports that relate to the leakage in IE. It doesn't look like they've been resolved. You might wan

[jQuery] Re: jQuery select where attribute ID less than

2009-08-31 Thread Josh Nathanson
Any chance of doing what you need to do on the server, rather than the client? Are you stuck with the naming convention you're using, or can you name the spans a little differently or give them different class names to allow for better selection criteria? Given your current situation you'd have

[jQuery] Re: Is this sytax legitimate?

2009-08-19 Thread Josh Nathanson
Rick - the load method is asynchronous, so you have to get the html from #favoritesHold in a callback from the load method. Otherwise, the subsequent code after the load method is running before the html is returned from the server. -- Josh -Original Message- From: jquery-en@googlegroup

[jQuery] Re: How can I modify this code to get the tooltip to disappear?

2009-08-18 Thread Josh Nathanson
Rick: I think in your mouseout binding, you also need to unbind the mousemove event handler from the document. I think would look like this: $('.clickable').mouseout(function() { $().unbind( 'mousemove' ); $('div.toolTip').remove(); }); -- Josh From:

[jQuery] Re: $.jgrid is undefined with jqgrid plugin

2009-08-04 Thread Josh Nathanson
I think that plugin is broken. I tried it a couple of weeks back and got the same error, tried to debug it for a while, and gave up. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Massimiliano Marini Sent: Tuesday, August 0

[jQuery] Re: BlockUI 1.33 crashing Internet Explorer

2009-07-15 Thread Josh Nathanson
Try upgrading to jQuery 1.3.2 and BlockUI 2.0. Your versions are somewhat outdated. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of JQUser Sent: Wednesday, July 15, 2009 10:08 AM To: jQuery (English) Subject: [jQuery] BlockU

[jQuery] Re: function scope

2009-07-06 Thread Josh Nathanson
You can't. You'll have to create a global variable outside document.ready: var myFuncs = {}; $(document).ready(function() { myFuncs.foo = function() { // etc. }; }); other .js file: myFuncs.foo(); -- Josh -Original Message- From: jquery-en@googlegroups.com [

[jQuery] Re: ready() to bind post-ajax events

2009-07-04 Thread Josh Nathanson
Would there be a racing issue with html() though? I believe that is not an asynchronous method, so it would have to complete before the next chained method. -- Josh - Original Message - From: "hedgomatic" To: "jQuery (English)" Sent: Saturday, July 04, 2009 9:34 AM Subject: [jQ

[jQuery] Re: When DOM elements are created and inserted into the document

2009-06-30 Thread Josh Nathanson
The LiveQuery plugin allows you to do this. Do a search for LiveQuery in the jQuery plugins area. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Khai Sent: Tuesday, June 30, 2009 5:34 PM To: jQuery (English) Subject: [jQuer

[jQuery] Re: matching full names when querying

2009-05-28 Thread Josh Nathanson
It doesn't match on partials unless you use special selector symbols. The reason your element is matched is because the class "myDiv" on your div matches the $(".myDiv") part of your selector. It is not because of the partial match. When you do a comma delimited list as a selector, an element

[jQuery] Re: Tablesorter is not enabled on my page

2009-05-27 Thread Josh Nathanson
Try clicking twice on a header. The first click won't appear to do anything if the table is already sorted. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of bayadmin Sent: Wednesday, May 27, 2009 1:30 PM To: jQuery (English) Su

[jQuery] Re: Read "Pro JavaScript Techniques"?

2009-05-22 Thread Josh Nathanson
I would very highly recommend it. It's written by the creator of jQuery John Resig. Is this Michael Finney from Seven on Your Side? -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of finneycanhelp Sent: Friday, May 22, 2009 8:

[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-20 Thread Josh Nathanson
Andy, Dunno if you can do thatcurious though, could you just do an ajax call that gives you the "extra stuff"? It won't fire if they don't have javascript present, so it would do pretty much the same thing. -- Josh _ From: jquery-en@googlegroups

[jQuery] Re: Event is not triggered when the removed from one table to another table

2009-05-18 Thread Josh Nathanson
Events are not automatically bound to new elements added to the dom. However if you are using jquery 1.3+ you can do this to achieve dynamic binding: $("tr").live("dblclick",function(event) { // etc. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegro

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
er and it is serving correctly. Like I said I am getting a proper response back and it is populating the menu, just not filtering on the params I am telling it to filter on. On May 14, 1:08 pm, "Josh Nathanson" wrote: > I would say then that it's probably your server code.  Maybe

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
query...@googlegroups.com] On Behalf Of bradrice Sent: Thursday, May 14, 2009 10:02 AM To: jQuery (English) Subject: [jQuery] Re: jquery.getJSON params not filtering OK, I changed it but it still returns everything. It isn't filtering. Thanks for the suggestion. On May 14, 12:54 pm, "Josh Na

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
I think your params should look like this: { "category":fundType } In your code, you are passing a string rather than a javascript object literal. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of bradrice Sent: Thursday, May

[jQuery] Re: Scoping issue with load and call back function.

2009-05-07 Thread Josh Nathanson
ively simple task? Thanks!! Steve On May 6, 7:13 pm, "Josh Nathanson" wrote: > OK it looks like you have a few things to sort out here. > > One thing is that you have to remember that load is asynchronous.  So when > that is fired the rest of your code will cont

[jQuery] Re: Scoping issue with load and call back function.

2009-05-06 Thread Josh Nathanson
OK it looks like you have a few things to sort out here. One thing is that you have to remember that load is asynchronous. So when that is fired the rest of your code will continue along its merry way. In other words the loop will keep looping independent of the callback function firing. My hu

[jQuery] Re: Scoping issue with load and call back function.

2009-05-06 Thread Josh Nathanson
When you say you get undefined outside the load function, do you mean outside $(document).ready, or inside $(document).ready? They should not be accessible outside document.ready, because of the closure caused by passing the anonymous function to document.ready, and because you use var to declare

[jQuery] Re: delaying an action

2009-04-20 Thread Josh Nathanson
Do a search for the plugin "HoverIntent", I think is what you're looking for. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of geocalleo Sent: Monday, April 20, 2009 3:33 PM To: jQuery (English) Subject: [jQuery] delaying an a

[jQuery] Re: passing more than 1 param via click()?

2009-04-16 Thread Josh Nathanson
You could do something like: // use a delimiter that makes sense for your values Then split the rel: var arr = this.rel.split('_'), val1 = arr[0], val2 = arr[1]; removeDept( val1, val2 ); -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]

[jQuery] Re: jQuery.height() or css issue?

2009-02-25 Thread Josh Nathanson
I bet it's the css reset. There's some funky business with the line-height on the body tag. Did you try it without that css reset and see if it gets better results? -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of chief Sent

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread Josh Nathanson
>> First, I *assume* these two statements are identical in performance: >> $("p", $("#foo")) == $("p", "#foo") No -- the first one calls jQuery three times, the second one twice. Big difference. Now, I'm not sure about if it's faster to use find() than the context selector. I would think under

[jQuery] Re: default value of an object's property

2009-02-18 Thread Josh Nathanson
I think this might work, give it a try: Obj.sortby = Obj.sortby || 'time'; -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Alexandre Plennevaux Sent: Wednesday, February 18, 2009 9:07 AM To: Jquery-en Subject: [jQuery] defaul

[jQuery] Re: jQuery w ajaxCFC

2009-02-13 Thread Josh Nathanson
x27;s blog - I really appreciate it. Do you know if this works w/ the current version of jQuery, and the current version of AjaxCFC? Thanks again. nb -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Josh Nathanson Sent: Friday, February

[jQuery] Re: Would some please tell me what's wrong with this syntax?

2009-02-13 Thread Josh Nathanson
You don't need that open parenthesis after 'click': $('.cancel').livequery('click', function() { ...etc. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Friday, February 13, 2009 4:38 PM To: jquery-en@goo

[jQuery] Re: jQuery w ajaxCFC

2009-02-13 Thread Josh Nathanson
Do a search for "jquery coldfusion ajax" on Google, you'll find some good stuff. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Neil Bailey Sent: Friday, February 13, 2009 3:05 PM To: jquery-en@googlegroups.com Subject: [jQu

[jQuery] Re: Accessing a JSON property from an unknown variable?

2009-02-13 Thread Josh Nathanson
foo[fooProp] // returns "barVal" Is that what you mean? -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nic Sent: Friday, February 13, 2009 4:06 PM To: jQuery (English) Subject: [jQuery] Accessing a JSON property from an unk

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-13 Thread Josh Nathanson
This should work: $('#myTextarea').unbind(); // unbinds all handlers Then when you want to bind it again: $('#myTextarea').expandable(); -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Friday, February

[jQuery] Re: jqURL plugin throwing JS errors

2009-02-06 Thread Josh Nathanson
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Josh Nathanson Sent: Friday, February 06, 2009 12:10 PM To: jquery-en@googlegroups.com Subject:[jQuery] Re: jqURL plugin throwing JS errors Andy - that's my plugin - do you have a link I could look at

[jQuery] Re: jqURL plugin throwing JS errors

2009-02-06 Thread Josh Nathanson
Andy - that's my plugin - do you have a link I could look at? -- Josh _ From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Andy Matthews Sent: Friday, February 06, 2009 9:50 AM To: jquery-en@googlegroups.com Subject: [jQ

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Josh Nathanson
Yup down for me too. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, January 28, 2009 12:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] OT: CF-Talk Down? Hi, guys... Pardon the OT, but

[jQuery] Re: Problem with Magnify jQuery plugin in IE7

2009-01-22 Thread Josh Nathanson
Oh, I see another problem. You have "stagePlacement" values in your stageCss option. StageCss can only have valid CSS attributes, so this will probably break IE. StagePlacement is a separate option, so your options should look like this: $("#d02").magnify({ lensWidth: 27,

[jQuery] Re: Problem with Magnify jQuery plugin in IE7

2009-01-22 Thread Josh Nathanson
Hi Peter, Josh here, the author of the plugin. Not sure why it's not working for you, but one thing I would recommend: - use a class attribute on all your links that you want to bind to the plugin - that way you can just call the plugin once and all your links will be bound: etc. Then one bi

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Josh Nathanson
he href because of ColdFusion need to have two. Is that the problem, or is there another solution? Update That's the current code. Suggestions? Thanks, Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Josh

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Josh Nathanson
Rick - I think you want $(this).parent().hide() rather than prev, and $(this).parent().next() rather than next(). Prev and next look at the sibling level. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: T

[jQuery] Re: How to dynamically load/add inline javascript?

2009-01-09 Thread Josh Nathanson
] On Behalf Of yellow1912 Sent: Friday, January 09, 2009 2:16 PM To: jQuery (English) Subject: [jQuery] Re: How to dynamically load/add inline javascript? I see. Thanks Josh. What if I dynamically insert the code into the head area, would that has the same effect? Regards Raine On Jan 9, 4:05 pm

[jQuery] Re: How to dynamically load/add inline javascript?

2009-01-09 Thread Josh Nathanson
I think you have to strip the tags off before you run eval(). I just tried a little test using firebug: Eval("