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

RE: [jQuery] Selectors and Internet Explorer

2009-12-10 Thread Josh Nathanson
Maybe try closing the option tag? option class=parentMenu/option -- 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

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,

[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

[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] 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

[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

[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]

[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 hedgoma...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent:

[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:

[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)

[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

[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] Re: Event is not triggered when the tr 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

[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: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
...@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 Nathanson

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
. 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 joshnathan...@gmail.com wrote: I would say then that it's probably your server code.  Maybe run some debugging

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

2009-05-07 Thread Josh Nathanson
On May 6, 7:13 pm, Josh Nathanson joshnathan...@gmail.com 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 continue along its merry way.  In other words

[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

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

2009-05-06 Thread Josh Nathanson
where I try to access the new length of TableColName[i] I get that this variable is undefined. Actually while debugging, I find that variable i defined in the loop outside the load, is NOT available inside the load function. It is all very confusing. :-( On May 6, 6:10 pm, Josh Nathanson

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

2009-04-16 Thread Josh Nathanson
You could do something like: a rel=val1_val2 // 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

[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 the hood

[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

[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]

[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: 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

[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:

[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] Re: jQuery w ajaxCFC

2009-02-13 Thread Josh Nathanson
- 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 13, 2009 8

[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:

[jQuery] Re: jqURL plugin throwing JS errors

2009-02-06 Thread Josh Nathanson
: 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? -- Josh

[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,

[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: a

[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: 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:

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

2009-01-13 Thread Josh Nathanson
of ColdFusion need to have two. Is that the problem, or is there another solution? a class=update-link href='##'Update/a 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 can I generalize this code for all values?

2008-12-22 Thread Josh Nathanson
Rick - one shortcut you can do in your selector is: $('input:text').each(function... That might get you a better response from the DOM. I think the problem you are seeing might be because of your single quotes around text: $('input[type=text]') not $(inp...@type='text']). -- Josh

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread Josh Nathanson
Yes, you should be able to fire the other requests. Maybe you could post a little code. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of hotdog...@gmail.com Sent: Friday, December 12, 2008 10:48 AM To: jQuery (English)

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread Josh Nathanson
, 2008 3:18 PM To: jQuery (English) Subject: [jQuery] Re: Problems with more than one AJAX request at a time On Dec 12, 1:02 pm, Josh Nathanson joshnathan...@gmail.com wrote: Yes, you should be able to fire the other requests.  Maybe you could post a little code. Ah, thank you for your quick

[jQuery] Re: IE Opacity Issue

2008-12-11 Thread Josh Nathanson
Maybe try removing the quotes around .9 - it is probably looking for a number rather than a string. I could see this borking IE. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Eric Sent: Thursday, December 11, 2008 11:47 AM

[jQuery] Re: SOT: Blinking cursor in Firefox 2 bleeds through divs...

2008-12-04 Thread Josh Nathanson
There are some issues in FF with cursors and absolute positioned divs. Might've been fixed in FF3. Another one is the cursor won't show up in a text field within an absolute positioned div that is in a layer above the document body. If you do a google search on firebox cursor bug or the like

[jQuery] Re: Josh Nathanson's magnify not showing stage in IE7

2008-12-03 Thread Josh Nathanson
Andrew - I got the link you sent and indeed, it does not seem to work on ie6 or ie7. However, I couldn't see your code because it was compressed. Have you been able to get it working? -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[jQuery] Re: Scope variables in anonymous functions?

2008-12-03 Thread Josh Nathanson
You have to do it that way because the context has changed. Thus this in the second anonymous function will refer to something different than in the first. A lot of people use the convention var self = this or something similar. Also within the anonymous function you can do this:

[jQuery] Re: Josh Nathanson's magnify not showing stage in IE7

2008-12-01 Thread Josh Nathanson
Andrew -- I just checked the demo page on IE7 and it seems to work fine. Can you post your code or a test page somewhere I can look at? -- Josh (plugin author) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sent: Monday, December 01,

[jQuery] Re: Lightbox overlay, fade out background

2008-11-13 Thread Josh Nathanson
No need to reinvent the wheel, I'd use the BlockUI plugin in conjunction with whatever you're working on. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coughlinsmyalias Sent: Thursday, November 13, 2008 5:15 PM To: jQuery (English)

[jQuery] Re: Advice on sIEve/Drip?

2008-11-05 Thread Josh Nathanson
An important aspect of this is to focus on what happens when you reload the page or navigate away. If the memory drops back down to its original state, you have helped the end user by not leaving them a legacy of used memory. It's much more difficult to try and keep memory from climbing in

[jQuery] Re: Getting width of broken image updated: working now

2008-10-30 Thread Josh Nathanson
. Since it's published daily, the archives are approaching 3000 strips. Anywya, I wanted a way to quickly read through back strips, and so I wrote this little viewer. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent

[jQuery] Re: Cornerz 0.5

2008-10-30 Thread Josh Nathanson
Looks good, I'm always on the lookout for curved corners plugins. -- Josh - Original Message - From: weepy [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 30, 2008 6:07 AM Subject: [jQuery] Cornerz 0.5 I released Cornerz v0.5 today.

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread Josh Nathanson
Andy - window.onload is called only after all images are loaded, so you can do this: $(window).load(function() { $(img).each(function() { alert( this.offsetWidth500 ); }); }); -- Josh - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: jQuery (English)

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread Josh Nathanson
... That worked, but it's taking longer than I'd like, and it's not really consistent. I'll just go another route. Thanks for the input guys. On Oct 29, 11:44 am, Josh Nathanson [EMAIL PROTECTED] wrote: Andy - window.onload is called only after all images are loaded, so you can do

[jQuery] Re: Problem with adding EventListener

2008-10-28 Thread Josh Nathanson
jQuery makes it simpler: $(#msg_button).bind(click, show_msg); Or, if you are not reusing the function: $(#msg_button).click( function() { alert('Nice to show you this'); }); -- Josh - Original Message - From: Jquery-Newbe [EMAIL PROTECTED] To: jQuery (English)

[jQuery] Re: Selecting an element whose ID is in a variable

2008-10-27 Thread Josh Nathanson
You want this: $(# + fieldset_id); Don't feel bad, that trips up a lot of people at first (myself included). Basically the selector is just a string, so you can use the usual JS string methods to get what you need. -- Josh - Original Message - From: fredriley [EMAIL PROTECTED]

[jQuery] Re: BlockUI: oversized overlay bug in IE web browsers ( demo included )

2008-10-22 Thread Josh Nathanson
Thanks a bunch, Mike. Hopefully, blockUI's author will discover this fix eventually. It shouldn't take long, Mike *is* the author. -- Josh

[jQuery] Re: BUG: oversized overlay in IE web browsers ( demo included )

2008-10-21 Thread Josh Nathanson
on scroll as well as on resize. I tried using this approach for all browsers but Firefox was having none of it. JR On Oct 20, 4:09 pm, Josh Nathanson [EMAIL PROTECTED] wrote: This happens where there is some padding or margin on the body. If you set them to 0 via css it should take care

[jQuery] Re: how to detect current toggle setting?

2008-10-16 Thread Josh Nathanson
If you already have a jQuery object you can do this: jqObj.is(:visible); // returns boolean -- Josh - Original Message - From: Jay [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 16, 2008 2:43 PM Subject: [jQuery] Re: how to detect current

[jQuery] Re: Proper jQuery object creation for chaining

2008-10-15 Thread Josh Nathanson
Hey Sliver, It looks like you are expecting jQuery to work like Prototype does...I'm not too familiar with Prototype, but my understanding is that it has functions which assist with the inheritance issues in Javascript. jQuery is more about easily selecting DOM elements and doing stuff with

[jQuery] Re: .next() -- huh?

2008-10-15 Thread Josh Nathanson
$(#nav div).hover(function(){alert($ (this).next('span').text());},function(){}); try this: alert($(span:first, this).text()); The span you want is actually a child of the div, while next('span') looks for a sibling span. -- Josh - Original Message - From: bnlps [EMAIL

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-13 Thread Josh Nathanson
That looks like the proper syntax to get your desired selector. Are you getting an error or unexpected results? -- Josh - Original Message - From: Shadi Almosri [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Monday, October 13, 2008 9:32 AM Subject:

[jQuery] Re: How do I remove a plugin melodramatically

2008-10-10 Thread Josh Nathanson
I think when you unbind it, you should put the back of your hand to your forehead and say, Oh woe is me! Sorry, it's Friday. - Original Message - From: me-and-jQuery [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, October 10, 2008 2:23 PM Subject:

[jQuery] Re: An Interesting Twist on a Pastebin

2008-10-09 Thread Josh Nathanson
Yeah, what a great idea and incredible job by Remy. -- Josh - Original Message - From: pixeline To: Jquery-en Sent: Thursday, October 09, 2008 11:57 AM Subject: [jQuery] An Interesting Twist on a Pastebin guys, we should definitely use this online tool to ask questions.

[jQuery] Re: AJAX Success Callback referring to $(this)

2008-10-08 Thread Josh Nathanson
this referenced in the success callback will refer to the jQuery object when you do an ajax call. You might want to put the ajax call within another function that can also receive information about the triggering element: doAjax: function( trigger ) { jQuery.ajax({ //

[jQuery] Re: AJAX Success Callback referring to $(this)

2008-10-08 Thread Josh Nathanson
isNaN(r) logic. Thanks, -Wayne On Oct 8, 12:36 pm, Josh Nathanson [EMAIL PROTECTED] wrote: this referenced in the success callback will refer to the jQuery object when you do an ajax call. You might want to put the ajax call within another function that can also receive information about

[jQuery] Re: AJAX Success Callback referring to $(this)

2008-10-08 Thread Josh Nathanson
@googlegroups.com Sent: Wednesday, October 08, 2008 2:18 PM Subject: [jQuery] Re: AJAX Success Callback referring to $(this) Right, but that trigger doesn't work in the context of the anonymous function. Unless, I'm missing something you changed. -Wayne On Oct 8, 3:43 pm, Josh Nathanson [EMAIL

[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-02 Thread Josh Nathanson
Yeah, really nicely done...I'll definitely use that if I ever have need for it. -- Josh - Original Message - From: Jack Killpatrick To: jquery-en@googlegroups.com Sent: Thursday, October 02, 2008 12:52 PM Subject: [jQuery] ANNOUNCE: jQuery listnav plugin Hi All, Today

[jQuery] Re: NEW PLUGIN (beta): ContextMenu

2008-10-02 Thread Josh Nathanson
WOW Matt, that looks dynamite. Some cool new plugins coming out! -- Josh - Original Message - From: Matt Kruse [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 02, 2008 3:50 PM Subject: [jQuery] NEW PLUGIN (beta): ContextMenu I've been

[jQuery] Re: form select...

2008-10-01 Thread Josh Nathanson
Did you try my code? It should do what you describe. -- Josh - Original Message - From: GARIL [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, October 01, 2008 1:12 PM Subject: [jQuery] Re: form select... Thank your for your answers but I don't

[jQuery] Re: form select...

2008-10-01 Thread Josh Nathanson
Give this a go: $(option,#fruits).each(function() { $(this).attr(selected, $(this).text() == 'Pineapple' ); }); -- Josh - Original Message - From: GARIL [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, October 01, 2008 12:38 PM Subject:

[jQuery] Re: Simple question about Radio Buttons

2008-09-19 Thread Josh Nathanson
You could use either this.checked or $(this).attr(checked). this refers to the dom node, so if you want to use the attr method on this you have to jQuery-ize it. this.checked would be more performant, since you are not executing the jQuery function in that case. -- Josh - Original

[jQuery] Re: Best JQuery pop-up plugin.

2008-09-18 Thread Josh Nathanson
jqModal does have a callback for that, but it gets pretty ugly if you're using the same modal window for different forms. Then you have to re-configure the jqModal settings on each modal request. What I've done is use a combination of the ajaxForm plugin and LiveQuery to listen for modal

[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-13 Thread Josh Nathanson
(English) jquery-en@googlegroups.com Sent: Friday, September 12, 2008 3:29 PM Subject: [jQuery] Re: How do I update my control after I submit data to my database? Thank you. I don't think it will be json though. What if it is not json? On Sep 12, 6:14 pm, Josh Nathanson [EMAIL PROTECTED] wrote

[jQuery] Re: IE ajax request giving the same result every time it's called

2008-09-12 Thread Josh Nathanson
IE always caches the response, so you have to explicitly set cache=false in your ajax call. You can either do that on your specific ajax call, or globally via the $.ajaxSetup function. Consult the jQuery docs - Ajax section for more information. -- Josh - Original Message -

[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-12 Thread Josh Nathanson
You would do this in the callback function from the ajax call. One way might be to have an empty div available on your page: div id=username/div Then the ajax callback, assuming you are returning json data: function( data ) { $(#username).text( data.username ); } -- Josh - Original

[jQuery] Re: Fire events programmatically

2008-09-08 Thread Josh Nathanson
Isn't that the same as this: $(#ID1).trigger(change); -- Josh - Original Message - From: Huub [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Monday, September 08, 2008 11:30 AM Subject: [jQuery] Fire events programmatically Sometimes it's needed to

[jQuery] Re: Cappucino's FlickrDemo in 45 lines of jQuery

2008-09-05 Thread Josh Nathanson
Thanks Ben, that's really cool that you did that. -- Josh - Original Message - From: Ben Sargent [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, September 05, 2008 10:22 AM Subject: [jQuery] Cappucino's FlickrDemo in 45 lines of jQuery After

[jQuery] Re: Not selector help

2008-09-03 Thread Josh Nathanson
This should do it... $(input:checkbox:not(#myid)).attr(checked,false); -- Josh - Original Message - From: Brad [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, September 03, 2008 11:57 AM Subject: [jQuery] Not selector help I'm looking for the

[jQuery] Re: equivalent to prototype's invoke?

2008-08-27 Thread Josh Nathanson
You need to do this: $(#div1, #div2).hide(); Both selectors go inside the quotes. Otherwise, you are passing 2 arguments to jquery, and the second argument sets the context for the selector search. -- Josh - Original Message - From: riegersn [EMAIL PROTECTED] To: jQuery

[jQuery] Re: calling functions inside pages loaded by AJAX

2008-08-20 Thread Josh Nathanson
Gregg, try $(document).ready instead of $('document').ready and see how that works. -I can't figure out how to make a call from the loading page into the loaded page; everything I try it seems the script functions from the loaded page are not known by the DOM. Check this link:

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread Josh Nathanson
timeout is actually how long the request will wait to complete before it sends back a timeout error. You actually want setTimeout, like so. This will wait five seconds before doing the ajax request. var t = setTimeout( function() { $.ajax({ type: GET,

[jQuery] Re: New CF programmer - anxious to start using jQuery

2008-08-20 Thread Josh Nathanson
Did I forget to mention I'm Coldfusion programmer? I this all specifically for javascript programmers? Interesting stuff but no mention of how to apply it. The demo doesn't even work correctly. Larksys - there isn't really anything special about using jQuery along with ColdFusion.

[jQuery] Re: Is there a plugin to zoom in/out an image

2008-07-17 Thread Josh Nathanson
Colin, check out my Magnify plugin, it's not zooming but it does allow you to see finer details of an image. http://plugins.jquery.com/project/magnify -- Josh - Original Message - From: Colin Guthrie [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, July 17, 2008

[jQuery] Re: PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released

2008-07-15 Thread Josh Nathanson
That is luscious. Great job Stephane. -- Josh - Original Message - From: Rey Bango [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Monday, July 14, 2008 2:34 PM Subject: [jQuery] PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released prettyPhoto v2.1.1 a jQuery

[jQuery] Re: Finding position among siblings

2008-07-15 Thread Josh Nathanson
Check into the index() method. -- Josh - Original Message - From: ml1 [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, July 15, 2008 8:57 AM Subject: [jQuery] Finding position among siblings Is there an efficient, cross browser jquery way to find a

[jQuery] Re: Extra AJAX calls being made

2008-07-11 Thread Josh Nathanson
Usually this indicates that somehow, you are rebinding the event handler to the button on each ajax call. Each time you do a binding, it is additive -- there is nothing to check and see if the event handler is already bound. Check your logic and make sure you are only binding the event

[jQuery] Re: Extra AJAX calls being made

2008-07-11 Thread Josh Nathanson
would I need to rebind the events? Thanks! On Jul 11, 12:38 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Usually this indicates that somehow, you are rebinding the event handler to the button on each ajax call. Each time you do a binding, it is additive -- there is nothing to check and see

[jQuery] Re: Running a loop for array numbers

2008-07-08 Thread Josh Nathanson
Try this for the first one: $('.equipment a.i-right1').not(':eq(0)').hide(); For the second one, check out the slice() method. -- Josh - Original Message - From: JohneeM [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, July 08, 2008 10:00 AM Subject:

[jQuery] Re: firefox error NS_ERROR_XPC_JS_THREW_STRING with ajax form submission

2008-07-04 Thread Josh Nathanson
Error: [Exception... 'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent] Usually you get this error when you are trying to do an ajax call to a different domain than the calling template is on. That's a no-no. There are ways

[jQuery] Re: Navigate away after ajax call?

2008-07-03 Thread Josh Nathanson
It works because it's asynchronous. The $.get call is fired, and then the script continues along its merry way, without waiting for the return of the $.get call. -- Josh - Original Message - From: wsw [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent:

[jQuery] Re: Best way to detect between jQuery triggered event and actual browser-based event...

2008-06-30 Thread Josh Nathanson
Hmmm...that hasn't come up for me yet. Seems like the way you're doing it would be the way to go for now. Maybe in the next jQuery version they could add a key internalTrigger or something like that to the event object when the trigger method is run. -- Josh - Original Message -

[jQuery] Re: Adding hover to all table rows (tr) but the first one.

2008-06-26 Thread Josh Nathanson
Would this work as well? $(tr:not(:first):not(:last)).hover(function() { //etc. Not as performant as the other ones, but expresses the intent clearly. -- Josh - Original Message - From: Karl Swedberg [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, June 26, 2008

[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-24 Thread Josh Nathanson
I think maybe you want element.is(textarea) (no colon) Otherwise that part of the conditional will never fire. -- Josh - Original Message - From: shapper [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, June 24, 2008 4:23 PM Subject: [jQuery] Re:

[jQuery] Re: .load() post issues

2008-06-19 Thread Josh Nathanson
Ferric - I believe (though I'm not totally sure) that .load uses a get rather than a post. Try doing url.albumID rather than form.albumID in your ColdFusion code and see how that works. -- Josh - Original Message - From: ferric84 [EMAIL PROTECTED] To: jQuery (English)

[jQuery] Re: Why do i keep getting: test is not defined!

2008-06-19 Thread Josh Nathanson
Your function is fine, however when you *call* the function removeItem, you'll need to pass in two arguments -- otherwise obj will be undefined: removeItem('myitem'); // obj is undefined removeItem('myitem', myobject); // obj is defined -- Josh - Original Message - From: Mark

[jQuery] Re: Why do i keep getting: test is not defined!

2008-06-19 Thread Josh Nathanson
.. With this it works: a onclick=removeItem('something', this.parentNode);click/a with this not (will give the freaking error): a href=javascript:removeItem('something', this.parentNode);click/a Now why is this not working with a href? I have just no clue. On Fri, Jun 20, 2008 at 1:08 AM, Josh Nathanson

[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Josh Nathanson
Very nice! One small issue...if I click in the main part of the dropdown, rather than on the down arrow, I can't select any options with the mouse. This is a little different than a native select control, where you can click anywhere on it. -- Josh - Original Message - From:

[jQuery] Re: Basic newbie question - ''Object doesn't support this property or method

2008-06-18 Thread Josh Nathanson
$('span').addclass('red'); addClass has to be camel case - javascript is case-sensitive. -- Josh - Original Message - From: weegekid [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, June 18, 2008 7:48 AM Subject: [jQuery] Basic newbie question -

[jQuery] Re: Quick question about dimensions

2008-06-18 Thread Josh Nathanson
The offset() method is only gettable, not settable. You might need to do something like this: $(#insertLink).click(function(){ var offset = $(this).offset(); $(#insertDiv).css({ top: offset.top, left: offset.left }).toggle(); }); -- Josh - Original Message - From: eric [EMAIL

[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Josh Nathanson
On the SproutCore site, it talks about it being a complete MVC type framework. This is a different approach than jQuery. It reminded me a bit of Spry. The SproutCore guy did a presentation at the SF Javascript Meetup a couple of months ago, and it sounded pretty interesting. -- Josh

  1   2   3   4   >