[jQuery] Overlib like funtionality with JQuery
Overlib is a JS library with lots of cool features for JS popups. http://www.bosrup.com/web/overlib/ I wonder if there is anything like this already built into JQuery or possibly in a plugin. Thanks.
[jQuery] code to wrap jquery in to wall it off from older browsers?
Can anyone suggest good code to wrap jquery in to wall it off from older browsers altogether? I'd prefer some object detection but obviously createElement isn't going to cut it finely enough. I'm not up on what the latest browsers have that IE5.5/OP8 and others don't have. As I wrote on another thread: Can anyone suggest a good check for ie6+ and other new browsers? That might be noted in the docs as a best practice or maybe even built into jquery as a variable to set so it just returns the old sorry, you're a loser sort of thing for old browsers? I remember the old dynapi used to do that. Remember when dynapi was the ? Or other suggestions? I want older browsers to degrade, not be left hanging with js errors. Thanks.
[jQuery] Re: low hanging newbie fruit for you to snack on
There are problems with IE and headers on GETs, Klaus. The timestamp is flawless and easy. See here for example: http://www.enja.org/david/?p=25
[jQuery] Re: Overlib like funtionality with JQuery
yes theres jtip http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip On Apr 5, 7:08 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Overlib is a JS library with lots of cool features for JS popups. http://www.bosrup.com/web/overlib/ I wonder if there is anything like this already built into JQuery or possibly in a plugin. Thanks.
[jQuery] Re: tabs - initial tab load
I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment. It is a shame that there is no onClick or onShow fired for the first tab when the tabs() function is complete so that we could support lazy loading for the tab content, including the first tab. BTW, I think it would be nice if there was a function defined $.fn.selectedTab(). I would try to write it myself, but I am still a little overwhelmed by the code. - Original Message From: Ariel Jakobovits [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, April 5, 2007 12:54:12 AM Subject: [jQuery] tabs - initial tab load i have a handler for the tabs onShow event that loads the current tab being opened. this does not get executed for the first tab that is selected by default when the page first loads. how can i get the onShow event to be triggered for the initial tab?
[jQuery] Re: Truncate Plugin v.2.0
Giant Jam Sandwich wrote: Well, I have vastly improved this script. It was my first plugin for jQuery, and after creating a few others, I decided to go back and make some edits on this one. You can find the demo here: http://reindel.com/blog/src/jquery_truncate/ Nice! An interesting variant on this would be one that called something like the following on document ready: $(p.truncate).truncate(100, /\s/); With markup that looked like p class=truncateTEHRAN, Iran - President Mahmoud Ahmadinejad defused a growing confrontation with Britain, announcing the surprise release of 15 captive British sailors a class=more href=http://news.yahoo.com...;more.../a /p This might be a little tricky to do right, but would degrade quite gracefully. Thanks for sharing this, -- Scott
[jQuery] Best practice for image source change
I've got a bunch of thumbnails, and when clicking these thumbnails, a larger image is supposed to change. I do this by changing the src attribute of the larger image, but I'm very new to jQuery so I was wondering about the best way to accomplish this. Right now, I've got this working code, but maybe it can be optimized? I wrap each thumbnail with a link: a href=javascript:; id=tnLink01img src=thumbnail01.jpg alt= //a This is the amateurish jQuery code I've conjured up: $(a#tnLink01).click(function() { $(#mainImage).attr({src:another_large_image.jpg}); }); I'll need one of these functions for every thumbnail and that seems wrong somehow, so I'd really appreciate any helpfil tips and strategies for switching a larger image when clicking thumnails.
[jQuery] Re: tabs - initial tab load
Ariel Jakobovits schrieb: I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment. It is a shame that there is no onClick or onShow fired for the first tab when the tabs() function is complete so that we could support lazy loading for the tab content, including the first tab. That would be pretty easy to do, but it would also completely break existing pages. The reason why there is no onclick fired for the first tab is that there is no click ;-) That has also to do with support for back button... Using the remote option though does result in lazy loading. So I still have the feeling that you're using the tabs in a way I didn't design them for. Or hacked something in that is supported elsehow (no offense here)... BTW, I think it would be nice if there was a function defined $.fn.selectedTab(). I would try to write it myself, but I am still a little overwhelmed by the code. Here we go: jQuery.fn.selectedTab = function() { var selectedTabs = []; this.each(function() { var nav = jQuery('ul.tabs-nav' , this); nav = nav.size() nav || jQuery('ul:eq(0)', this); // fallback to default structure var lis = jQuery('li', nav); selectedTabs.push(lis.index( lis.filter('.tabs-selected')[0] ) + 1); }); return selectedTabs.length 1 ? selectedTabs : selectedTabs[0]; }; It returns a number if you check for one tab interface $('#container').selectedTab(); // = 1 and an array if you check for multiple interfaces: $('#container-1, #container-2').selectedTab(); // = [1, 1] As usual for the plugin it is not a zero-based index. Thus you can do: var tabs = $('#container-1'); tabs.disableTab(tabs.selectedTab()); Should I add that to the plugin? -- Klaus
[jQuery] Re: Best practice for image source change
I wrap each thumbnail with a link: a href=javascript:; id=tnLink01img src=thumbnail01.jpg alt= //a This is the amateurish jQuery code I've conjured up: $(a#tnLink01).click(function() { $(#mainImage).attr({src:another_large_image.jpg}); }); I'll need one of these functions for every thumbnail and that seems wrong somehow, so I'd really appreciate any helpfil tips and strategies for switching a larger image when clicking thumnails. You could make your css query less specific. You could also automatically generate a large image url based on the content of your thumbnail ie. $(div.thumbnails img).click(function() { var large_img = $(this).attr('src').split(.).shift() + '_large.jpg' //gets image src part before period, adds suffix $(#mainImage).attr('src'.large_img); } Above example is simple and assumes image on has 1 period in it! Hope that helps, Will
[jQuery] Re: tabs - initial tab load
Klaus Hartl schrieb: Ariel Jakobovits schrieb: I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment. It is a shame that there is no onClick or onShow fired for the first tab when the tabs() function is complete so that we could support lazy loading for the tab content, including the first tab. That would be pretty easy to do, but it would also completely break existing pages. The reason why there is no onclick fired for the first tab is that there is no click ;-) That has also to do with support for back button... Using the remote option though does result in lazy loading. So I still have the feeling that you're using the tabs in a way I didn't design them for. Or hacked something in that is supported elsehow (no offense here)... BTW, I think it would be nice if there was a function defined $.fn.selectedTab(). I would try to write it myself, but I am still a little overwhelmed by the code. Here we go: jQuery.fn.selectedTab = function() { var selectedTabs = []; this.each(function() { var nav = jQuery('ul.tabs-nav' , this); nav = nav.size() nav || jQuery('ul:eq(0)', this); // fallback to default structure var lis = jQuery('li', nav); selectedTabs.push(lis.index( lis.filter('.tabs-selected')[0] ) + 1); }); return selectedTabs.length 1 ? selectedTabs : selectedTabs[0]; }; It returns a number if you check for one tab interface $('#container').selectedTab(); // = 1 and an array if you check for multiple interfaces: $('#container-1, #container-2').selectedTab(); // = [1, 1] As usual for the plugin it is not a zero-based index. Thus you can do: var tabs = $('#container-1'); tabs.disableTab(tabs.selectedTab()); And it re
[jQuery] Re: tabs - initial tab load
I do think the selectedIndex function should be added to the plugin. In regards to how i am using the tabs... What I am doing is essentially something like this: var tabsModule = new TabsModule(); // outputs 2 tabs in the page, with no content in either tab tabsModule.addTabContent(1,new ContentModuleA()); tabsModule.addTabContent(2,new ContentModuleB()); tabsModule.addTabContent(2,new ContentModuleC()); What this means is that the tabs themselves do not know what is inside of them. Thus I cannot use the remote function when I am creating the tabs. What I am doing is, after the tabs are created, I am adding content to their divs. The content may come from many files, not just one. I understand that there is no CLICK event for the first tab, but there could be a SHOW event, no? That way, i can say: jQuery('div.tab-container',this.latestContent).tabs({ remote: false, fxFade: true, fxSpeed: 'fast', onShow: function(clicked,toShow,toHide) { window.setTabContent(toShow); } }); window.setTabContent = function (tabFragment) { if (tabFragment.innerHTML == '') { if (tabFragment.id == 'tab1') tabFragment.appendChild(new ContentModuleA()); else { tabFragment.appendChild(new ContentModuleB()); tabFragment.appendChild(new ContentModuleC()); } } } - Original Message From: Klaus Hartl [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, April 5, 2007 2:42:07 AM Subject: [jQuery] Re: tabs - initial tab load Ariel Jakobovits schrieb: I realize now that this was very specific to my project, and I got this to work. Since i am loading all the elements of my page with AJAX, I had to wait for the tabs to be fully loaded, then simply add the content for each fragment. It is a shame that there is no onClick or onShow fired for the first tab when the tabs() function is complete so that we could support lazy loading for the tab content, including the first tab. That would be pretty easy to do, but it would also completely break existing pages. The reason why there is no onclick fired for the first tab is that there is no click ;-) That has also to do with support for back button... Using the remote option though does result in lazy loading. So I still have the feeling that you're using the tabs in a way I didn't design them for. Or hacked something in that is supported elsehow (no offense here)... BTW, I think it would be nice if there was a function defined $.fn.selectedTab(). I would try to write it myself, but I am still a little overwhelmed by the code. Here we go: jQuery.fn.selectedTab = function() { var selectedTabs = []; this.each(function() { var nav = jQuery('ul.tabs-nav' , this); nav = nav.size() nav || jQuery('ul:eq(0)', this); // fallback to default structure var lis = jQuery('li', nav); selectedTabs.push(lis.index( lis.filter('.tabs-selected')[0] ) + 1); }); return selectedTabs.length 1 ? selectedTabs : selectedTabs[0]; }; It returns a number if you check for one tab interface $('#container').selectedTab(); // = 1 and an array if you check for multiple interfaces: $('#container-1, #container-2').selectedTab(); // = [1, 1] As usual for the plugin it is not a zero-based index. Thus you can do: var tabs = $('#container-1'); tabs.disableTab(tabs.selectedTab()); Should I add that to the plugin? -- Klaus
[jQuery] Re: UPDATE: code review, suggestions for condensing / reuse?
Looks good, only one suggestion, this line: var id = curImg.parent().parent().parent().parent().parent().parent().attr('id'); // get the id of the parent TR tag looks very brittle. If you change the table or tr a bit, then you are lost. Why dont you try and add another class to the img e.g. class=nav 1073 and then do something like: var curImg = $(this); // store a reference to the image just clicked upon var cssClass = curImg.attr(class); // fetch the classes e.g. nav 1073 var idArr = css.split( ); //split the id Regards Ronald Andy Matthews wrote: I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Interface Slider plugin problem
Hello all, I am trying to use slider plugin from interface for price range. But, when I try to set the values for slider indicators using SliderSetValues function it sets the indicator to incorrect value. For e.g. if I set slider 1 to [15, 0] it changes its X by 17 and not 15. My working example can be seen here - http://sanisoft-demo.com/jquery/slider.html Please help. Thanks, Aditya
[jQuery] Re: TableSorter issues: special characters, mixed data
Thats the hard part about trying to sort an already built table, I prefer the other direction, build the tables off a set of data.. This way you can do the formatting afterward and not have any issues. http://projects.cyberlot.net/trac/jqpie/wiki/ExampleAuto On 4/5/07, Christian Bach [EMAIL PROTECTED] wrote: Kim, is it possible to publish a test page so i can take a look? A quick fix would be to use the new property textExtractionType - which in true tablesorter spirit is undocumented. Here is a example: This forces the tablesorter to extract data out of the title attribute, allowing a simple way to present mixed data to the user (string/numbers/etc). script $(table).tableSorter({ textExtractionType: ['title'] }); /script table thead tr thRow/th thNumber/th /tr /thead tbody tr td title=1One/td td title=3030.00/td /tr tr td title=22/td td title=50a href=50.000/td /tr /tbody /table Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Anyone know a workaround for this? :) Christian, any thoughts? -kim, who would really like to not code a bunch of tablesorting tonight in php ;) --- Kim Johnson [EMAIL PROTECTED] wrote: ATTN: Christian or anyone else familiar :) I'm trying to use TableSorter for a few large batches of data, but am getting JS errors depending on what content is in the columns. For example: -Digit-only data works, but MIXED data (ex: some fields are empty, and some have decimal values) fails. -Special characters break the sorting. For example, I have a list of titles and some titles start with special characters (ex: .hack//SIGN, ~To Heart~). This also breaks. I suspect these are breaking because of something to do with the generic sorting function: generic: function(a,b) { return ((a[1] b[1]) ? -1 : ((a[1] b[1]) ? 1 : 0)); } I usually use MYSQL's sorting mechanisms to filter queries (var1 var2) and this method works with special characters and such, so I'm not sure what the best way to modify the js file would be (for a temporary solution, until this is fixed in a subsequent release). Do you know of the reason why these cases are breaking, and/or what a good workaround would be? thanks, -kim No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news -- POLYESTER* Wittstocksgatan 2 115 24 Stockholm Phone: 08-660 73 50 / +46-8-660 73 50 Mobile: 070-443 91 90 / +46-70-443 91 90 E-mail: [EMAIL PROTECTED] http://www.polyester.se
[jQuery] Re: UPDATE: code review, suggestions for condensing / reuse?
How does that makes it possible to change the table? The solution for all those parents is var id = curImg.parents('tr').attr('id'); With parents you will get all the parent elements and you can limit it using an expression. http://docs.jquery.com/DOM/Traversing#parents.28_expr_.29 On 5 apr, 14:08, Ronald Haring [EMAIL PROTECTED] wrote: Looks good, only one suggestion, this line: var id = curImg.parent().parent().parent().parent().parent().parent().attr('id'); // get the id of the parent TR tag looks very brittle. If you change the table or tr a bit, then you are lost. Why dont you try and add another class to the img e.g. class=nav 1073 and then do something like: var curImg = $(this); // store a reference to the image just clicked upon var cssClass = curImg.attr(class); // fetch the classes e.g. nav 1073 var idArr = css.split( ); //split the id Regards Ronald Andy Matthews wrote: I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Re: UPDATE: code review, suggestions for condensing / reuse?
Ok i was a bit too quick. You could use an idnumber for each image but it will add more code to the html page. On 5 apr, 14:23, David Duymelinck [EMAIL PROTECTED] wrote: How does that makes it possible to change the table? The solution for all those parents is var id = curImg.parents('tr').attr('id'); With parents you will get all the parent elements and you can limit it using an expression. http://docs.jquery.com/DOM/Traversing#parents.28_expr_.29 On 5 apr, 14:08, Ronald Haring [EMAIL PROTECTED] wrote: Looks good, only one suggestion, this line: var id = curImg.parent().parent().parent().parent().parent().parent().attr('id'); // get the id of the parent TR tag looks very brittle. If you change the table or tr a bit, then you are lost. Why dont you try and add another class to the img e.g. class=nav 1073 and then do something like: var curImg = $(this); // store a reference to the image just clicked upon var cssClass = curImg.attr(class); // fetch the classes e.g. nav 1073 var idArr = css.split( ); //split the id Regards Ronald Andy Matthews wrote: I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Png fix for ie 6
Is there a jquery plugin for fixing .png images in IE 6? Thanks -Geoff
[jQuery] Re: Png fix for ie 6
not sure if there is a plug in, but the topic has been discuss quite a few times with some solutions. Do a search thru the group and you can find a bunch. On 4/5/07, Geoffrey Knutzen [EMAIL PROTECTED] wrote: Is there a jquery plugin for fixing .png images in IE 6? Thanks -Geoff -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
Probably so you know we'll have to do some CF conversion there! ;) Andy Matthews wrote: Holy WOW!!! I'm assuming that uses PHP for the back end? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Hughes Sent: Thursday, April 05, 2007 9:03 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Looks excellent. Very impressive. - Original Message - From: [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 8:49 AM Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I can not show actual links because the products are white labeled. I made a little screencast from a back end using jQuery to do all sorts of things http://www.eyecon.ro/demos/imagebrowser.html -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: New Field Plug-in...
Good stuff, Dan. The first thing that jumps to mind is that these would be nice enhancements to the form plugin. getValue is very similar to fieldValue. I like the logic of your getValue better but I like the idea of returning the array instead of the string (and let the caller join it on whatever char they need). Mike Anyway, I've got preview of the plug-in up at: http://www.pengoworks.com/workshop/jquery/field.plugin.htm My intention is too add some of the functionality that people like about qForms into this plug-in as time permits. I'm interested in hearing your feedback on this.
[jQuery] Re: Overlib like funtionality with JQuery
Since you're asking... :) It would be nice if I could declare the tip body HTML with a string, rather than requiring a bodyHandler function. This way, for static tooltip content, I can be lazy and type a little bit less. :-D Thanks! - Brian [EMAIL PROTECTED] schrieb: Thanks for info. I also found Hovertips: http://www.dave-cohen.com/node/1186 However, of them all, I think I like tooltip the best. jtip was AJAX based which is more functionality than I need and will be slower. Hovertips may have more functionality than tooltip, but the code seemed a little less elegant. Let me know if there is anything you miss in the tooltip plugin, I'm going to work on it anyway. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Encoding forgin languages Jquery+Validation plugin - help!
amircx wrote: uh, maybe. but its still sends gibrish (try to see in firefox the headers that sends) and im using php, some of the answers here pepole sent ill be happy if can translate the code language to php Do you send correct headers in your PHP script before outputting the json code? header('Content-Type: application/json; charset=utf-8'); Jan
[jQuery] Re: toggling checkboxes in an adjacent table cell
RwL schrieb: I'm pretty new to jQuery and have hit the wall on this one... I have a tabular form where data points can be selected for update or to be ignored, sample here: http://www.lifford.org/exp/jQuery-checkboxes.html It was extremely easy to set up the select all / deselect all toggle at the top on a link to check/uncheck every box in every row. The next requirement, though, is what's tripping me up: I need the single checkbox in the last cell of each row to check or uncheck all the checkboxes in the adjacent (previous) cell, to match its own state. I don't think I can just use toggle() because the initial state of that checkbox could have been altered already by the master toggle above the table -- I think this needs to check for the state of the checkbox after the change and then force the others to match it. I've searched around and looked at / played with some forms plugins but none seem to help me get near accomplishing this specific task. Any pointers? How about this? $('input.rowChecker').click(function(){ $(this).parent().siblings('.updateItems').find('[EMAIL PROTECTED]').attr('checked', this.checked); }); Cheers, /rw
[jQuery] Re: New Field Plug-in...
I've toyed around w/using an array instead (I actually build an array, but return a string.) I may toy around w/making it a setting--whether to return arrays or strings. I'd say either make it an option (along with what the join char is) or just impl two method, one would call the other and then do the join. Plugins shouldn't feel as constrained by file size as the core. Strings can be more straightforward (but have certain limitations) while Arrays don't have any limitations, but aren't as intuitive. True enough, that's why having both would be good. I'd definitely see this as being a good marriage of with the Form plug-in. Cool. What other functions in qForm would be good candidates? Mike
[jQuery] Re: Overlib like funtionality with JQuery
Brian Miller schrieb: Since you're asking... :) It would be nice if I could declare the tip body HTML with a string, rather than requiring a bodyHandler function. This way, for static tooltip content, I can be lazy and type a little bit less. Sounds good, can you explain that a bit more? Maybe just post how your code and markup using the feature would look like. Right now you have this: if ( settings.bodyHandler ) { tTitle.hide(); tBody.html( settings.bodyHandler.call(this) ).show(); } else if (...) { I'm thinking of adding something like: } else if ( settings.bodyHTML ) { tTitle.hide(); tBody.html( settings.bodyHTML ).show(); } else if (...) { This way, if I wanted to simply state what the content of a particular tooltip is with a static HTML string, I could do that. If you wanted to be really complete about it, you could scan the HTML in order to properly handle tables and other HTML that doesn't render very well using innerHTML in IE. But, that seems like a lot of work for not a lot of benefit. Maybe you can also have a settings.bodyNode, so that people can use something like jQuick or Taconite to build a proper DOM node, and the tooltip plugin can simply drop it where the tip body goes. Just throwing some ideas out there, to see which ones stick. :) - Brian
[jQuery] Re: TableSorter issues: special characters, mixed data
Thanks Christian! I just pasted that in and indeed, now there isn't a JS error and it sorts correctly by title. However, now something strange is happening and the other fields don't sort -- they all sort by title! The date specifically is what I just tried. Here are two sample pages: http://anime-planet.com/users/reviewindex.php?usersid=19 ^^this page has always worked, because it has no special character names http://anime-planet.com/users/reviewindex.php?usersid=1 ^^the problem child page. The title does now work. Also, here's the tablesorter initialization: $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionType: ['title'] }); And one other question: is it possible to do multiple columns for textExtraction (using a comma, two separate lines for it, etc)? There is one other column (score) that in theory should be able to have either nothing, or a number. Note: I'm still down with helping you on the documentation front :) thanks! -kim --- Christian Bach [EMAIL PROTECTED] wrote: Kim, is it possible to publish a test page so i can take a look? A quick fix would be to use the new property textExtractionType - which in true tablesorter spirit is undocumented. Here is a example: This forces the tablesorter to extract data out of the title attribute, allowing a simple way to present mixed data to the user (string/numbers/etc). script $(table).tableSorter({ textExtractionType: ['title'] }); /script table thead tr thRow/th thNumber/th /tr /thead tbody tr td title=1One/td td title=3030.00/td /tr tr td title=22/td td title=50a href=50.000/td /tr /tbody /table Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Anyone know a workaround for this? :) Christian, any thoughts? -kim, who would really like to not code a bunch of tablesorting tonight in php ;) --- Kim Johnson [EMAIL PROTECTED] wrote: ATTN: Christian or anyone else familiar :) I'm trying to use TableSorter for a few large batches of data, but am getting JS errors depending on what content is in the columns. For example: -Digit-only data works, but MIXED data (ex: some fields are empty, and some have decimal values) fails. -Special characters break the sorting. For example, I have a list of titles and some titles start with special characters (ex: .hack//SIGN, ~To Heart~). This also breaks. I suspect these are breaking because of something to do with the generic sorting function: generic: function(a,b) { return ((a[1] b[1]) ? -1 : ((a[1] b[1]) ? 1 : 0)); } I usually use MYSQL's sorting mechanisms to filter queries (var1 var2) and this method works with special characters and such, so I'm not sure what the best way to modify the js file would be (for a temporary solution, until this is fixed in a subsequent release). Do you know of the reason why these cases are breaking, and/or what a good workaround would be? thanks, -kim No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news -- POLYESTER* Wittstocksgatan 2 115 24 Stockholm Phone: 08-660 73 50 / +46-8-660 73 50 Mobile: 070-443 91 90 / +46-70-443 91 90 E-mail: [EMAIL PROTECTED] http://www.polyester.se Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
[jQuery] Coldfusion: using $.get() to directly call a CFC living outside of the webroot
Right now m JS looks like this: $.get(psychic.cfm, {method:idArr[0],key:idArr[1]}, function(data){ //do some stuff }); psychic.cfm contains the following code: cfset VARIABLES.ps = CreateObject(component,includes.salesman) cfparam name=URL.method default= cfparam name=URL.key default= cfset func = VARIABLES.ps[URL.method] cfoutput#func(URL.key)#/cfoutput It's the only way that I can think of to call a CFC outside of my webroot. I don't like having to do this as it requires a middle-man page. The upside is that it works flawlessly. I do have a mapping to the CFC directory (not the one above): apps.cfcs.theCFCinQuestion Is there any way to call against that CFC directly instead of having to use a middle page? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: Moving to Google Groups (Finally)
Bullets and numbering!!! Front Page 97!!! For my serious vote: top post with the whole thread quoted. N The worst thing ever?? Come on. Have you tried Microsoft Bob? On 4/4/07, Chris W. Parker [EMAIL PROTECTED] wrote: On Wednesday, April 04, 2007 2:48 PM Glen Lipka said: Top posting, bottom posting. (Age old dillema - or at least 10 years old) Is it acceptable to erase the message and just post? Like this? That's the worst thing ever! It makes it almost impossible to get context unless you've already been following along with the entire thread. Or should I have said that here? On a serious note, I think it totally depends on the mail reader. For example, I use Gmail. I tag everything from the group with a label and archive it. (Using a filter). Gmail happens to be really good at keeping the thread together and I never delete anything. I literally have the entire thread on the screen. Its almost like a forum with no pagination (pagination-yuck). However, on a different client (like Outlook or Outlook Express) you get a totally different view. Those clients are not designer to keep everything. There context is much more important. I would venture to say that this is a touchy issue. Everyone has a view on it, usually based on the view of their mail client. ;) So is there an ettiquette rule to follow here on 1. What to delete when replying (if any) and 2. Where to post? (top or bottom) G
[jQuery] Re: Body Browser Classes
Hi. I love this idea, it's inventive and the need is there. The only feedback I have is that CSS that depends on JS will absolutely not fly where I work and play. Nathan Feedback desired: Lately, I have been developing CSS and HTML for a deep Web 2.0 complex app. Usually, I avoid CSS hacks like the plague. But recently, I have had to resort to the Holly Hack or the StarHTML Hack. But then it occured to me that jQuery provides a better way. A simple plugin could be written (has this already been written?) that tags the BODY (or other node) with a browser class resulting in: body class=FF or body class=IE6 or body class=Saf or whatever. Then your CSS would be: body.ie6 div.troublesome {height: 100%} rather than * html div.troublesome etc This makes your CSS avoid bizarre invalid hacks and use normal conditional classes that are self-documenting. Everyone knows that body.IE6 means you are adjusting for browser differences. And jQuery is much better at detection than crazy hacks. I wish all my CSS could do it right and find the common ground that all the browsers love. But this seems like a better way. What is your opinion? Anyone want to write a plugin that allows for $(body).browserTag()? Personally, I think this would be a cool thing in the basecode, but I wont push it. Glen
[jQuery] Re: EXTjs.com
Subject: [jQuery] EXTjs.com http://extjs.com Just launched. fyi. Wow, very interesting work. Hmm, it's not valid CSS, HTML and does not fit if you need to support WAI or 508 standards. Does anybody know if Ext will support accessibility in the future? JQuery and Ext could be a dream team if so. But anyway it's one of the coolest widget package. Regards Roger Ineichen _ Projekt01 GmbH
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
Yes, the back end is PHP driven but the response is XML Andy Matthews wrote: Holy WOW!!! I'm assuming that uses PHP for the back end? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Hughes Sent: Thursday, April 05, 2007 9:03 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Looks excellent. Very impressive. - Original Message - From: [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 8:49 AM Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I can not show actual links because the products are white labeled. I made a little screencast from a back end using jQuery to do all sorts of things http://www.eyecon.ro/demos/imagebrowser.html
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
I don't think I will release this since Ext does a better job Andy Matthews wrote: I'm more interested to see if he's going to be able to release that as a plugin! Just to clarify, I think that looks amazing! andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Thursday, April 05, 2007 9:14 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I'll ditto Andy's comment. :) This is really slick. I'd love to hear more on how you actually did this! Jim -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 10:07 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Holy WOW!!! I'm assuming that uses PHP for the back end? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Hughes Sent: Thursday, April 05, 2007 9:03 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Looks excellent. Very impressive. - Original Message - From: [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 8:49 AM Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I can not show actual links because the products are white labeled. I made a little screencast from a back end using jQuery to do all sorts of things http://www.eyecon.ro/demos/imagebrowser.html
[jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot
Andy, Ben Nadel has some information about calling CFCs outside the webroot, without a mapping, on his blog. It may be of help to you. I think there is still some mediation that happens but I don't think you have to use a middle-man file. -- Josh - Original Message - From: Andy Matthews To: jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 11:16 AM Subject: [jQuery] Coldfusion: using $.get() to directly call a CFC living outside of the webroot Right now m JS looks like this: $.get(psychic.cfm, {method:idArr[0],key:idArr[1]}, function(data){ //do some stuff }); psychic.cfm contains the following code: cfset VARIABLES.ps = CreateObject(component,includes.salesman) cfparam name=URL.method default= cfparam name=URL.key default= cfset func = VARIABLES.ps[URL.method] cfoutput#func(URL.key)#/cfoutput It's the only way that I can think of to call a CFC outside of my webroot. I don't like having to do this as it requires a middle-man page. The upside is that it works flawlessly. I do have a mapping to the CFC directory (not the one above): apps.cfcs.theCFCinQuestion Is there any way to call against that CFC directly instead of having to use a middle page? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
I don't quite understand; where do you want to add the description? Rey Bango wrote: Thanks Stefan. Can you give me a description of the site so I can add that? Rey [EMAIL PROTECTED] wrote: I can not show actual links because the products are white labeled. I made a little screencast from a back end using jQuery to do all sorts of things http://www.eyecon.ro/demos/imagebrowser.html
[jQuery] Re: THICKBOX doesnt work when on line...why?
could you provide a link to the page ? dennis. helpshelps wrote: i have a problem implementing jquery and thickbox in my site, and i can't understand the reason, because, the off-line site is perfectly working with all the libraries and visualize the thickbox, but when i upload it on my linux serve, it does not display the thick box but the plain html releated page. ANyone can help please?
[jQuery] Re: THICKBOX doesnt work when on line...why?
On Thursday, April 05, 2007 11:04 AM helpshelps said: i have a problem implementing jquery and thickbox in my site, and i can't understand the reason, because, the off-line site is perfectly working with all the libraries and visualize the thickbox, but when i upload it on my linux serve, it does not display the thick box but the plain html releated page. ANyone can help please? Sounds like maybe you're referencing a file(s) with file:// instead of http(s)://. Is that possible?
[jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot
Okay...I'll post this question to the cf-talk list as well. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Thursday, April 05, 2007 1:39 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot Andy, Ben Nadel has some information about calling CFCs outside the webroot, without a mapping, on his blog. It may be of help to you. I think there is still some mediation that happens but I don't think you have to use a middle-man file. -- Josh - Original Message - From: Andy Matthews mailto:[EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 11:16 AM Subject: [jQuery] Coldfusion: using $.get() to directly call a CFC living outside of the webroot Right now m JS looks like this: $.get(psychic.cfm, {method:idArr[0],key:idArr[1]}, function(data){ //do some stuff }); psychic.cfm contains the following code: cfset VARIABLES.ps = CreateObject(component,includes.salesman) cfparam name=URL.method default= cfparam name=URL.key default= cfset func = VARIABLES.ps[URL.method] cfoutput#func(URL.key)#/cfoutput It's the only way that I can think of to call a CFC outside of my webroot. I don't like having to do this as it requires a middle-man page. The upside is that it works flawlessly. I do have a mapping to the CFC directory (not the one above): apps.cfcs.theCFCinQuestion Is there any way to call against that CFC directly instead of having to use a middle page? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: Encoding forgin languages Jquery+Validation plugin - help!
the problem is not with mb_substr or whatever cause the problem also happens once i change somthing (onkeypress) malsup wrote: jQuery.param encodes to UTF-8 using encodeURIComponent. i think the problem is in malsup script return jQuery.param(this.formToArray(semantic)); its needs to encode it to utf , now its dont -- View this message in context: http://www.nabble.com/Encoding-forgin-languages-Jquery%2BValidation-plugin---help%21-tf3530311s15494.html#a9860746 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: toggling checkboxes in an adjacent table cell
On 4/5/07, RwL [EMAIL PROTECTED] wrote: How about this? $('input.rowChecker').click(function(){ $(this).parent().siblings('.updateItems').find('[EMAIL PROTECTED]').attr('checked', this.checked); }); Another possibility: $(table tr td:last-child input).click(function(){ $(../../td [EMAIL PROTECTED], this).attr(checked, this.checked ); } ) This way you wouldn't need classes on the last one or the inner ones. This is my first working xPath sample. I think it could be even shorter. Glen
[jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot
As an aside, Rob Gonda's AjaxCFC handles numbers 2 and 3 below nicely, and he's built a hook into jquery into the latest version. You can set the return type to JSON or WDDX, and it will report a nice error message for you if there's an error in your cfc. Not sure how that would tie in with the need for a facade, but it could probably be integrated. -- Josh - Original Message - From: Dan G. Switzer, II To: jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 12:12 PM Subject: [jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot Andy, I actually prefer using a façade (which is you're doing) for a few reasons: 1) You're preventing direct access to the CFC. While I do use CFC for Webservices, the CFCs I expose are usually façades for an internal API with limited roles and access. 2) Calling a CFC directly returns the results as WDDX (at least in CF7 and earlier.) I prefer using JSON-because it's lighter weight. A simple data structure in WDDX can produce a pretty large data packet, where the same packet in JSON is considerable smaller. 3) I can build whatever additional error handling for the AJAX call into the façade. I mean, what happens if your CFC throws an error? I want to make sure that my AJAX calls now what do to if something funky happens. -Dan
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
Stefan, That is a great app. Wish I had vision like that! Great work!!! -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Body Browser Classes
Glen Lipka schrieb: I hear everyone's points. I think the easy to remove it in 2012 argument doesn't resonate for me, since anything created today will be changed within 1-3 years (in my experience) and IE6 isn't going away that soon. The screen-reader/mobile stuff seems like they would have a different CSS base than the main browser audience anyway, so wouldn't applicable. The conditional comments are good, but need seperate CSS and limit the option NOT to do that. JS being required is a good point, but I guess it depends on how much tweaking versus wholesale changes are used. With our without hacks. I think, you overlooked the delivering smaller style sheets to modern browsers argument, which is to me more valid than the easy to remove one. Although I wonder, you were saying that hacks feel dirty, doesn't a style sheet messed up with hacks feel much more dirty than two separate style sheets, of which one is free from hacks? To avoid overlooking properties that are overruled in IE's bugsheet is just a matter of proper commenting your style sheets. Last not least I recommend to all using hacks to read 1. Molly about Long term hack strategies: http://www.informit.com/articles/article.asp?p=170511rl=1 2. Tantek - inventor of the CSS hack! - about hacks: http://tantek.com/log/2005/11.html -- Klaus
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
Just noticed that http://www.penumbra-overture.com/ uses jQuery and thickbox. On 4/5/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Stefan, That is a great app. Wish I had vision like that! Great work!!! -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Body Browser Classes
Good Articles. I found it interesting to think about that hacks should be ugly. I think your point about browser specific sheets is well taken. Firebug makes this a good thing when you see what styles are applied and can see which file they are in. I wish IE had similar. Another article I found interesting was how OpenLazlo deals with this: http://weblog.openlaszlo.org/archives/category/documentation/ Wouldn't it be cool if you could invlude a jQuery plugin that made all the browsers act the same for css? I know it would be dependant on JS, but it would make development of alot of projects much faster. Lots of projects I see don't let you in without JS. Glen On 4/5/07, Klaus Hartl [EMAIL PROTECTED] wrote: Last not least I recommend to all using hacks to read 1. Molly about Long term hack strategies: http://www.informit.com/articles/article.asp?p=170511rl=1 2. Tantek - inventor of the CSS hack! - about hacks: http://tantek.com/log/2005/11.html -- Klaus
[jQuery] jQpie php to ruby/python conversion wanted.
Looking for someone to do and help maintain equivalent ruby and python versions of jQpie. I am going to take each submitted conversion and post it on the jQpie website for review, the code that is chosen will get $50 US right away for helping out and might be bribed in the future ;) I will also donate $50 to jQuery for each chosen version.
[jQuery] problems with the starterkit
Hi, I was playing with the starterkit: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I got stuck in the following section, couldn't make it work: $(document).ready(function() { // use this to reset a single form $(#reset).click(function() { $(#form).reset(); }); }); I modified the values of the form's fields and when I clicked on the Reset link, nothing happened, I tried it in Firefox (Linux and windows) and ie 7. I updated to the latest jquery.js and this time firebug says there is an error: $(#form).reset is not a function So, am I doing something wrong or should I ignore that section of the tutorial? Thanks in advance, JJ
[jQuery] Re: EXTjs.com
On 4/5/07, Ariel Jakobovits [EMAIL PROTECTED] wrote: Just curious, before I jump into developing a new project using Ext, from some of the real gurus on this list, what are the pros and cons of using this new lib? I'm not a guru, but I have some experience with it. The company I am working for has been using it for a large RIA for the last 4 months. We started in version EXT 0.33 and cut in some of EXT 0.4 and some of EXT 1.0. He is soon to release 1.0 officially (within 30 days?) which refactors alot of code and changes the API of some components. Most notably is the grid. This 1.0 version is the one which is library independent and can use jQuery as a base. It's pretty large in file size, so I wouldn't think of it for e-commerce or brochureware. His (Jack Slocum) has a wonderful sense of style. It's awesome. Dialogs, Frames, ComboBoxes, Trees, Menus. They are beautiful and work very well. Lots of keyboard interactivity. He really thought of everything. It's a little bit of a kitchen-sink thing, but if file-size doesn't matter, he really covers all usability bases. I use his examples to show how great web UI can be without flash. One suggestion is to avoid the 0.33 stuff and stick to the 1.0 release. As Rey Bango can attest, there are lots of jQuery plugins that do similar things on a one-by-one basis. However, no one has all of the components wrapped up together with a strong and consistent API. Custom CSS on his stuff has proved to be easier than I thought. However, it's still not easy. The hard core engineers here like his style of API and how it's easy to register listeners. Ultimately, it saved us a huge amount of time and the app looks great. Hope this helps, Glen
[jQuery] Re: problems with the starterkit
That looks like an error in the tutorial. It should be: $(#form)[0].reset(); I got stuck in the following section, couldn't make it work: $(document).ready(function() { // use this to reset a single form $(#reset).click(function() { $(#form).reset(); }); }); I modified the values of the form's fields and when I clicked on the Reset link, nothing happened, I tried it in Firefox (Linux and windows) and ie 7. I updated to the latest jquery.js and this time firebug says there is an error: $(#form).reset is not a function So, am I doing something wrong or should I ignore that section of the tutorial?
[jQuery] Re: jQuery Powered Sites - The List Continues to Grow
http://www.gamegum.com and http://www.toongum.com both use jQuery extensively for AJAX, effects, and DOM manipulation. On Apr 5, 4:04 pm, Karl Rudd [EMAIL PROTECTED] wrote: Please release it. While Ext is wonderful, it is relatively large, and the LGPL license can be a little annoying to some. Karl Rudd On 4/6/07, Stefan Petre [EMAIL PROTECTED] wrote: I don't think I will release this since Ext does a better job Andy Matthews wrote: I'm more interested to see if he's going to be able to release that as a plugin! Just to clarify, I think that looks amazing! andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Thursday, April 05, 2007 9:14 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I'll ditto Andy's comment. :) This is really slick. I'd love to hear more on how you actually did this! Jim -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 10:07 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Holy WOW!!! I'm assuming that uses PHP for the back end? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Hughes Sent: Thursday, April 05, 2007 9:03 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow Looks excellent. Very impressive. - Original Message - From: [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 8:49 AM Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow I can not show actual links because the products are white labeled. I made a little screencast from a back end using jQuery to do all sorts of things http://www.eyecon.ro/demos/imagebrowser.html
[jQuery] Re: TableSorter issues: special characters, mixed data
Super close, but not quite! :) http://anime-planet.com/users/reviewindex.php?usersid=1 $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer'] ], textExtractionType: ['title'] }); ExtractionType fixes the title issue -- those sort just fine now. I also changed the date to 4 digits and that works just fine (it didn't work with the date line you had mentioned for 2 digits). However, the Custom line still doesn't do anything for sorting the score field. (I removed the 0's, as normally those fields would be BLANK, as opposed to 0). I also tried changing [2, 'integer'] to 'decimal' or 'double', to no avail. Any ideas on this last tiny bit? thanks again, -kim --- Christian Bach [EMAIL PROTECTED] wrote: I took a look at your example page and this snippet will solve your problem: $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer'] ], dateFormat: dd/mm/yy }); What we are doing here is forcing the third column (we start counting at zero) to use the integer parser, since the column is messed up with the auto detection and identified as a text column (hey, no ones perfect). As regarding your date format 01/01/07 i have added this to the shortDate parser, however since the year is formatted with two digests the parser will parse 07 as 1997 since there is no way for it to know that you properly mean 2007. So my suggestion is to change this to a full 4 digit year format. If you do change the the year to a 4 digit format remove the dateFormat property from the tablesorter constructor. The new tablesorter version can be found here: http://dev.jquery.com/browser/trunk/plugins/tablesorter/jquery.tablesorter.js?format=txt Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Thanks Christian! I just pasted that in and indeed, now there isn't a JS error and it sorts correctly by title. However, now something strange is happening and the other fields don't sort -- they all sort by title! The date specifically is what I just tried. Here are two sample pages: http://anime-planet.com/users/reviewindex.php?usersid=19 ^^this page has always worked, because it has no special character names http://anime-planet.com/users/reviewindex.php?usersid=1 ^^the problem child page. The title does now work. Also, here's the tablesorter initialization: $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionType: ['title'] }); And one other question: is it possible to do multiple columns for textExtraction (using a comma, two separate lines for it, etc)? There is one other column (score) that in theory should be able to have either nothing, or a number. Note: I'm still down with helping you on the documentation front :) thanks! -kim --- Christian Bach [EMAIL PROTECTED] wrote: Kim, is it possible to publish a test page so i can take a look? A quick fix would be to use the new property textExtractionType - which in true tablesorter spirit is undocumented. Here is a example: This forces the tablesorter to extract data out of the title attribute, allowing a simple way to present mixed data to the user (string/numbers/etc). script $(table).tableSorter({ textExtractionType: ['title'] }); /script table thead tr thRow/th thNumber/th /tr /thead tbody tr td title=1One/td td title=3030.00/td /tr tr td title=22/td td title=50a href=50.000/td /tr /tbody /table Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Anyone know a workaround for this? :) Christian, any thoughts? -kim, who would really like to not code a bunch of tablesorting tonight in php ;) --- Kim Johnson [EMAIL PROTECTED] wrote: ATTN: Christian or anyone else familiar :) I'm trying to use TableSorter for a few large batches of data, but am getting JS errors depending on what content is in the columns. For example: -Digit-only data works, but MIXED data (ex: some fields are empty, and some have decimal values) fails. -Special characters break the sorting. For example, I have a list of titles and some titles start with special characters (ex: .hack//SIGN, ~To Heart~). This also breaks. I suspect these are breaking
[jQuery] Re: TableSorter issues: special characters, mixed data
Err... I take that back. -the only way for the page to not have javascript errors is to put in the ExtractionType line, due to the special characters in the title. -however, by doing this, any time you sort any other field, it still is sorting by title, not the field you actually clicked. --- Kim Johnson [EMAIL PROTECTED] wrote: Super close, but not quite! :) http://anime-planet.com/users/reviewindex.php?usersid=1 $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer'] ], textExtractionType: ['title'] }); ExtractionType fixes the title issue -- those sort just fine now. I also changed the date to 4 digits and that works just fine (it didn't work with the date line you had mentioned for 2 digits). However, the Custom line still doesn't do anything for sorting the score field. (I removed the 0's, as normally those fields would be BLANK, as opposed to 0). I also tried changing [2, 'integer'] to 'decimal' or 'double', to no avail. Any ideas on this last tiny bit? thanks again, -kim --- Christian Bach [EMAIL PROTECTED] wrote: I took a look at your example page and this snippet will solve your problem: $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer'] ], dateFormat: dd/mm/yy }); What we are doing here is forcing the third column (we start counting at zero) to use the integer parser, since the column is messed up with the auto detection and identified as a text column (hey, no ones perfect). As regarding your date format 01/01/07 i have added this to the shortDate parser, however since the year is formatted with two digests the parser will parse 07 as 1997 since there is no way for it to know that you properly mean 2007. So my suggestion is to change this to a full 4 digit year format. If you do change the the year to a 4 digit format remove the dateFormat property from the tablesorter constructor. The new tablesorter version can be found here: http://dev.jquery.com/browser/trunk/plugins/tablesorter/jquery.tablesorter.js?format=txt Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Thanks Christian! I just pasted that in and indeed, now there isn't a JS error and it sorts correctly by title. However, now something strange is happening and the other fields don't sort -- they all sort by title! The date specifically is what I just tried. Here are two sample pages: http://anime-planet.com/users/reviewindex.php?usersid=19 ^^this page has always worked, because it has no special character names http://anime-planet.com/users/reviewindex.php?usersid=1 ^^the problem child page. The title does now work. Also, here's the tablesorter initialization: $(#userreviewtable).tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionType: ['title'] }); And one other question: is it possible to do multiple columns for textExtraction (using a comma, two separate lines for it, etc)? There is one other column (score) that in theory should be able to have either nothing, or a number. Note: I'm still down with helping you on the documentation front :) thanks! -kim --- Christian Bach [EMAIL PROTECTED] wrote: Kim, is it possible to publish a test page so i can take a look? A quick fix would be to use the new property textExtractionType - which in true tablesorter spirit is undocumented. Here is a example: This forces the tablesorter to extract data out of the title attribute, allowing a simple way to present mixed data to the user (string/numbers/etc). script $(table).tableSorter({ textExtractionType: ['title'] }); /script table thead tr thRow/th thNumber/th /tr /thead tbody tr td title=1One/td td title=3030.00/td /tr tr td title=22/td td title=50a href=50.000/td /tr /tbody /table Best regards Christian 2007/4/5, Kim Johnson [EMAIL PROTECTED]: Anyone know a workaround for this? :) Christian, any thoughts? === message truncated === Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.
[jQuery] UNfocus() ?
I am trying to emulate the :focus selector for IE, and I have succeeded in the initial aspect of that with the following: $inputs.each(function(){ $(this).focus(function(){ $(this).addClass('focus'); }); }); However, once the focus leaves the field, the class remains applied. Surely I don't have to manually iterate $inputs and remove .focus if it's applied, and then add it to the current input, do I? Thanks in advance for any help.
[jQuery] Re: xpath question
Blair, Thanks for the heads up, much appreciated. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: problems with the starterkit
$(#form).reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) O wow, I just opened up the starterfile zip - it uses a version of jQuery that's pre-dates jQuery 1.0! Yikes. No wonder the code was acting strange for you. JJ - Try using a copy of jQuery from here: http://jquery.com/src/jquery-latest.js --John On 4/5/07, Mike Alsup [EMAIL PROTECTED] wrote: That looks like an error in the tutorial. It should be: $(#form)[0].reset(); I got stuck in the following section, couldn't make it work: $(document).ready(function() { // use this to reset a single form $(#reset).click(function() { $(#form).reset(); }); }); I modified the values of the form's fields and when I clicked on the Reset link, nothing happened, I tried it in Firefox (Linux and windows) and ie 7. I updated to the latest jquery.js and this time firebug says there is an error: $(#form).reset is not a function So, am I doing something wrong or should I ignore that section of the tutorial?
[jQuery] Re: Interface Slider plugin problem
Thanks for the reply. But that didn't solved the problem. After a lot of debugging in islider.js file we noticed that it's the indicator GIF image which is creating this problem. I had to add the width of indicator image in the width of slider image to make it work correctly. So, if I need the slider of length 100 and the indicator image has width 16 then the slider length has to be 100 + 16 = 116. I have updated my example script accordingly to demonstrate this - http://sanisoft-demo.com/jquery/slider.html This I feel is a bug in slider plugin !! Regards, Aditya On 4/6/07, Seth [EMAIL PROTECTED] wrote: You're using an old version of jQuery with the latest version of Interface. My first guess would be to update your jQuery to 1.1.2. Seth On Apr 5, 7:14 am, Aditya Mooley [EMAIL PROTECTED] wrote: Hello all, I am trying to use slider plugin from interface for price range. But, when I try to set the values for slider indicators using SliderSetValues function it sets the indicator to incorrect value. For e.g. if I set slider 1 to [15, 0] it changes its X by 17 and not 15. My working example can be seen here - http://sanisoft-demo.com/jquery/slider.html Please help. Thanks, Aditya -- Aditya Mooley = PHP Applications for E-Biz: http://www.sanisoft.com Coppermine Picture Gallery: http://coppermine.sf.net Koppermine KDE Client: http://koppermine.sf.net =