[jQuery] msie closures syntax
hi all :) i hope someone on this list can help me here, even tho my question is not directly related to jquery (duck). i have trouble getting my closures to work in ie: --snip // // A) this doesn't work in ie (ff & opera grok it) // setTimeout( function( a,b,c ) { doStuff( a,b,c ) }, 100, "stuff", 1, 2 ); // // B) this works in IE // var fref = iehelper( "stuff", 1, 2 ); setTimeout( fref, 100 ); function iehelper( a,b,c ) { return ( function() { doStuff( a,b,c ); }); } --snap anyone know how to feed that to ie without the nasty helper function? best regards, moe ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Trigger on-click event in first table cell
That's way more complex than need be. By definition, the first table cell of the first row is also the first cell in the table, so $("#photographTable td:first") should be perfectly fine. And there's no need to run an each, as click will run fine on the jQuery object returned by the query. $("#photographTable td:first").click(function() { // code }); should work great. -- Yehuda On 12/27/06, Joan Piedra <[EMAIL PROTECTED]> wrote: I think it should be something like this $('#photographTable tr:first-child td:first-child').each(function() { $(this).click(function() { //your code here alert('woo ha!'); }); }); On 12/26/06, Mungbeans <[EMAIL PROTECTED] > wrote: > > > I have this table: > > > > > onclick="showPhotograph(' http://localhost:11000/my.JPG', 1044, > 746);return > false;">Show..etc.. > > ...etc > > > How do I trigger the on-click event in the first cell, first row? > -- > View this message in context: http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8058842 > > Sent from the JQuery mailing list archive at Nabble.com. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- Joan Piedra || Frontend webdeveloper http://joanpiedra.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Trigger on-click event in first table cell
I think it should be something like this $('#photographTable tr:first-child td:first-child').each(function() { $(this).click(function() { //your code here alert('woo ha!'); }); }); On 12/26/06, Mungbeans <[EMAIL PROTECTED]> wrote: I have this table: http://localhost:11000/my.JPG', 1044, 746);return false;">Show..etc.. ...etc How do I trigger the on-click event in the first cell, first row? -- View this message in context: http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8058842 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Joan Piedra || Frontend webdeveloper http://joanpiedra.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Trigger on-click event in first table cell
$("#photographTable td:first span").click() would probably work as well, and be faster too :) On 12/26/06, Mungbeans <[EMAIL PROTECTED]> wrote: I discovered that this: $("#photographTable tr:eq(0) td:first-child span").click(); does work. My problem was that I had to include it into the callback function attached to the ajax call that created the table. -- View this message in context: http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8059175 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Trigger on-click event in first table cell
I discovered that this: $("#photographTable tr:eq(0) td:first-child span").click(); does work. My problem was that I had to include it into the callback function attached to the ajax call that created the table. -- View this message in context: http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8059175 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax
Mike, Nice! I've been doing it manually, but this looks really handy. Thanks! --Erik On 12/26/06, Mike Alsup <[EMAIL PROTECTED]> wrote: This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here: http://www.malsup.com/jquery/block/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax
Mike, Nice! I've been doing it manually, but this looks really handy. Thanks! --Erik On 12/26/06, Mike Alsup <[EMAIL PROTECTED]> wrote: This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here: http://www.malsup.com/jquery/block/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Plugin for UI blocking - an alternative to sync ajax
This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here: http://www.malsup.com/jquery/block/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Trigger on-click event in first table cell
I have this table: http://localhost:11000/my.JPG', 1044, 746);return false;">Show..etc.. ...etc How do I trigger the on-click event in the first cell, first row? -- View this message in context: http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8058842 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin Authoring: Custom Alias
> just added the "Custom Alias" section to the plugin authoring guide. If > you don't know about this yet, check it out. Anyway, please correct or > improve it! Nice job, Jörn. That's a handy page. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin Authoring: Custom Alias
I made a few minor spelling and grammar changes, but otherwise it's good. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com On 12/26/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Hi folks, just added the "Custom Alias" section to the plugin authoring guide. If you don't know about this yet, check it out. Anyway, please correct or improve it! Link: http://jquery.com/docs/Plugins/Authoring/#CustomAlias -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Plugin Authoring: Custom Alias
Hi folks, just added the "Custom Alias" section to the plugin authoring guide. If you don't know about this yet, check it out. Anyway, please correct or improve it! Link: http://jquery.com/docs/Plugins/Authoring/#CustomAlias -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .load() not executing javascript code in IE
The code it is returning is: > > filetree = [ > ,['', 'Test Client', null, null, 'Click to show files for Test Client' > ,[null, 'hello.jpg', '102(', '', 'Type: image/jpeg'] > ,[null, 'switched.pdf', '101(', '', 'Type: application/pdf'] > ,[null, '1159479289997.jpg', '106(', '', 'Type: image/jpeg'] > ,[null, '2003_aplus_os_objectives.pdf', '93(', '', 'Type: > application/pdf'] > ,[null, 'Class_Schedule_Spring_2007.pdf', '90(', '', 'Type: > application/pdf'] > ,[null, 'CSSmenus2.zip', '99(', '', 'Type: application/zip'] > ,[null, 'IMG_6500.JPG', '134(', '', 'Type: image/jpeg'] > ,[null, 'IMG_6499.JPG', '131(', '', 'Type: image/jpeg'] > ,[null, 'IMG_6479.JPG', '132(', '', 'Type: image/jpeg'] > ] > ,['', 'Public Folder', null, null, 'Click to show files for Public Folder' > ,[null, '10_things_windows_backup.pdf', '91(', '', 'Type: > application/pdf'] > ,[null, 'i-9.pdf', '100(', '', 'Type: application/pdf'] > ] > ]; > ctDraw ('myMenuID', filetree, ctThemeXP1, 'ThemeXP', 0, 0); > Well that looks ok. Are you sure there isn't an error coming out of ctDraw? -- View this message in context: http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8057537 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .load() not executing javascript code in IE
Surge Mitchell wrote: > > Here is the call of the .load script: > $("div#filetreescript").load("/client/secure/filetree.php"); > What is being returned by filetree.php? Can you post a sample page somewhere? -- View this message in context: http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8056552 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Two tablesorter observations...
Hello, 1. Maybe I missed this, but if you don't already, you should state that empty cells cause a "o.childNodes[0] has no properties" error (at least in FF 2.0.0.1). So empty cells should always have at least a " " to keep tablesorter happy. 2. Is there anyway to make the currency parser more generic? What I mean is that I was trying to sort a column where I wasn't specifying a specific currency and the results were not ordered properly. Then I compared the currency function and found that line 374 had changed from return s.match(/^[£$]/); to: return s.match(/^[$]/); However, I found I had to do something like this: return s.match(new RegExp(/^[€$£P$EUR]/)); To handle euros, dollars, pounds, pesos, and euros, respectively. But if I add another currency, then I'll have to edit the source again. :( Would it be possible to "tag" a column as being of type "currency" to let tablesorter know it should strip off the beginning, non-numerical characters? Maybe using a class like "ts_currency" to avoid possible collisions with an otherwise common classname of "currency"? Then it might be possible to many, some, or none currency symbols. Thanks in advance, Christopher. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX problems - ajaxSubmit Form-PlugIn
> 1. the script duplicates the formsheet of "Eintragen" when you open and > close it again and again.. Olaf, It looks like you're returning the entire HTML document in both the IFrame and the return from the form submit? For the form submit (save.php) try returning only the document fragment that needs to be inserted into the existing document. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Removing Parent Node
Mohsen Saboorian schreef: > David, > Naturally it doesn't work :) > > if($(this).is("span.a")) would never be true, since "this" is refering > to the parent node of "span.a". > > It was too easy to be true :) I thought because it was in an each loop this referred to the elements caught by the parent function because it's possible to get the text out the different tags and put it into the innerhtml. -- David Duymelinck [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Removing Parent Node
try this... it keeps other embedded tags. $("span.a").each(function() { $(this).after($(this).html()).remove() }) On 12/25/06, Mohsen Saboorian <[EMAIL PROTECTED]> wrote: > Thanks Jake, but unfortunately it does't fix my problem. > The parent node might have other children which should not be changed, e.g. > > > abc efgh ijkl > > > should be changed to: > > > abc> efgh ijkl > > > Thanks. > > On 12/26/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > > try: > > > > $("span.a").parent().each(function() { > > var t = $(this).text() > > $(this).html(t) > > }) > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Removing Parent Node
David, Naturally it doesn't work :) if($(this).is("span.a")) would never be true, since "this" is refering to the parent node of "span.a". > $("span.a").parent().each(function() { > if($(this).is("span.a")){ > var t = $(this).text(); > $(this).html(t); > } > }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/