[jQuery] Ajax Tabs - multiple loads problem
I've found a strange bug with jQuery tabs. Let's say you add a new Ajax tab, let's call it tab-1. When you click on it, a request is sent to the server. Add another Ajax tab, let's call it tab-2. When you click on it, a request is sent to the server. When you click on tab-1, the request to the server is sent *twice* Add a third Ajax tab, tab-3. Now clicking on - tab-3 sends *one* request - tab-2 sends *two* requests - tab-3 sends *three* requests And so on.
[jQuery] Re: Checkbox checked event
You['d use the click event and test the checked state in the event handler $('#myCheckBox').click (function () { var thisCheck = $(this); if (thischeck.is (':checked')) { // Do stuff } }); On Sep 24, 10:04 pm, voltron [EMAIL PROTECTED] wrote: How do I detect if a checkbox is checked by a user? change or click would be wrong. Thanks
[jQuery] Re: Why doesn't jQuery complete animations smoothly?
I've run into this problem a couple of times and found it was caused by having padding on the container beign animated. Padding isn't taken into account when computing an element's dimensions (or at least the specs say it shouldn't be) so a box with a height of 400px and padding of 5px all around is actually 410px tall (400px plus 5px padding top plus 5px padding bottom). the slideUp animation is implemented by decrementing the element's height until it's 0 and then hiding it. This means that if there is padding then the element won't actually be 0px tall when the element is hidden, it will be 0px plus the padding. This causes an apparent jump when the animation ends. On Sep 24, 6:22 pm, Chris W. Parker [EMAIL PROTECTED] wrote: Hello, Maybe this has everything to do with implementation and is not a fault of jQuery but I've always wondered why animations (like slideDown) do not finish smoothly. Case in point:http://leandrovieira.com/projects/jquery/lightbox/ The animation is smooth until the very end where it jumps to completion, skipping several frames of motion. Why is that? I've noticed it in my own basic animations too. Thanks, Chris.
[jQuery] Re: IT Assistant
A-MA-ZING! I really love the product shuffle effect.
[jQuery] Re: IT Assistant
Thanks for all the comments, I have been working on this for a good while now. While it is live now it shouldn't be considered as finished though, there's stuff to be added and problems to be solved. Like for example it apparently doesn't work in Safari 2 for reasons I can't determine. The debugging console doesn't give much insight and all the debuggers floating around for Safari require Safari 3, in which the application works. Needless to say this is very annoying! Additionally I want to include jQuery 1.2 features, such as being able to abort animation effects, but 1.2 was released too late in the game to include them. On Sep 24, 2:21 pm, GianCarlo Mingati [EMAIL PROTECTED] wrote: On Sep 24, 1:17 pm, Gordon [EMAIL PROTECTED] wrote: Well it's finally ready enough to go live so now I can plug the big jQuery-driven project I've been working on. Gordon, that is a really well designed app. I love the way the product-boxes expands, and the overall functionalities. Bravo! GC
[jQuery] Odd Ajax problem:
I'm dong an Ajax call to retrieve some JSON and build a table from this. (code posted below.) The Ajax call is never firing the success function, but if I include an error function, that is called. Yet in that error function, checking the status code shows a 200 and the response text is my JSON code. The page in question loads just fine on it's own and the JSON looks fine. So I'm not sure why the error condition is being called. I'm sure it's something stupid, but I can't see it. Any tips? I've tried both jQuery 1.1.4 and 1.2.1. Shawn CODE: $.ajax({ type: get, url: xhr/tc_recent.php, dataType: json, success: function (json) { alert(json.length); var tbl = table class=\tblTimeCards\; tbl += theadtr; tbl += thId/th; tbl += thClient/th; tbl += thProject/th; tbl += thStart/th; tbl += thEnd/th; tbl += thDuration/th; tbl += thDescription/th; tbl += /tr/thead; tbl += tbody; for (var x = 0; x json.length; x++) { tbl += tr; tbl += td class=\tcID\ + json[x].id + /td; tbl += td class=\tcClient\ + json[x].organization + /td; tbl += td class=\tcProject\ + json[x].project + /td; tbl += td class=\tcStart\ + json[x].start + /td; tbl += td class=\tcEnd\ + json[x].end + /td; tbl += td class=\tcDuration\ + json[x].duration + /td; tbl += td class=\tcDesc\ + json[x].description + /td; tbl += /tr; } tbl += tbody; $(.tcList).html(tbl); }, error: function (a,b,c) { alert(Error retrieving recent records\n\nstatus: + a.status + \n\n + a.responseText); } }); SAMPLE OF RETRIEVED JSON [ { id: 111, organization: open2space, start: new Date(2007-09-24 20:13:00), end: new Date(2007-09-24 16:13:00), duration: 2, work_type: Programming, project: simpleTracker, description: Test 8 }, { id: 112, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 113, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 114, organization: open2space, start: new Date(2007-09-24 18:14:00), end: new Date(2007-09-24 22:14:00), duration: 4, work_type: Programming, project: simpleTracker, description: Tst 10 } ]
[jQuery] Trying to get a handle on xml returned object
Hi, I've been trying to getsome XML data out of a jQuery AJAX request and I'm having trouble. Problem is, I can't read the returned XML to see what is being sent. CODE: $.ajax({ type: POST, url: /cgi-bin/monitor.cgi, data: dat, dataType: xml, success: function(xml){ var str=; for(var g in xml){ str+=g+':'+xml[g]+'\\n'; } alert(str); $(/progress,xml).each(function(){ var _duration=$(duration,this).text(); var _mark=$(mark,this).text(); alert(qf{'queue_name'}_monitor+_duration+:+_mark); //$(#+queuename+_monitor).html(_duration+:+_mark); }); }, error: function(err,ex,x){ //alert(Error in monitor script!); clearInterval(queuename+_progressInterval); } }); The alert(str) part of the code (trying to get a list of properties of the returned object) gives me a runtime error on firefox and fails with Object doesn't support this actionon IE7. Forefox reports the returned objects as an XMLDocument object but I can't seem to access any properties of it. Any ideas? Can someone point me at a way to get the text of the returned objkect maybe so I can test it?
[jQuery] Re: fadeIn to ajax submit succes callback
I also had similar problem playing more animations at the same time... sometimes I used a rough kind of instrunction var i = setInterval(function() { if ($(elementtocontrol).filter(:animated).size() == 0) { someStuff(); clearInterval(i) } , 300); Which is a sort of listener for the animations... quite rough but maybe useful in some cases I suppose On Sep 22, 6:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: @Josh The result is coming back and dsiplaying correctly. Actually I solved like that: var options = { target:'.cfjq_form_target4', beforeSubmit: function(){ $('.cfjq_form_target4').fadeOut().hide(function(){ $('.loading4').show(); }); }, success: function() { $('.cfjq_form_target4').fadeIn('slow').show(function(){ $('.loading4').hide(); }); } I concatenated the events to be sure to run one by one. Problems: 1) If I do not fadeOut beforeSubmit no way to have a fadeIn effect. 2)FF show a tremors fadingOut the target div. Andrea On 22 sep, 11:20, Josh Nathanson [EMAIL PROTECTED] wrote: Are you sure your ajax call is returning what you expect? Assuming you're using Firebug, check the response in your Firebug Net tab - you should see an XHR request that you can click on and see what's coming back from the server. -- Josh - Original Message - From: [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Saturday, September 22, 2007 8:33 AM Subject: [jQuery] Re: fadeIn to ajax submit succes callback I tried to get(0) the target element and is reached by the selector: alert [htmlDivElement] So the selector is reached but do not fade in simply appears in FF and crash all the validation/ajax script in IE7??? Any help??? Thanks Andrea On 22 sep, 04:35,muccy[EMAIL PROTECTED] wrote: Are you sure $('.cfjq_form_target4') is a valid selector??? Try to alert($('.cfjq_form_target4').get(0)) to see if you select correct page element :) On Sep 22, 4:54 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi this is my code: $(document).ready(function() { var options = { target:'.cfjq_form_target4', beforeSubmit: function(){ $('.cfjq_form_target4').empty(); $('.loading4').show(); }, success: function() { $('.loading4').hide(); } }; $(.cfjq_form4).validate({ errorContainer: $(.messageBox4), errorLabelContainer: $(.messageBox4 ul), wrapper: li, submitHandler: function(form) { $(form).ajaxSubmit(options); } }); }); If I change my success like this: success: function() { $('.loading4').hide(); $ ('.cfjq_form_target4').fadeIn('slow'); } Firefox do not show the fade effect at all. IE7 do not validate any more the form and also loose the ajax behavior. Do I miss something. Andrea
[jQuery] Re: toggle and checkbox
Hi, I would do : $('#myfield').attr('disabled', 'disabled'); // disabled $('#myfield').attr('disabled', ''); // enabled, i guess Matt 2007/9/24, sheetzam [EMAIL PROTECTED]: Using jquery 1.2.1 toggle: jQuery().ready(function(){ $('#multiple').toggle( function(){ $('.afield').attr('disabled',true); }, function(){ $('.afield').removeAttr('disabled'); } ); }); I'm trying to toggle the disabled attribute of some text input boxes based on a checkbox input: form input id=multiple type=checkboxThe Toggle/input input type=text class=afield /form However, when the checkbox is clicked, the check does not appear. Fails in IE and Firefox. I've tried adding code to check the box, but that fails as well. jQuery().ready(function(){ $('#multiple').toggle( function(){ $('#multiple').attr('checked',true); $('.afield').attr('disabled',true); }, function(){ $('#same').removeAttr('checked'); $('.afield').removeAttr('disabled'); } ); }); What's the best way to accomplish disabling text inputs with a checkbox? Am I overthinking this? Any help would sure be appreciated. -- Matthias ETIENNE
[jQuery] Re: Checkbox checked event
Thanks guys. But would´nt a click event also fire when I uncheck the checkbox? I would have to use both methods that guys suggested then? On Sep 25, 1:02 am, Josh Nathanson [EMAIL PROTECTED] wrote: If you're talking about capturing the event when a checkbox is checked, then click is correct. $(#mycheckboxid).click(function() { dostuff; }); - Original Message - From: voltron [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Monday, September 24, 2007 2:04 PM Subject: [jQuery] Checkbox checked event How do I detect if a checkbox is checked by a user? change or click would be wrong. Thanks
[jQuery] Re: jQuery for Floating Div
Karl -- Thanks for the link. That is similar to what I'm looking for; thanks! Unfortunately, I don't know nearly enough about jQuery -- or JS -- to modify the script. And, also, it looks like Amazon launched a new design tonight, eliminating the menu. Grrr. I slightly modified the script and it sort of works, although I don't imagine I'm using very good programming practices: $(document).ready(function(){ $(#link).mouseover(function(){ $('#popup_menu').show(); return false; }); $(#popup_menu).mouseover(function() { $('#popup_menu').show(); return false; }); $(#popup_menu).mouseout(function() { $('#popup_menu').hide(); }); }); Maybe you could help guide me with some of the issues I'm trying to resolve: * It disappears great, so long as you go into the box and then leave the box. This isn't exactly usable in a menu, though -- if people roll over the tab/link and then roll off it, I think they'd expect the box to disappear. * Just as a test, I quickly grabbed a CSS menu off of dynamicdrive.com -- if you rollover tools, you'll see the div. However, when you move your cursor to the div, the hover color goes away. Any idea how to fix this? (New sample URL: http://www.keuka.edu/pete/popover) Also, abs positioning is giving me a hard time ... looks fine on FF, but not so great on IE. I'm assuming this is a CSS thing, though. On 9/24/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hey Glen, That's actually a pretty old version of the plugin. A new(er) and improved version can be found here: http://plugins.learningjquery.com/cluetip/demo/ Pete, Check out that URL above and click on the Examples link at the top of the page. Then hover over the link that says sort of like amazon.com? under the Custom (temporary) section. Maybe that's something close to what you're looking for? One of these days when I'm not swamped with freelance work, I'd like to write a stripped-down plugin that just does that amazon.com thing. A bunch of people have already asked for it. Cheers, --Karl On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote: That's a nice effect. I have been trying to do something like that too. Microsoft does a very similar thing. Some helpful plugins to check out: 1. Hoverintent. Slows down the interaction to make sure the user intended to mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html 2. ClueTip. Shows one example of popup hovers like that. http://examples.learningjquery.com/62/demo/ There may be other plugins that help. I am interested in this if you nail it. Glen On 9/24/07, Pete [EMAIL PROTECTED] wrote: Hi all, I'm trying to construct a popover menu that resembles the one on Amazon.com (put your mouse over see all 43 product categories). I'm not too familiar with jQuery/JavaScript, but I thought I would be able to do something like this: $(document).ready(function(){ $(#link).mouseover(function(){ $(#popup_menu).show(); return false; }); $(#popup_menu).mouseout(function(){ $(this).hide(); return false; }); }); The problem is, as soon as you move your mouse off the link to go into the div, it collapses. Could someone please offer some examples/ insight? If you'd like to see the page, here's a link: http://www.keuka.edu/pete/jquery_float.html Thanks!
[jQuery] Save Your Liver.................
Fatty Liver May Result From Eating Quick-Burning Carbshttp://myfunnycollections.blogspot.com/2007/09/fatty-liver-may-result-from-eating.html http://bp2.blogger.com/_sDp_pE3-DTc/Rvi3W0ONacI/CFg/YCK1mFeeJYE/s1600-h/fatty-liver-cirrhosis.jpg *Diets rich in rapidly-digested carbohydrates not only expand waistlines, but may also cause fatty liver, a condition that can lead to liver failure and death, finds a new study in mice. If confirmed in humans, the findings suggest that fatty liver disease -- on the upsurge among Americans as a byproduct of the obesity epidemic -- may be preventable and possibly treatable through dietary changes. The study appears in the September issue of the journal Obesity. More Detailshttp://myfunnycollections.blogspot.com/2007/09/fatty-liver-may-result-from-eating.html * * *
[jQuery] iframe and events
Hello everybody! I have a problem with iframes and jquery. I have on my body a div (class=restoVentana) where I load an iframe. This div have two bind with two events (ponerFondo and quitarFondo). $(.restoVentana) .bind(ponerFondo,function( ) { ejecutar.ponerFondo( ); }) .bind(quitarFondo,function( ) { ejecutar.quitarFondo( ); }); In the iframe, in $(document).ready( ), I want trigger this event, ponerFondo and when the iframe is loaded I want trigger quitarFondo. But I don't know how. Is it possible?? Any idea??
[jQuery] jQuery().evalScripts is not a function (AjaxFileUpload and jquery 1.2)
Hi, I'm using AjaxFileUpload from http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ , which is listed in the plugins page, and uses jQuery 1.1.3. With jQuery 1.2, I always get a TypeError says jQuery(div).html(data).evalScripts is not a function. Is there any way out? Thaks!
[jQuery] Re: jQuery for Floating Div
Glen -- That's really slick! I don't think I'll be able to use it on this project though, but I think it's great for a quicklinks feature. It just pulled up Intuit -- what a slick site! On 9/24/07, Glen Lipka [EMAIL PROTECTED] wrote: Sorry Karl. I just grabbed the one that came up first in google. :) Yeah, that amazon effect is really useful. I tried to do that with Intuit, but couldn't figure it out, so I ended up with the slideLinks instead. These did very well in usability studies. Unexpected wow. http://www.commadot.com/jquery/slideMenu.php (click links at top) Pete, even though its not what you asked for, it might be a good choice. Glen On 9/24/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hey Glen, That's actually a pretty old version of the plugin. A new(er) and improved version can be found here: http://plugins.learningjquery.com/cluetip/demo/ Pete, Check out that URL above and click on the Examples link at the top of the page. Then hover over the link that says sort of like amazon.com? under the Custom (temporary) section. Maybe that's something close to what you're looking for? One of these days when I'm not swamped with freelance work, I'd like to write a stripped-down plugin that just does that amazon.com thing. A bunch of people have already asked for it. Cheers, --Karl On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote: That's a nice effect. I have been trying to do something like that too. Microsoft does a very similar thing. Some helpful plugins to check out: 1. Hoverintent. Slows down the interaction to make sure the user intended to mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html 2. ClueTip. Shows one example of popup hovers like that. http://examples.learningjquery.com/62/demo/ There may be other plugins that help. I am interested in this if you nail it. Glen On 9/24/07, Pete [EMAIL PROTECTED] wrote: Hi all, I'm trying to construct a popover menu that resembles the one on Amazon.com (put your mouse over see all 43 product categories). I'm not too familiar with jQuery/JavaScript, but I thought I would be able to do something like this: $(document).ready(function(){ $(#link).mouseover(function(){ $(#popup_menu).show(); return false; }); $(#popup_menu).mouseout(function(){ $(this).hide(); return false; }); }); The problem is, as soon as you move your mouse off the link to go into the div, it collapses. Could someone please offer some examples/ insight? If you'd like to see the page, here's a link: http://www.keuka.edu/pete/jquery_float.html Thanks!
[jQuery] slide to the left!
Hi everybody I'm looking for a plugin or something like that witch has the same functionality as the categories on http://www.deviantart.com/ (click on categories on the upper left side of the site...) What I'm after is the functionality that when you click a category it slides to the left and the subcategories appear with a back link. It would be great if it works with an unordered list!! I've been trying to mod the accordion plug in but I just won't get it right! so...any help would be much appreciated! Thanks in advance! /Simpel
[jQuery] Re: Save Your Liver.................
I ate your liver with fava beans and a nice chianti. On Sep 25, 9:41 am, Juicy Hilton [EMAIL PROTECTED] wrote: Fatty Liver May Result From Eating Quick-Burning Carbshttp://myfunnycollections.blogspot.com/2007/09/fatty-liver-may-result... http://bp2.blogger.com/_sDp_pE3-DTc/Rvi3W0ONacI/CFg/YCK1mFeeJ... *Diets rich in rapidly-digested carbohydrates not only expand waistlines, but may also cause fatty liver, a condition that can lead to liver failure and death, finds a new study in mice. If confirmed in humans, the findings suggest that fatty liver disease -- on the upsurge among Americans as a byproduct of the obesity epidemic -- may be preventable and possibly treatable through dietary changes. The study appears in the September issue of the journal Obesity. More Detailshttp://myfunnycollections.blogspot.com/2007/09/fatty-liver-may-result... * * *
[jQuery] Re: New Plugin: Picklists
Ah, that's interesting, hadn't thought of using it other than onload, will have a look at that, thanks. I think I've got to use html() to transfer the options so I can preserve any optgroups, but I'll have a good look at your code. On Sep 24, 6:25 pm, Leonardo K [EMAIL PROTECTED] wrote: I have a suggestion: Example: If u have a select multiple with few options already selected. When the plugin is activeted it move all options to another select but it lose all options selected before. Instead of this: function moveAllOptions(from, to) { jQuery(#+to).html(jQuery(#+from).html()) .find('option:selected') .attr(selected, false); jQuery(#+from).html(''); } change for: function moveAllOptions(from, to) { var dest = jQuery(#+to); jQuery(#+from).find(option).each(function(){ dest.append(this); }); jQuery(#+from).html(''); if (dest.find(option:selected).size() = 1) addTo(to, from); } I dont know if I make myself clear. On 9/24/07, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 24, 4:12 pm, george.gsgd [EMAIL PROTECTED] wrote: Can anyone help me come up with a better name for this? I struggled to come up with 'Picklists', and I'm not sure it's particularly descriptive or obvious... a) Linked Selection? b) Chained Selection? c) ... err... Natural Selection? ;) d) s2s: Select To Select (sounds like an ATT calling plan) That's pretty slick, by the way. :)
[jQuery] How to use google group ?
Hello , I try to use this google group and it's the first time I use a google group. I wrote 3 differents message. I have a reply on only one of this but I never seen my new message on the list of the discussion. If some body could help to teacth me how the group and the discussion works ? I m French so if a frenchy could reply just one time in french i'll be very glad !!! Thank you !!! Fabrizio
[jQuery] Avoid enter keypress to submit form
Hi, Is there an non javascript way to avoid enter keystroke in an input to trigger the form submit or am I forced to catch keystroke code 13 in javascript ? If force to do in javascript, is there a way to catch keystroke event of only one input and not window object ? Is there already a jquery plugin for this ? Regards. -- Fabien Meghazi Website: http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]
[jQuery] Re: jQuery().evalScripts is not a function (AjaxFileUpload and jquery 1.2)
Sure, use the 1.1 compatibility plugin: http://dev.jquery.com/browser/trunk/plugins/compat-1.1/jquery.compat-1.1.js?format=txt --John On 9/25/07, deerchao [EMAIL PROTECTED] wrote: Hi, I'm using AjaxFileUpload from http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ , which is listed in the plugins page, and uses jQuery 1.1.3. With jQuery 1.2, I always get a TypeError says jQuery(div).html(data).evalScripts is not a function. Is there any way out? Thaks!
[jQuery] Re: unload
On Sep 24, 12:53 pm, Erik Beeson [EMAIL PROTECTED] wrote: Try $(window).unload(...). Works for me on firefox. I think these docs are wrong:http://docs.jquery.com/Events/unload#fn Thanks. That worked for when the window changes or redirects. Is there anyway to detect a browser window being closed? T.
[jQuery] Re: unload
That's the window.onbeforeunload event. Use it like this: window.onbeforeunload = function() { return Unsaved changes will be lost.; }; You can't use regular jQuery event binding for onbeforeload. See her: http://dev.jquery.com/ticket/1365 --Erik On 9/25/07, Trans [EMAIL PROTECTED] wrote: On Sep 24, 12:53 pm, Erik Beeson [EMAIL PROTECTED] wrote: Try $(window).unload(...). Works for me on firefox. I think these docs are wrong:http://docs.jquery.com/Events/unload#fn Thanks. That worked for when the window changes or redirects. Is there anyway to detect a browser window being closed? T.
[jQuery] Re: UI tabs - find unique
Please ask on the jQuery UI list: http://groups.google.com/group/jquery-ui - Richard On 9/24/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: Trying out jQuery UI. Here's a problem I came across while looking at tabs. I need to ensure that when a tab is opened it's unique. That is, when an attempt is made to open a tab with the same content, an existing tab should open up instead. Here's what I mean: I have a grid that lists, say data on sales from a database. When a user clicks/double clicks a row a new tab opens containing, say, a sales report. If a user double clicks the same row again, i need to show him the previously opened tab. Is it possible with jQuery tabs or any other tabs? Thank you
[jQuery] Re: hiding/showing more than 5 P
The code above has been used on this tiny homepage. http://www.modostudio.net/ P.S: Giorgio wanted this more/less trigger thing. To me this other attempt http://www.gcmingati.net/tmp/modo/htdocs/index.html was better, but ... he is A friend and i don't want to litigate ;-) GC
[jQuery] Re: Odd Ajax problem:
I did the following to make it work: I wrapped the data as such: MyJSON({ items: [ your items here ] }); then I created a function: Function MyJSON(data) { var json = data.items; var tbl = table border='1' class=\tblTimeCards\; tbl += theadtr; tbl += thId/th; tbl += thClient/th; tbl += thProject/th; tbl += thStart/th; tbl += thEnd/th; tbl += thDuration/th; tbl += thDescription/th; tbl += /tr/thead; tbl += tbody; for (var x = 0; x json.length; x++) { tbl += tr; tbl += td class=\tcID\ + json[x].id + /td; tbl += td class=\tcClient\ + json[x].organization + /td; tbl += td class=\tcProject\ + json[x].project + /td; tbl += td class=\tcStart\ + json[x].start + /td; tbl += td class=\tcEnd\ + json[x].end + /td; tbl += td class=\tcDuration\ + json[x].duration + /td; tbl += td class=\tcDesc\ + json[x].description + /td; tbl += /tr; } tbl += tbody; $(.tcList).html(tbl); } then I changed the ajax call to this: var xhr = $.ajax({ type: get, url: json-data.wct, dataType: jsonp, error: function (a,b,c) { alert(Error retrieving recent records\n\nstatus: + a.status +\n\n + a.responseText); } }); Note the jsonp. This worked. -- HLS On Sep 25, 1:38 am, sgrover [EMAIL PROTECTED] wrote: I'm dong an Ajax call to retrieve some JSON and build a table from this. (code posted below.) The Ajax call is never firing the success function, but if I include an error function, that is called. Yet in that error function, checking the status code shows a 200 and the response text is my JSON code. The page in question loads just fine on it's own and the JSON looks fine. So I'm not sure why the error condition is being called. I'm sure it's something stupid, but I can't see it. Any tips? I've tried both jQuery 1.1.4 and 1.2.1. Shawn CODE: $.ajax({ type: get, url: xhr/tc_recent.php, dataType: json, success: function (json) { alert(json.length); var tbl = table class=\tblTimeCards\; tbl += theadtr; tbl += thId/th; tbl += thClient/th; tbl += thProject/th; tbl += thStart/th; tbl += thEnd/th; tbl += thDuration/th; tbl += thDescription/th; tbl += /tr/thead; tbl += tbody; for (var x = 0; x json.length; x++) { tbl += tr; tbl += td class=\tcID\ + json[x].id + /td; tbl += td class=\tcClient\ + json[x].organization + /td; tbl += td class=\tcProject\ + json[x].project + /td; tbl += td class=\tcStart\ + json[x].start + /td; tbl += td class=\tcEnd\ + json[x].end + /td; tbl += td class=\tcDuration\ + json[x].duration + /td; tbl += td class=\tcDesc\ + json[x].description + /td; tbl += /tr; } tbl += tbody; $(.tcList).html(tbl); }, error: function (a,b,c) { alert(Error retrieving recent records\n\nstatus: + a.status + \n\n + a.responseText); } }); SAMPLE OF RETRIEVED JSON [ { id: 111, organization: open2space, start: new Date(2007-09-24 20:13:00), end: new Date(2007-09-24 16:13:00), duration: 2, work_type: Programming, project: simpleTracker, description: Test 8 }, { id: 112, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 113, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 114, organization: open2space, start: new Date(2007-09-24 18:14:00), end: new Date(2007-09-24 22:14:00), duration: 4, work_type: Programming, project: simpleTracker, description: Tst 10 } ]
[jQuery] Re: slide to the left!
On Sep 25, 2007, at 4:14 AM, Simpel wrote: Hi everybody I'm looking for a plugin or something like that witch has the same functionality as the categories on http://www.deviantart.com/ (click on categories on the upper left side of the site...) What I'm after is the functionality that when you click a category it slides to the left and the subcategories appear with a back link. It would be great if it works with an unordered list!! I've been trying to mod the accordion plug in but I just won't get it right! so...any help would be much appreciated! Thanks in advance! /Simpel Hi there, I think this plugin does what you're looking for: http://www.webappers.com/2007/09/05/smooth-and-clean-fastfind-menu- jquery-plugin/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] Re: Odd Ajax problem:
Note, in my example url: json-data.wct it is my equivalent to your PHP for our web server. In this case, json-data-wct, is simply a dump of: MyJSON({items: [ { id: 111, organization: open2space, start: new Date(2007-09-24 20:13:00), end: new Date(2007-09-24 16:13:00), duration: 2, work_type: Programming, project: simpleTracker, description: Test 8 }, { id: 112, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 113, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker, description: Test 9 }, { id: 114, organization: open2space, start: new Date(2007-09-24 18:14:00), end: new Date(2007-09-24 22:14:00), duration: 4, work_type: Programming, project: simpleTracker, description: Tst 10 } ]}); jsonp (note the p) works by you creating a function (in this case MyJSON) that will handle the data. The response is essentially a javascript that jQuery Ajax will eval-uate. The javascript is a callback to this function with the parameter being your actual JSON data. -- HLS On Sep 25, 9:20 am, Pops [EMAIL PROTECTED] wrote: I did the following to make it work: I wrapped the data as such: MyJSON({ items: [ your items here ] }); then I created a function: Function MyJSON(data) { var json = data.items; var tbl = table border='1' class=\tblTimeCards\; tbl += theadtr; tbl += thId/th; tbl += thClient/th; tbl += thProject/th; tbl += thStart/th; tbl += thEnd/th; tbl += thDuration/th; tbl += thDescription/th; tbl += /tr/thead; tbl += tbody; for (var x = 0; x json.length; x++) { tbl += tr; tbl += td class=\tcID\ + json[x].id + /td; tbl += td class=\tcClient\ + json[x].organization + /td; tbl += td class=\tcProject\ + json[x].project + /td; tbl += td class=\tcStart\ + json[x].start + /td; tbl += td class=\tcEnd\ + json[x].end + /td; tbl += td class=\tcDuration\ + json[x].duration + /td; tbl += td class=\tcDesc\ + json[x].description + /td; tbl += /tr; } tbl += tbody; $(.tcList).html(tbl); } then I changed the ajax call to this: var xhr = $.ajax({ type: get, url: json-data.wct, dataType: jsonp, error: function (a,b,c) { alert(Error retrieving recent records\n\nstatus: + a.status +\n\n + a.responseText); } }); Note the jsonp. This worked. -- HLS On Sep 25, 1:38 am, sgrover [EMAIL PROTECTED] wrote: I'm dong an Ajax call to retrieve some JSON and build a table from this. (code posted below.) The Ajax call is never firing the success function, but if I include an error function, that is called. Yet in that error function, checking the status code shows a 200 and the response text is my JSON code. The page in question loads just fine on it's own and the JSON looks fine. So I'm not sure why the error condition is being called. I'm sure it's something stupid, but I can't see it. Any tips? I've tried both jQuery 1.1.4 and 1.2.1. Shawn CODE: $.ajax({ type: get, url: xhr/tc_recent.php, dataType: json, success: function (json) { alert(json.length); var tbl = table class=\tblTimeCards\; tbl += theadtr; tbl += thId/th; tbl += thClient/th; tbl += thProject/th; tbl += thStart/th; tbl += thEnd/th; tbl += thDuration/th; tbl += thDescription/th; tbl += /tr/thead; tbl += tbody; for (var x = 0; x json.length; x++) { tbl += tr; tbl += td class=\tcID\ + json[x].id + /td; tbl += td class=\tcClient\ + json[x].organization + /td; tbl += td class=\tcProject\ + json[x].project + /td; tbl += td class=\tcStart\ + json[x].start + /td; tbl += td class=\tcEnd\ + json[x].end + /td; tbl += td class=\tcDuration\ + json[x].duration + /td; tbl += td class=\tcDesc\ + json[x].description + /td; tbl += /tr; } tbl += tbody; $(.tcList).html(tbl); }, error: function (a,b,c) { alert(Error retrieving recent records\n\nstatus: + a.status + \n\n + a.responseText); } }); SAMPLE OF RETRIEVED JSON [ { id: 111, organization: open2space, start: new Date(2007-09-24 20:13:00), end: new Date(2007-09-24 16:13:00), duration: 2, work_type: Programming, project: simpleTracker, description: Test 8 }, { id: 112, organization: open2space, start: new Date(2007-09-24 19:14:00), end: new Date(2007-09-24 22:14:00), duration: 3, work_type: Programming, project: simpleTracker,
[jQuery] Re: jdmenu and new dimensions issue?
has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jdmenu and new dimensions issue?
Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jdmenu and new dimensions issue?
I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] image preloading problem
hello, I am trying to preload some images using the code i found in http://www.texotela.co.uk/code/jquery/preload/ and http://www.appelsiini.net/2007/6/sequentially-preloading-images. /// version 1 jQuery.preloadImages = function() { for(var i = 0; iarguments.length; i++) { $('img').attr('src', arguments[i]); } } /// version 2 (not quite like the original) jQuery.preloadImages2 = function(){ var args = arguments; $(window).bind('load', function(){ var preload = new Array(); for(var i = 0; iargs.length; i++){ preload[i] = args[i]; } $(document.createElement('img')).bind('load', function(){ if(preload[0]){ this.src = preload.shift(); alert(this.src); } }).trigger('load').appendTo('#imagePanel'); }); } I then call one of those functions before the document loads: $.preloadImages( img/cedefop.jpg, img/cedefop5.jpg, img/sap.jpg, img/igme5.jpg, img/naxm.jpg, img/olymp.jpg ); ...and then i try to append the preloaded images in a div element: $(document).ready( function(){ images = $('img'); $('#imagePanel').append(images) }); The problem is that the images don't seem to get loaded. I understand that an element has to be appended in order to be manipulated, but in this case you cannot append it anywhere, as the document has not been loaded yet. So this call: $('img').size() gives me 0. I also read this post: http://groups.google.gr/group/jquery-en/browse_thread/thread/6d015c5373135c6b/d24b2c5405355156?hl=ellnk=stq=jquery+preloadrnum=9#d24b2c5405355156 But nobody seems to be having the same problem. What is so obvious that i can't see? Thank you, Dimitris Chrysomallis
[jQuery] Re: jdmenu and new dimensions issue?
You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: toggle and checkbox
I had made a little checkbox demo a while back. Doesn't do everything you want, but it might help. http://www.commadot.com/jquery/checkboxes.php Glen On 9/24/07, Matt [EMAIL PROTECTED] wrote: Hi, I would do : $('#myfield').attr('disabled', 'disabled'); // disabled $('#myfield').attr('disabled', ''); // enabled, i guess Matt 2007/9/24, sheetzam [EMAIL PROTECTED]: Using jquery 1.2.1 toggle: jQuery().ready(function(){ $('#multiple').toggle( function(){ $('.afield').attr('disabled',true); }, function(){ $('.afield').removeAttr('disabled'); } ); }); I'm trying to toggle the disabled attribute of some text input boxes based on a checkbox input: form input id=multiple type=checkboxThe Toggle/input input type=text class=afield /form However, when the checkbox is clicked, the check does not appear. Fails in IE and Firefox. I've tried adding code to check the box, but that fails as well. jQuery().ready(function(){ $('#multiple').toggle( function(){ $('#multiple').attr('checked',true); $('.afield').attr('disabled',true); }, function(){ $('#same').removeAttr('checked'); $('.afield').removeAttr('disabled'); } ); }); What's the best way to accomplish disabling text inputs with a checkbox? Am I overthinking this? Any help would sure be appreciated. -- Matthias ETIENNE
[jQuery] Re: jdmenu and new dimensions issue?
I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jQuery for Floating Div
If amazon took theirs down, you can still see a similar example on Microsoft. Wow, microsoft just changed their site pretty heavily. Try here http://msdn2.microsoft.com/en-us/default.aspx They optimize for IE7 of course. Top right link. Glen On 9/24/07, Pete Bekisz [EMAIL PROTECTED] wrote: Glen -- That's really slick! I don't think I'll be able to use it on this project though, but I think it's great for a quicklinks feature. It just pulled up Intuit -- what a slick site! On 9/24/07, Glen Lipka [EMAIL PROTECTED] wrote: Sorry Karl. I just grabbed the one that came up first in google. :) Yeah, that amazon effect is really useful. I tried to do that with Intuit, but couldn't figure it out, so I ended up with the slideLinks instead. These did very well in usability studies. Unexpected wow. http://www.commadot.com/jquery/slideMenu.php (click links at top) Pete, even though its not what you asked for, it might be a good choice. Glen On 9/24/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hey Glen, That's actually a pretty old version of the plugin. A new(er) and improved version can be found here: http://plugins.learningjquery.com/cluetip/demo/ Pete, Check out that URL above and click on the Examples link at the top of the page. Then hover over the link that says sort of like amazon.com? under the Custom (temporary) section. Maybe that's something close to what you're looking for? One of these days when I'm not swamped with freelance work, I'd like to write a stripped-down plugin that just does that amazon.com thing. A bunch of people have already asked for it. Cheers, --Karl On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote: That's a nice effect. I have been trying to do something like that too. Microsoft does a very similar thing. Some helpful plugins to check out: 1. Hoverintent. Slows down the interaction to make sure the user intended to mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html 2. ClueTip. Shows one example of popup hovers like that. http://examples.learningjquery.com/62/demo/ There may be other plugins that help. I am interested in this if you nail it. Glen On 9/24/07, Pete [EMAIL PROTECTED] wrote: Hi all, I'm trying to construct a popover menu that resembles the one on Amazon.com (put your mouse over see all 43 product categories). I'm not too familiar with jQuery/JavaScript, but I thought I would be able to do something like this: $(document).ready(function(){ $(#link).mouseover(function(){ $(#popup_menu).show(); return false; }); $(#popup_menu).mouseout(function(){ $(this).hide(); return false; }); }); The problem is, as soon as you move your mouse off the link to go into the div, it collapses. Could someone please offer some examples/ insight? If you'd like to see the page, here's a link: http://www.keuka.edu/pete/jquery_float.html Thanks!
[jQuery] Re: jdmenu and new dimensions issue?
Okay ... sorry for the confusion. I'm just trying to figure out if it is actually a compatibility issue with dimensions or just jQuery 1.2. So if you use jQuery 1.2 + older dimensions it works as expected but when you add UI and new dimensions it breaks? Could you use the unpacked source to get a more meaningful error? Could you upload a demo of the issue? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jdmenu and new dimensions issue?
A demo of the issue is at: www.kaizendigital.com/index2.php Note you have to use FF right now cause IE is even more broken. if you hover over products, you will get the error. can't test out a unpack till later tonight. Brandon Aaron wrote: Okay ... sorry for the confusion. I'm just trying to figure out if it is actually a compatibility issue with dimensions or just jQuery 1.2. So if you use jQuery 1.2 + older dimensions it works as expected but when you add UI and new dimensions it breaks? Could you use the unpacked source to get a more meaningful error? Could you upload a demo of the issue? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] [NEWS] New ColdFusion Custom Tag for TableSorter
Brian Rinaldi has gone through the effort of simplifying server-side implementation of the jQuery UI TableSorter control within the ColdFusion application server. You can read more here: http://www.remotesynthesis.com/blog/index.cfm/2007/9/25/Sortable-Table-ColdFusion-Custom-Tag-with-jQueryUI As a developer and huge fan of ColdFusion I'm very happy to see this done. Great job Brian. Rey...
[jQuery] Debugging in Safari 2
I really need a hand with my IT Assistant project (http://www.pcwb.com/ assistants/) and an issue in Safari version 2. As it works in Safari 3/Win I'm assuming that it's a bug in Safari itself, but as our website stats indicate that Safari 2 is the most popular version by far it's something I need to find a workaround for. When I visit the page on a mac wit hSafari 2 installed, the please wait blockUI message appears, but then the whole thing just sits there and doesn't progress any further. I managed to enable the debug menu but that offered no insight whatsoever. It simply displayed the message null value - line 1 when the page loaded. Line 1 of what file? Come on, give me something useful here! I know Apple seems to hate error messages, but a developer needs something to work with! I tried finding some more debugging tools for Safari, but they are only compatible with Safari 3 for Mac, which doesn't do me any good. The only machines around here with Safari 3 on them are Windows boxes, and the assistant works fine in Safari 3 anyway. Is there a list of known issues with JavaScript in Safari 2 anywhere? I've not managed to find one on Google. Or do any of you guys have experience with this problem and know of a work around? Or is there a decent debugger for Safari 2.x that I don't know about?
[jQuery] Re: jdmenu and new dimensions issue?
Hmmm it looks like jdmenu is using either innerWidth/Height or outerWidth/Height on the window which was removed in the latest SVN of dimensions. Using the older version of dimensions along with UI shouldn't give you any trouble at least until either dimensions or jdmenu is updated. -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: A demo of the issue is at: www.kaizendigital.com/index2.php Note you have to use FF right now cause IE is even more broken. if you hover over products, you will get the error. can't test out a unpack till later tonight. Brandon Aaron wrote: Okay ... sorry for the confusion. I'm just trying to figure out if it is actually a compatibility issue with dimensions or just jQuery 1.2. So if you use jQuery 1.2 + older dimensions it works as expected but when you add UI and new dimensions it breaks? Could you use the unpacked source to get a more meaningful error? Could you upload a demo of the issue? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jdmenu and new dimensions issue?
If that is the case, would would the replacement be for those functions as i would rather edit the code myself and use the newer version(along with passing the new code to the author of jdmenu so he can release a working version for the latest dimensions). Worst case i should be able to pull those function and just entered the new dimensions to include the old function. Brandon Aaron wrote: Hmmm it looks like jdmenu is using either innerWidth/Height or outerWidth/Height on the window which was removed in the latest SVN of dimensions. Using the older version of dimensions along with UI shouldn't give you any trouble at least until either dimensions or jdmenu is updated. -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: A demo of the issue is at: www.kaizendigital.com/index2.php Note you have to use FF right now cause IE is even more broken. if you hover over products, you will get the error. can't test out a unpack till later tonight. Brandon Aaron wrote: Okay ... sorry for the confusion. I'm just trying to figure out if it is actually a compatibility issue with dimensions or just jQuery 1.2. So if you use jQuery 1.2 + older dimensions it works as expected but when you add UI and new dimensions it breaks? Could you use the unpacked source to get a more meaningful error? Could you upload a demo of the issue? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12882307 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jdmenu and new dimensions issue?
Howdy, I'm jumping in late to the conversation here. As Brandon pointed out there were some updates to dimensions/jQuery core that need to be updated in the plugin. I have a rewrite nearing completion which I'm working hard at trying to have completed and published by Ajax Experience at the end of October. Let me take a moment and appologize to those of you who have contacted me but haven't gotten a response. With this plugins growth and popularity I'm getting more emails than I can respond to. I unfortunately haven't had the time available to commit to this over the past few months due to family, personal and work commitments. Cheers, -js On 9/25/07, Eridius [EMAIL PROTECTED] wrote: A demo of the issue is at: www.kaizendigital.com/index2.php Note you have to use FF right now cause IE is even more broken. if you hover over products, you will get the error. can't test out a unpack till later tonight. Brandon Aaron wrote: Okay ... sorry for the confusion. I'm just trying to figure out if it is actually a compatibility issue with dimensions or just jQuery 1.2. So if you use jQuery 1.2 + older dimensions it works as expected but when you add UI and new dimensions it breaks? Could you use the unpacked source to get a more meaningful error? Could you upload a demo of the issue? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I know it work with the older version the jdmenu comes with however i also am using the jQuery UI which needs the newer version and i can't use both versions. Brandon Aaron wrote: You can get the older version of dimensions here: http://jquery.com/plugins/project/dimensions If you could test it out, that would help a lot. Thanks! -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: I don't know which version it comes with by default but it does work with that version but not he version with jQuery UI and not sure which version that is since the file does not have a version number just the rev number that i gave you. Brandon Aaron wrote: Does it work with Dimensions 1.1.2? -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and dimensions Rev: 3238 Built on 2007-09-11 for jQuery 1.2+? Brandon Aaron wrote: What issue are you referring to? -- Brandon Aaron On 9/23/07, Eridius [EMAIL PROTECTED] wrote: Does anyone know if the issue with the new dimensions(the one with the jQuery UI) is being worked out with jdmenu cause i need to use both or is there a menu system like jdmenu under development for release in the jQuery UI? -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Plugin Question
Ok, lets say i make a plugin using this (function())(jQuery) format and it works like this: $('#something').plugin(); Now inside the plugin this is the access for the class, how do i access the jquery object that the plugin was called on? -- View this message in context: http://www.nabble.com/Plugin-Question-tf4516781s15494.html#a12883523 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] problem with cookie plugin when trying to store array object in cookie
I don't see this is a problem with cookie plugin in particular but this is problem with cookie itself. Suppose this is the array var arr = []; arr.push({name:vj,rollNo:10}); arr.push({name:kr,rollNo:15}); The size of arr is 2 before storing in cookie I tried to store this array object in a cookie as $.cookie(cookieName, arr), and then later when I tried to access the length of array with cookie as var tempArr= $.cookie(cookieName)--which should give array object named arr. and then I tried to alert length of array as alert(tempArr.length); I was expecting size of array to be 2 but surprisingly its returning 31. I printed the value of tempArr like alert(arr=+ tempArr+ len=+tempArr.length). it prints arr=[object Object],[object Object] len=31. When you calculate the each character of [object Object],[object Object] it returns 31. Can any one of you come up with quick solution of how to store array of array objects in a cookie. It'll be greatful. Regards, Vijay -- View this message in context: http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12883618 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Plugin Question
Inside the plugin this is actually the jQuery object that the plugin was called on. (function($) { $.fn.plugin = function() { console.log(this); // the jQuery collection/object }; })(jQuery); -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: Ok, lets say i make a plugin using this (function())(jQuery) format and it works like this: $('#something').plugin(); Now inside the plugin this is the access for the class, how do i access the jquery object that the plugin was called on? -- View this message in context: http://www.nabble.com/Plugin-Question-tf4516781s15494.html#a12883523 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: problem with cookie plugin when trying to store array object in cookie
Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ + objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair + encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'queryStringToObject();'); }; } This is the function that is using the previous functions: // if $use is set to cookie, this variable will be used for the cookie name var $cookieName = 'dummyData'; // if $use is set to cookie, this variable will be used for the cookie params var $cookieParams = {expires: 7}; /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly * @desc Purpose of this function is to set and get cookie data * @see objectToQueryString * @see queryStringToObject */ getSetCookies = function(getOnly){ $.iLogger.log('getSetCookies();'); try{ // if(getOnly){ var tempSiteData = $.cookie($cookieName); if(tempSiteData){ $sitedata = queryStringToObject(tempSiteData); } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); } } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'getSetCookies();'); }; }; // end : getSetCookies Don't have time to explain it right now (wanted to at least answer you), but if you have questions, I can answer them later on today. Ben On 9/25/07, Potluri [EMAIL PROTECTED] wrote: I don't see this is a problem with cookie plugin in particular but this is problem with cookie itself. Suppose this is the array var arr = []; arr.push({name:vj,rollNo:10}); arr.push({name:kr,rollNo:15}); The size of arr is 2 before storing in cookie I tried to store this array object in a cookie as $.cookie(cookieName, arr), and then later when I tried to access the length of array with cookie as var tempArr= $.cookie(cookieName)--which should give array object named arr. and then I tried to alert length of array as alert(tempArr.length); I was expecting size of array to be 2 but surprisingly its returning 31. I printed the value of tempArr like alert(arr=+ tempArr+ len=+tempArr.length). it prints arr=[object Object],[object Object] len=31. When you calculate the each character of [object Object],[object Object] it returns 31. Can any one of you come up with quick solution of how to store array of array objects in a cookie. It'll be greatful. Regards, Vijay -- View this message in context: http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12883618 Sent from the JQuery mailing list archive at Nabble.com. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Validation plugin - alphanumeric password with min length
voltron schrieb: Yes, I added the method, this is what I have now [...] I can't see anything wrong with that. Can you post a test page? It may also help to use the debug-option, just specify validate({ debug: true, ...}). -- Jörn
[jQuery] Re: Open and search a .XML file
Danjojo schrieb: Hi, thank you for helping me begin down this path. Before I use the $.ajax function, do I need to install a codebase for it? Nope, $.ajax is part of jQuery core. Please note that my example code in the success-callback was just that: an example. You need to modify that! What may actually be happening is this: The xml-documented is loaded via AJAX, the success-callback is executed and throws an errors. Depending on the type of errors you may see it on Firebugs console (www.getfirebug.com). If not, try to add this to your document: $().ajaxError(function() { console.log(arguments); }); If that doesn't help to see the actual problem either, please post a test page here. -- Jörn
[jQuery] Re: an Undo plugin, or something as such. :-)
Michael Geary schrieb: I'll tidy up the undo code to make a nice plugin release out of it, but there it is in case anyone wants to take a look at it now. I'd be interested in any feedback on the issues I mentioned in my previous message. (I'd mentioned saving the undo/redo queue in a hidden form field so it survives a soft reload, but now that I look at the code, it doesn't do that. Must have been something I was thinking about doing. The code actually should work with either strings or objects or any type as the undo queue entries.) Interesting stuff Mike! I can imagine quite a few scenarios where that could be used. For example I'm currently working on persisting the treeview plugin in a cookie. Pushing my serialized form to the undo-plugin would be really easy, and the persistence in a hidden field may be even the more appropiate approach in same cases. You could make it an actual plugin that must start with the two buttons as the selected elements, something like this: $.fn.undo = function() { var $undoBtn = this.eq(0), undoBtn = this[0]; var $redoBtn = this.eq(1), redoBtn = this[1]; ... } A bit of documentation about the options and the return value definitely help a lot. -- Jörn
[jQuery] Re: problem with cookie plugin when trying to store array object in cookie
Sorry I didn't understand what you are trying to say. How this solves my problem of storing array of objects into the cookie. Can you try on your side of storing array of objects into cookie, so that later when I try to to retrive value from cookie I need to get array of objects but not string which is what happening right now. Thanks in advance. bmsterling wrote: Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ + objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair + encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'queryStringToObject();'); }; } This is the function that is using the previous functions: // if $use is set to cookie, this variable will be used for the cookie name var $cookieName = 'dummyData'; // if $use is set to cookie, this variable will be used for the cookie params var $cookieParams = {expires: 7}; /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly * @desc Purpose of this function is to set and get cookie data * @see objectToQueryString * @see queryStringToObject */ getSetCookies = function(getOnly){ $.iLogger.log('getSetCookies();'); try{ // if(getOnly){ var tempSiteData = $.cookie($cookieName); if(tempSiteData){ $sitedata = queryStringToObject(tempSiteData); } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); } } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'getSetCookies();'); }; }; // end : getSetCookies Don't have time to explain it right now (wanted to at least answer you), but if you have questions, I can answer them later on today. Ben On 9/25/07, Potluri [EMAIL PROTECTED] wrote: I don't see this is a problem with cookie plugin in particular but this is problem with cookie itself. Suppose this is the array var arr = []; arr.push({name:vj,rollNo:10}); arr.push({name:kr,rollNo:15}); The size of arr is 2 before storing in cookie I tried to store this array object in a cookie as $.cookie(cookieName, arr), and then later when I tried to access the length of array with cookie as var tempArr= $.cookie(cookieName)--which should give array object named arr. and then I tried to alert length of array as alert(tempArr.length); I was expecting size of array to be 2 but surprisingly its returning 31. I printed the value of tempArr like alert(arr=+ tempArr+ len=+tempArr.length). it prints arr=[object Object],[object Object] len=31. When you calculate the each character of [object Object],[object Object] it returns 31. Can any one of you come up with quick solution of how to store array of array objects in a cookie. It'll be greatful. Regards, Vijay -- View this message in context: http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12883618 Sent
[jQuery] How to use the slider i have been supplied with
Hello everyone, I am designing the BBB site and they gave me a template which uses the jquery slider. But unfortunatley they didnt tell me how it works lol. Would anyone know how you would use a slider this way to display results according to day? Im assuming theres definatley ajax involved http://bbb.dlg360.com/temp/news_center.html I am a php guy so If its easy as using ajax to post to a function then its all good, I just need someone to push me in the right direction. Thanks -Anthony
[jQuery] Re: How to use the slider i have been supplied with
I think that version has been upgraded. Check these links: http://docs.jquery.com/UI/Slider http://dev.jquery.com/view/trunk/plugins/ui/demos/ui.slider.html Glen On 9/25/07, Anthony Leboeuf(Worcester Wide Web) [EMAIL PROTECTED] wrote: Hello everyone, I am designing the BBB site and they gave me a template which uses the jquery slider. But unfortunatley they didnt tell me how it works lol. Would anyone know how you would use a slider this way to display results according to day? Im assuming theres definatley ajax involved http://bbb.dlg360.com/temp/news_center.html I am a php guy so If its easy as using ajax to post to a function then its all good, I just need someone to push me in the right direction. Thanks -Anthony
[jQuery] Can we store array of objects into cookie
Hi, I'm having trouble storing array of objects into cookie like var arr = []; arr.push({index:1,name:vijay}); arr.push({index:2,name:krish}); When I'm trying to store array of objects into cookie usin g jquery cookie plugin like $.cookie(arrCookie,arr);, It's not storing array object but a string as [object Object],[object Object] indeed. So, when I'm trying to retrieve the value in cookie its returning a string [object Object],[object Object] which is frustrating. Can anyone of you know a way to store array of objects into cookie. Thanks in advance. Vijay -- View this message in context: http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: How to use the slider i have been supplied with
Nice thanks, I will upgrade it. Do you know how I would actually use it in an application? I see demos which show how to use it but nothing that shows it in production use. Im looking to use it to pull articles Glen Lipka wrote: I think that version has been upgraded. Check these links: http://docs.jquery.com/UI/Slider http://dev.jquery.com/view/trunk/plugins/ui/demos/ui.slider.html Glen On 9/25/07, *Anthony Leboeuf(Worcester Wide Web)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello everyone, I am designing the BBB site and they gave me a template which uses the jquery slider. But unfortunatley they didnt tell me how it works lol. Would anyone know how you would use a slider this way to display results according to day? Im assuming theres definatley ajax involved http://bbb.dlg360.com/temp/news_center.html I am a php guy so If its easy as using ajax to post to a function then its all good, I just need someone to push me in the right direction. Thanks -Anthony
[jQuery] Re: problem with cookie plugin when trying to store array object in cookie
You can't store an Object/Array into a cookie, you will get the result you are currently seeing. The code I provided with convert your object into a querystring, which can be stored, and stores that and when you want to retrieve it, you pass the returned cookie value to the other function and it changes it back to an Object/Array. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Sorry I didn't understand what you are trying to say. How this solves my problem of storing array of objects into the cookie. Can you try on your side of storing array of objects into cookie, so that later when I try to to retrive value from cookie I need to get array of objects but not string which is what happening right now. Thanks in advance. bmsterling wrote: Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ + objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair + encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'queryStringToObject();'); }; } This is the function that is using the previous functions: // if $use is set to cookie, this variable will be used for the cookie name var $cookieName = 'dummyData'; // if $use is set to cookie, this variable will be used for the cookie params var $cookieParams = {expires: 7}; /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly * @desc Purpose of this function is to set and get cookie data * @see objectToQueryString * @see queryStringToObject */ getSetCookies = function(getOnly){ $.iLogger.log('getSetCookies();'); try{ // if(getOnly){ var tempSiteData = $.cookie($cookieName); if(tempSiteData){ $sitedata = queryStringToObject(tempSiteData); } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); } } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'getSetCookies();'); }; }; // end : getSetCookies Don't have time to explain it right now (wanted to at least answer you), but if you have questions, I can answer them later on today. Ben On 9/25/07, Potluri [EMAIL PROTECTED] wrote: I don't see this is a problem with cookie plugin in particular but this is problem with cookie itself. Suppose this is the array var arr = []; arr.push({name:vj,rollNo:10}); arr.push({name:kr,rollNo:15}); The size of arr is 2 before storing in cookie I tried to store this array object in a cookie as $.cookie(cookieName, arr), and then later when I tried to access the length of array with cookie as var tempArr= $.cookie(cookieName)--which should give array object named arr. and then I tried to alert length of array as alert(tempArr.length); I was expecting size of array to be 2 but surprisingly its returning 31. I
[jQuery] Re: Can we store array of objects into cookie
Vijay, I answered your question in your other posting. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Hi, I'm having trouble storing array of objects into cookie like var arr = []; arr.push({index:1,name:vijay}); arr.push({index:2,name:krish}); When I'm trying to store array of objects into cookie usin g jquery cookie plugin like $.cookie(arrCookie,arr);, It's not storing array object but a string as [object Object],[object Object] indeed. So, when I'm trying to retrieve the value in cookie its returning a string [object Object],[object Object] which is frustrating. Can anyone of you know a way to store array of objects into cookie. Thanks in advance. Vijay -- View this message in context: http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643 Sent from the JQuery mailing list archive at Nabble.com. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Tablesorter dd/mm/YYY date problem
Have i write my parser for dd/mm/ date format? The plugin use mm/dd/ either i changing in plugin configs -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Re: problem with cookie plugin when trying to store array object in cookie
Thanks for your great help. But I'm finding hard to know the exact syntax of how to use these functions. Can you tell me exact syntax of how to use these functions objectToQueryString and the function queryStringToObject given the array name arrObject which contains array of objects. Waiting for your response. Thanks in advance. Regards, Vijay Potluri bmsterling wrote: You can't store an Object/Array into a cookie, you will get the result you are currently seeing. The code I provided with convert your object into a querystring, which can be stored, and stores that and when you want to retrieve it, you pass the returned cookie value to the other function and it changes it back to an Object/Array. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Sorry I didn't understand what you are trying to say. How this solves my problem of storing array of objects into the cookie. Can you try on your side of storing array of objects into cookie, so that later when I try to to retrive value from cookie I need to get array of objects but not string which is what happening right now. Thanks in advance. bmsterling wrote: Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ + objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair + encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'queryStringToObject();'); }; } This is the function that is using the previous functions: // if $use is set to cookie, this variable will be used for the cookie name var $cookieName = 'dummyData'; // if $use is set to cookie, this variable will be used for the cookie params var $cookieParams = {expires: 7}; /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly * @desc Purpose of this function is to set and get cookie data * @see objectToQueryString * @see queryStringToObject */ getSetCookies = function(getOnly){ $.iLogger.log('getSetCookies();'); try{ // if(getOnly){ var tempSiteData = $.cookie($cookieName); if(tempSiteData){ $sitedata = queryStringToObject(tempSiteData); } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); } } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'getSetCookies();'); }; }; // end : getSetCookies Don't have time to explain it right now (wanted to at least answer you), but if you have questions, I can answer them later on today. Ben On 9/25/07, Potluri [EMAIL PROTECTED] wrote: I don't see this is a problem with cookie plugin in particular but this is problem with cookie itself. Suppose this is the array var arr = []; arr.push({name:vj,rollNo:10}); arr.push({name:kr,rollNo:15}); The size of arr is 2 before storing in cookie
[jQuery] Re: Validation plugin - alphanumeric password with min length
Here is a test page: http://www.nhytro.de/apache2-default/test_validation.html Thanks On Sep 25, 7:50 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: voltron schrieb: Yes, I added the method, this is what I have now [...] I can't see anything wrong with that. Can you post a test page? It may also help to use the debug-option, just specify validate({ debug: true, ...}). -- Jörn
[jQuery] Validate plugin limited?
Is a limite of how much inputs we can validate? I have a form with 52 questions what is {required:true} very required. In a 29 questions required it works fine! -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Validate plugin limited? with line error
Sorry for my previous email talking about the limitation of Validate plugin with 50 or more elements to validade. Is not an error but the script stops in this line line 487 lem.tagName elem.ownerDocument !elem.ownerDocument.body; jquery-1.2.1 -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Re: an Undo plugin, or something as such. :-)
sdsdfsdfds Date: Mon, 24 Sep 2007 22:08:06 +0200 From: [EMAIL PROTECTED] To: jquery-en@googlegroups.com Subject: [jQuery] Re: an Undo plugin, or something as such. :-) Steve Finkelstein schrieb: Hi all, I was curious if there is anyone currently working on an 'Undo' type plugin for the jQuery platform. Essentially, similar functionality to what gmail offers is desired by many. If not in the works, I wouldn't mind giving it a shot myself. Implementing an undo functionality requires quite some work on the serverside, as it is always some persistent state that is undone. Where do you think could a jQuery plugin help to implement that? -- Jörn _ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true
[jQuery] Re: problem with cookie plugin when trying to store array object in cookie
I have a variable $sitedata, an object, that is structured like: { 'fname':null, 'lname':null, moduleLevel: { bPassed: null, bContentComplete: null, iNumAttempts: null, dDateStart: month + / + day + / + year,//6/25/2007, dDateEnd: null, sTestTaken: null, sTestPassed: null, sPageViewed: null }, lessonLevel:{ _0_0:{ iLessonRef: 0, iTopicRef: 0, bIsDone: 0, sInlineQuiz: '0', sPageRef: 0 } } } Now, to get the object into a cookie we need to convert it to a querysting, like: objectToQueryString($sitedata,) which will return something like: fname=benjaminlname=sterling etc If used like below: $.cookie('myCookie', objectToQueryString(myObject,)); Now our cookie is set, now we want to grab it again: var tempSiteData = $.cookie('myCookie'); now we turn our querysting (fname=benjaminlname=sterling) myObject = queryStringToObject(tempSiteData); into: { fname :'benjamin', lname :'sterling', etc... } Let me know if you understand. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Thanks for your great help. But I'm finding hard to know the exact syntax of how to use these functions. Can you tell me exact syntax of how to use these functions objectToQueryString and the function queryStringToObject given the array name arrObject which contains array of objects. Waiting for your response. Thanks in advance. Regards, Vijay Potluri bmsterling wrote: You can't store an Object/Array into a cookie, you will get the result you are currently seeing. The code I provided with convert your object into a querystring, which can be stored, and stores that and when you want to retrieve it, you pass the returned cookie value to the other function and it changes it back to an Object/Array. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Sorry I didn't understand what you are trying to say. How this solves my problem of storing array of objects into the cookie. Can you try on your side of storing array of objects into cookie, so that later when I try to to retrive value from cookie I need to get array of objects but not string which is what happening right now. Thanks in advance. bmsterling wrote: Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ + objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair + encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'queryStringToObject();'); }; } This is the function that is using the previous functions: // if $use is set to cookie, this variable will be used for the cookie name var $cookieName = 'dummyData'; // if $use is set to cookie, this variable will be used for the cookie params var $cookieParams = {expires: 7}; /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly *
[jQuery] Re: Can we store array of objects into cookie
Hi can you please tell me the syntax of calling these functions. I tried to do the following. var $cookieName = arrCookie //Assuming this is the cookie name where the value of the cookie is been set like in my case value should be array of objects?. 1 how to set value of this cookie ? I copied all the functions given by you sterilizeQueryString = function(input,splitter,pair){ try{ if(typeof input != 'string') return null; if(!splitter){ splitter = ; } if(!pair) pair ==; var a = input.split(splitter), b = Array(); for(var i=0; i a.length; i++)a[i] = a[i].split(pair); for(var i = 0; i a.length; i++) b[a[i][0]] = a[i][1]; return b; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error','sterilizeQueryString();'); }; }; objectToQueryString = function( a , joiner, pair) { try{ var s = []; if(!pair) pair ==; if((typeof a == object)){ for(var j in a){ if(typeof a[j] == object a[j]){ s.push(encodeURIComponent(j) + pair + __ +objectToQueryString(a[j],**,##) +__); } else{ s.push( encodeURIComponent(j) + pair +encodeURIComponent( a[j] ) ); } }; return s.join(joiner); } else{ return a; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error','objectToQueryString();'); }; }; queryStringToObject = function(s){ try{ if(s typeof s == string){ s = sterilizeQueryString(s); for(var j in s){ if(/__(.*)__/.test(s[j])){ s[j] = s[j].replace(/__/g,); s[j] = sterilizeQueryString(s[j],**,##) }; }; return s; } else{ return s; }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error','queryStringToObject();'); }; } /** * @name getSetCookies * @example getSetCookies(); * @param {Boolean} getOnly * @desc Purpose of this function is to set and get cookie data * @see objectToQueryString * @see queryStringToObject */ getSetCookies = function(getOnly){ $.iLogger.log('getSetCookies();'); try{ // if(getOnly){ var tempSiteData = $.cookie($cookieName); if(tempSiteData){ $sitedata = queryStringToObject(tempSiteData); } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); } } else{ $.cookie($cookieName, objectToQueryString($sitedata,), $cookieParams); }; } catch(e){ $.iLogger.log(e.name + ': ' + e.message, 'error', 'getSetCookies();'); }; }; // end : getSetCookies I've doubt like do I need to use only getSetCookies function to get and set the object of array from cookie. or As of my assumption getSetCookies(false) should be used to set the value of cookie to query string. and getSetCookies(true) should bring back the array of object. I think I'm missing something like how to set the value of cookie to be object of array and whats the exact syntax of how to make this work after copying the functions you've given. Thanks. bmsterling wrote: Vijay, I answered your question in your other posting. On 9/25/07, Potluri [EMAIL PROTECTED] wrote: Hi, I'm having trouble storing array of objects into cookie like var arr = []; arr.push({index:1,name:vijay}); arr.push({index:2,name:krish}); When I'm trying to store array of objects into cookie usin g jquery cookie plugin like $.cookie(arrCookie,arr);, It's not storing array object but a string as [object Object],[object Object] indeed. So, when I'm trying to retrieve the value in cookie its returning a string [object Object],[object Object] which is frustrating. Can anyone of you know a way to store array of objects into cookie. Thanks in advance. Vijay -- View this message in context: http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643 Sent from the JQuery mailing list archive at Nabble.com. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com -- View this message in context: http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12889163 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Validation plugin - alphanumeric password with min length
voltron schrieb: Here is a test page: http://www.nhytro.de/apache2-default/test_validation.html I get missing } after function body on line 24 of test.js via Firebug console (www.getfirebug.com). -- Jörn
[jQuery] Re: Validate plugin limited? with line error
Jean schrieb: Sorry for my previous email talking about the limitation of Validate plugin with 50 or more elements to validade. Is not an error but the script stops in this line Can you post a test page for that issue? -- Jörn
[jQuery] dimensions issue?
[Exception... 'Dimensions: jQuery collection is empty' when calling method: [nsIDOMEventListener::handleEvent] nsresult: 0x8057001e (NS_ERROR_XPC_JS_THREW_STRING) location: unknown data: no] anyone know why this would happen? here is that this happens on: $('.input:eq(' + index + ')').livequery('click', function() { if($('#' + indexs[index] + '_list').css('display') === 'none' $('#' + indexs[index] + '_list').text() != '') { //alert('start'); var my_element = $('[EMAIL PROTECTED]' + indexs[index] +']').parent('div'); var offset = my_element.offset(); var height = my_element.height(); var top = offset.top + height; var left = offset.left; $('#' + indexs[index] + '_list').css({'display': 'block', 'top': top, 'left': left, 'z-index': 2, 'border': '2px solid black'}); //alert('end'); } else { $('#' + indexs[index] + '_list').css({'display': 'none'}); } }); -- View this message in context: http://www.nabble.com/dimensions-issue--tf4518540s15494.html#a12889201 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] curvycorners wierd safari thing
hi all, im trying to get the curvy corners plugin to work in safari and cant seem to do it. I use the code below and it works fine in all browsers but Safari $(document).ready(function(){ var settings = { tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: false, validTags: [div] } $(#home-innerLeft).curvy(settings); $(#curved-right1).curvy(settings); $(#curved-right2).curvy(settings); $(#curved-right3).curvy(settings); }); it works only for the first line, ie.. #home-innerLeft gets curved fine, and if i change the order the first one each time works, but i cant see why - any ideas or do i have the syntax wrong? just to repeat - the above code works a treat in ie6/7/ff/opera :S -- View this message in context: http://www.nabble.com/curvycorners-wierd-safari-thing-tf4514708s15494.html#a12876944 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: New Plugin: Picklists
I think I can help with a suggestion. When I came in as a first time user. I worked the first example up top fine (the one with just the submit button). Very fast, nice. Then I went to the second one. At first thought it was similar. Add a few then saw I could remove. So I tried removing from the top select pane 2 or 3 times. I would move the Remove Item button down below the bottom pane so it is obvious it is used to remove items from that pane. I like it a lot. I would just call it MultiSelect. On Sep 25, 6:28 am, george.gsgd [EMAIL PROTECTED] wrote: Ah, that's interesting, hadn't thought of using it other than onload, will have a look at that, thanks. I think I've got to use html() to transfer the options so I can preserve any optgroups, but I'll have a good look at your code. On Sep 24, 6:25 pm, Leonardo K [EMAIL PROTECTED] wrote: I have a suggestion: Example: If u have a select multiple with few options already selected. When the plugin is activeted it move all options to another select but it lose all options selected before. Instead of this: function moveAllOptions(from, to) { jQuery(#+to).html(jQuery(#+from).html()) .find('option:selected') .attr(selected, false); jQuery(#+from).html(''); } change for: function moveAllOptions(from, to) { var dest = jQuery(#+to); jQuery(#+from).find(option).each(function(){ dest.append(this); }); jQuery(#+from).html(''); if (dest.find(option:selected).size() = 1) addTo(to, from); } I dont know if I make myself clear. On 9/24/07, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 24, 4:12 pm, george.gsgd [EMAIL PROTECTED] wrote: Can anyone help me come up with a better name for this? I struggled to come up with 'Picklists', and I'm not sure it's particularly descriptive or obvious... a) Linked Selection? b) Chained Selection? c) ... err... Natural Selection? ;) d) s2s: Select To Select (sounds like an ATT calling plan) That's pretty slick, by the way. :)- Hide quoted text - - Show quoted text -
[jQuery] $.ajax ?
Before I use the $.ajax function, do I need to install a codebase for it? I notice it is similar to Klaus Hartl cookie plugin, where I install his codebase, then use it later like var country = $.cookie('language'); When I start to use this code it seems almost like the rest of the working jQuery portions of the web page stop working. $.ajax({ url: language_sheet_en.xml, dataType: xml; success: function(xmlDocument){ $(xmlDocument).find(...).dosomeThing(...); } }); Do I need to install an ajax library or is it allready available in my jQuery build: * jQuery 1.1.3.1 Thank you.
[jQuery] Re: Avoid enter keypress to submit form
Yes, I think you can do it in many ways... 1. remove input type='submit'/ button. Then the enter will not invoke form's submit. But you should add form submit function in somewhere. 2. You can catch the 13 keycode in any element's key event, not only window object. On 9月25日, 下午1时05分, Fabien Meghazi [EMAIL PROTECTED] wrote: Hi, Is there an non javascript way to avoid enter keystroke in an input to trigger the form submit or am I forced to catch keystroke code 13 in javascript ? If force to do in javascript, is there a way to catch keystroke event of only one input and not window object ? Is there already a jquery plugin for this ? Regards. -- Fabien Meghazi Website:http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]
[jQuery] Re: Open and search a .XML file
I am continuing to read the documentation at http://docs.jquery.com/Specifying_the_Data_Type_for_AJAX_Requests On Sep 24, 4:02 pm, Danjojo [EMAIL PROTECTED] wrote: Hi, thank you for helping me begin down this path. Before I use the $.ajax function, do I need to install a codebase for it? I notice it is similar to Klaus Hartl cookie plugin, where I install his codebase, then use it later like var country = $.cookie('language'); When I start to use this code it seems almost like the rest of the working jQuery portions of the web page stop working. //$.ajax({ //url: language_sheet_en.xml, //dataType: xml; //success: function(xmlDocument){ // $(xmlDocument).find(...).dosomeThing(...); //} //}); Do I need to install an ajax library or is it allready available in my jQuery build: * jQuery 1.1.3.1 Thank you. On Sep 20, 2:18 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Danjojo schrieb: Can anyone provide me a link of how to open an xml file using JQuery? Try this: $.ajax({ url: file.xml, dataType: xml, success: function(xmlDocument) { $(xmlDocument).find(...).dosomeThing(...); } }); http://docs.jquery.com/Ajax/jQuery.ajax#options -- Jörn- Hide quoted text - - Show quoted text -
[jQuery] Re: jQuery and XML revisited (tutorial)
Thank you. I will have a look. On Sep 24, 9:21 pm, Giant Jam Sandwich [EMAIL PROTECTED] wrote: This is a tutorial I posted this evening. I thought I might throw it up here in case anyone was interested. http://blog.reindel.com/2007/09/24/jquery-and-xml-revisited/ Brian Reindel d'bug @ blog.reindel.com
[jQuery] Re: How to use google group ?
The other Frenchman is hiding. :) Your message showed up fine. On Sep 25, 5:43 am, Fabrizio [EMAIL PROTECTED] wrote: Hello , I try to use this google group and it's the first time I use a google group. I wrote 3 differents message. I have a reply on only one of this but I never seen my new message on the list of the discussion. If some body could help to teacth me how the group and the discussion works ? I m French so if a frenchy could reply just one time in french i'll be very glad !!! Thank you !!! Fabrizio
[jQuery] Re: Avoid enter keypress to submit form
2ways. 1. remove the type=submit button. you need to also use javascript to submit form. 2. add key down, key up etc. on any elements you want to avoid enter, not only window. On 9月25日, 下午1时05分, Fabien Meghazi [EMAIL PROTECTED] wrote: Hi, Is there an non javascript way to avoid enter keystroke in an input to trigger the form submit or am I forced to catch keystroke code 13 in javascript ? If force to do in javascript, is there a way to catch keystroke event of only one input and not window object ? Is there already a jquery plugin for this ? Regards. -- Fabien Meghazi Website:http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]
[jQuery] curvycorners wierd safari thing
hi all, im trying to get the curvy corners plugin to work in safari and cant seem to do it. I use the code below and it works fine in all browsers but Safari $(document).ready(function(){ var settings = { tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: false, validTags: [div] } $(#home-innerLeft).curvy(settings); $(#curved-right1).curvy(settings); $(#curved-right2).curvy(settings); $(#curved-right3).curvy(settings); }); it works only for the first line, ie.. #home-innerLeft gets curved fine, and if i change the order the first one each time works, but i cant see why - any ideas or do i have the syntax wrong? just to repeat - the above code works a treat in ie6/7/ff/opera :S
[jQuery] Re: Avoid enter keypress to submit form
Is there an non javascript way to avoid enter keystroke in an input to trigger the form submit or am I forced to catch keystroke code 13 in javascript ? If force to do in javascript, is there a way to catch keystroke event of only one input and not window object ? Is there already a jquery plugin for this ? -- document.onkeypress = function(e) { if (e.keyCode=='13') { x = e||window.event; t = x.target||x.srcElement; if ($(t).parents('#foo').is('#foo')) { alert('foo form'); doActionOnlyOnFooForm(); } } } form id=foo method=get action=# input / /form form id=bar method=get action=# input / /form - ... or something like that (I didnt check) Regards Michael
[jQuery] Re: How to use google group ?
On Sep 25, 5:43 am, Fabrizio [EMAIL PROTECTED] wrote: I try to use this google group and it's the first time I use a google group. I wrote 3 differents message. I have a reply on only one of this but I never seen my new message on the list of the discussion. If some body could help to teacth me how the group and the discussion works ? I m French so if a frenchy could reply just one time in french i'll be very glad !!! Sorry, no sprecken ze French, but: Google Groups take some time--somewhere between a few minutes to a few hours to never--to post your message. It's slow, but it's free. One of the jQuery users has started a forum at http://jqueryhelp.com/ - it doesn't have a whole lot of activity, yet, but it only started. However, I have yet to see an unanswered post on there. Pyro Pyro
[jQuery] Focusfields
Hello all, I'm new to jquery, so forgive me if I'm asking questions which have been asked a thousand times. I've searched through the list archives and not had much luck with this one. I'm using the focusfields plugin, which I found here: http://www.texotela.co.uk/code/jquery/focusfields/ It works great on Firefox, Camino, etc., and the demo works fine on IE. But in my test setup, I get this error: 'this.parentNode.borderCss.off' is null or not an object Error comes up as soon as the page loads. I'm using jQuery 1.2 on my server, which is the one difference I found from the demo page (which seems to be calling jquery-1.1.2.pack.js). If this possibly a version difference, and the newer version doesn't deal as well with IE? Hope someone has some ideas, Charles
[jQuery] $.ajax url: ?
Hi guys, In the same way I have used the cookie value to set which country flag image is used, could I also alter the url: value in the $.ajax funtion? var country = $.cookie('language'); // get cookie $('#countryFlag').attr(src, images/ + country + .gif); $.ajax({ type: GET, url: language_sheet_en.xml, dataType: xml, success: function(xmlDocument){ alert(Hello World); //$(xmlDocument).find(...).dosomeThing(...) } }); So if japan was selected in the language drop down box the document name would become language_sheet_jp.xml Thank you.
[jQuery] Re: IT Assistant
The site is too slow. Look into some benchmarks. On Sep 24, 7:17 am, Gordon [EMAIL PROTECTED] wrote: Well it's finally ready enough to go live so now I can plug the big jQuery-driven project I've been working on. It's called IT Assistant and is intended to make shopping to IT equipment easier (and more fun from the comments I've had back on it so far :) ). http://www.pcwb.com/assistants/ the product selector page is almost entirely jQuery driven. The follow up pages (accessories, upgrades, etc) are server-side based but they do make use of Thickbox for displaying Flash movies.
[jQuery] return var from $.get
Hi Im newbie with Javascript/jQuery so this question may be lame... I have something like that: $.get('istracked.php',{'code': code}, function(data) { if (data=='true') { r=true; } }); How can I use r outside $.get ? $.get returns XMLHttpRequest at the moment I know only one solution: inside of $.get: $('body').append('span class=temp style=display: none;'+r+'/ span'); and outside r=$('span.temp').html(); Do you know how to solve my problem in proper way? TIA Michael
[jQuery] Re: slide to the left!
Hi! That does the trick! thank you! On Sep 25, 3:25 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Sep 25, 2007, at 4:14 AM, Simpel wrote: Hi everybody I'm looking for a plugin or something like that witch has the same functionality as the categories onhttp://www.deviantart.com/(click on categories on the upper left side of the site...) What I'm after is the functionality that when you click a category it slides to the left and the subcategories appear with a back link. It would be great if it works with an unordered list!! I've been trying to mod the accordion plug in but I just won't get it right! so...any help would be much appreciated! Thanks in advance! /Simpel Hi there, I think this plugin does what you're looking for: http://www.webappers.com/2007/09/05/smooth-and-clean-fastfind-menu- jquery-plugin/ --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com
[jQuery] Re: jQuery().evalScripts is not a function (AjaxFileUpload and jquery 1.2)
Thanks a lot! On Sep 25, 7:43 pm, John Resig [EMAIL PROTECTED] wrote: Sure, use the 1.1 compatibility plugin:http://dev.jquery.com/browser/trunk/plugins/compat-1.1/jquery.compat-... --John On 9/25/07, deerchao [EMAIL PROTECTED] wrote: Hi, I'm using AjaxFileUpload fromhttp://www.phpletter.com/Demo/AjaxFileUpload-Demo/ , which is listed in the plugins page, and uses jQuery 1.1.3. With jQuery 1.2, I always get a TypeError says jQuery(div).html(data).evalScripts is not a function. Is there any way out? Thaks!
[jQuery] Re: Select event on SELECT box
I meant something like mouseover - mouseout but in the context of keybord celection I used deselect phrase... Ill try this in a minute, thank you On Sep 24, 4:48 pm, Glen Lipka [EMAIL PROTECTED] wrote: Check out this page to see the available events:http://docs.jquery.com/Events One you will probably need is $(select).change(... That fires when the user selects an option with keyboard or mouse. What do you mean de-select? Glen On 9/23/07, luigi7up [EMAIL PROTECTED] wrote: Hi, Im having problems SELECT box. I have few options in my box. Some of them have class=unavailable and for those I want to trigger an event. When you select option with that class: //Do something When you deselect it: //do something else I would like to find a solution for keybord and mouse select Thank you
[jQuery] Re: jQuery for Floating Div
Actually, Amazon looks the same again. I wonder what they're up to over there On 9/25/07, Glen Lipka [EMAIL PROTECTED] wrote: If amazon took theirs down, you can still see a similar example on Microsoft. Wow, microsoft just changed their site pretty heavily. Try here http://msdn2.microsoft.com/en-us/default.aspx They optimize for IE7 of course. Top right link. Glen On 9/24/07, Pete Bekisz [EMAIL PROTECTED] wrote: Glen -- That's really slick! I don't think I'll be able to use it on this project though, but I think it's great for a quicklinks feature. It just pulled up Intuit -- what a slick site! On 9/24/07, Glen Lipka [EMAIL PROTECTED] wrote: Sorry Karl. I just grabbed the one that came up first in google. :) Yeah, that amazon effect is really useful. I tried to do that with Intuit, but couldn't figure it out, so I ended up with the slideLinks instead. These did very well in usability studies. Unexpected wow. http://www.commadot.com/jquery/slideMenu.php (click links at top) Pete, even though its not what you asked for, it might be a good choice. Glen On 9/24/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hey Glen, That's actually a pretty old version of the plugin. A new(er) and improved version can be found here: http://plugins.learningjquery.com/cluetip/demo/ Pete, Check out that URL above and click on the Examples link at the top of the page. Then hover over the link that says sort of like amazon.com? under the Custom (temporary) section. Maybe that's something close to what you're looking for? One of these days when I'm not swamped with freelance work, I'd like to write a stripped-down plugin that just does that amazon.comthing. A bunch of people have already asked for it. Cheers, --Karl On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote: That's a nice effect. I have been trying to do something like that too. Microsoft does a very similar thing. Some helpful plugins to check out: 1. Hoverintent. Slows down the interaction to make sure the user intended to mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html 2. ClueTip. Shows one example of popup hovers like that. http://examples.learningjquery.com/62/demo/ There may be other plugins that help. I am interested in this if you nail it. Glen On 9/24/07, Pete [EMAIL PROTECTED] wrote: Hi all, I'm trying to construct a popover menu that resembles the one on Amazon.com (put your mouse over see all 43 product categories). I'm not too familiar with jQuery/JavaScript, but I thought I would be able to do something like this: $(document).ready(function(){ $(#link).mouseover(function(){ $(#popup_menu).show(); return false; }); $(#popup_menu).mouseout(function(){ $(this).hide(); return false; }); }); The problem is, as soon as you move your mouse off the link to go into the div, it collapses. Could someone please offer some examples/ insight? If you'd like to see the page, here's a link: http://www.keuka.edu/pete/jquery_float.html Thanks!
[jQuery] Re: strange slice and eq behavior with star ratings + jQuery 1.2.1
I've discovered the cause of the problem... slice() and eq() require the arguments to be integers, and do not properly handle strings which happen to only hold integers. eq(3) != eq('3') In my example, my problem is solved by doing the following: stars.eq(parseInt(averageIndex)).addClass('on').children('a').css('width', percent + %); Which forces an integer value to be passed to eq(). I'm not sure that this is a bug, but it is certainly not very friendly... On Sep 24, 4:38 pm, Jim Spath [EMAIL PROTECTED] wrote: There is a line in the (Wil Stuckey's) star ratings plugin that looks like this: stars.eq(averageIndex).addClass('on').children('a').css('width', percent + %); I found that the eq() function was not returning 1 item, but rather all matching items from averageIndex to the end of the items. My first thought was that perhaps a bug was introduced when eq() was removed then readded. so I changed it to use a slice: stars.slice(averageIndex, averageIndex + 1).addClass('on').children('a').css('width', percent + %); To my dismay, slice() was also refusing to return a single item! I decided at this point to try implementing this functionality via a selector: $('div.star:eq('+averageIndex +')').addClass('on').children('a').css('width', percent + %); This worked and only returned the single item I cared about. It seems like something is very wrong for eq() and slice(x, x+1) to both return more than a single element? How can this possibly occur? - Jim
[jQuery] Re: jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready
No, I used the 'places the scripts at the end of the inserted HTML' method that I didn't want to use. It works, but this may be something that the developers will want to tweak. Thanks for all your suggestions though. On Sep 21, 4:18 am, Andy [EMAIL PROTECTED] wrote: Benjam, Did you have any luck resolving this issue other than using the setTimeout method? thanks. On Sep 17, 11:20 pm,benjam[EMAIL PROTECTED] wrote: I have a script that runs a clickable calendar date field, and this script is being called in a form that is passed through AJAX. When the form html is returned from the AJAX script, it is added to the page and displayed. The problem is that the script (which cames after the input field it is referring to) is trying to look for said input field and is failing to find it. This leads me to believe that the javascript is being run before the html has been fully integrated into the page, which is also why there is nothing shown on the page when the errors pop up. Here is a sample of the script that is being run: input name=startedDate id=f-calendar-field-8da04fa6e1 class=datedDate value=1969-12-31 type=text /a href=# id=f- calendar-trigger-8da04fa6e1img border=0 src=./jscalendar/ calendar.png alt=Select Date //ascript type=text/ javascriptCalendar.setup({ ifFormat : %Y-%m-%d, daFormat : %Y/ %m/%d, firstDay : 0, showOthers : true, inputField : f- calendar-field-8da04fa6e1, button : f-calendar- trigger-8da04fa6e1} );/script Is there a way to delay eval of the scripts until after the html content has been integrated into the page?
[jQuery] input type text toUpperCase() jquery question
As a user types in content to this this text field I would like tho force the text to uppercase to as keys are pressed. How would this be done? and is toUpperCase a real jquery function? if not wbhat would be a simple way to hndle this with either CSS or someother method... Here is what I have and obviously I am stuck... script type=text/javascript $(document).ready(function() { $('.highball').keypress( function() { $('.highball').toUpperCase() } ); } ); /script input type=text style= class=ac_input highball autocomplete=off id=CityLocal value= type=text Frank
[jQuery] Plugin to format date string
I seem to recall seeing a plugin that would take a date-entry form field and reformat the date the user enters according to a predefined date format. Am I making that up? I can't seem to find it now. -- Owen
[jQuery] Re: jCarousel Lite - version 1.0
Is it planned an upgrade for jQuery 1.2? :(
[jQuery] In regards to xml design
If I am purposing to consume XML it seems logical that the XML be designed the best that it can FIRST before consuming with more complex javascript, xpath, or your flavor of the month. In that regard is what I have desinged easy to consume using jquery/ ajax? topNavLinks topNavLinkHomeSMC Home/topNavLinkHome topNavLinkLoginLogin/topNavLinkLogin topNavLinkTrackingOrder Tracking/topNavLinkTracking topNavLinkMyPartsMy Parts List/topNavLinkMyParts topNavLinkContactContact/topNavLinkContact topNavLinkHelpHelp/topNavLinkHelp topNavLinkAccountYour Account/topNavLinkAccount /topNavLinks Or would I have an easier time (esspecially being more of a developer than a programmer) if my xml was done like this. topNavLinks topLink valUrl=''homeSMC Home/topLink topLink valUrl=''loginLogin/topLink topLink valUrl=''orderOrder Tracking/topLink topLink valUrl=''partsMy Parts List/topLink topLink valUrl=''contactContact/topLink topLink valUrl=''helpHelp/topLink topLink valUrl=''accountYour Account/topLink /topNavLinks From a dom perspective would it be easier to process the secont xml example? Or would the first one be just as easy whereby you could return the innertext value of every child of topNavLinks ?? Hope I am clear enough. Thank you.
[jQuery] Replace XPath Selectors and Removed DOM Traversal Methods
Was the main reason for the removal of XPath from the jQuery library to keep the core library small?
[jQuery] weird problem with remove or toggle Class
I ve just downloaded new version of jquery 1.2.1 and i tried to do sth like that menu div class=submenu hidden div zamknij wyloguj start !-- trzeba zadbac aby przy relodowaniu nie ubic sesji -- /div div kontrahent zamowienie produkt dokumenty wynik wyszukiwania /div /div and my simple code in JQ is $(function(){ $('#open_menu').click(function(){ var $r = $(this).next().filter('div'); $r.removeClass('hidden'); }); }); result is that i dont have any errors or warning in js console, the sub menu is showing itself and suddenly after that page reloads itself due to something i really don't know. if I change code to something like that: $(function(){ $('#open_menu').click(function(){ $(this).next().filter('div').removeClass('hidden'); }); }); then I have this: FIREBUG WARNING: [Exception... Component returned failure code: 0x8000 (NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode] nsresult: 0x8000 (NS_ERROR_UNEXPECTED) location: JS frame :: chrome://firebug/content/lib.js :: anonymous :: line 191 data: no] Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: Line: 1 Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: javascript: with (__scope__.vars) { with (__scope__.api) { with (__scope__.userVars) { with (window) {try {__scope__.callback(eval(__scope__.expr));} catch (exc) {__scope__.callback(exc, true);} Line: 1 come one, what is wrong with my code or with that lib
[jQuery] Using interface for tooltips: tips appear under form dropdowns?
I'm using the latest jQuery and Interface. When I hover over an area with a ToolTip function assigned -- which works great -- the tooltip appears over most of the page, but under any dropdown lists on the form. Is there a good way around this? I've searched the archives, and only found one mention of a different plug-in that has fixing this problem on their to-do list. Thanks! jsandppr
[jQuery] $(function()
2 Questions. 1. are there the correct number of parenthesis in this code. Is there a syntax error? It runs fine.. 2. What is this idea of wrapping the code in like a blank function() with no name? The one the looks like $function() ? I don't understand it and I want to. Being a noob javascript coder I understand functions like: function myCall() { // etc } $(function() { $(#languages).bind('change', function() { var country = $(this).val(); if(country) { $('#countryFlag').attr(src, images/ + country + .gif); $.cookie('language', country, {expires: 7}); // set cookie } }); });
[jQuery] weird problem with remove or toggle Class
I ve just downloaded new version of jquery 1.2.1 and i tried to do sth like that menu div class=submenu hidden div zamknij login.html?form_action=logout wyloguj start.html start !-- trzeba zadbac aby przy relodowaniu nie ubic sesji -- /div div kontrahent zamowienie produkt dokumenty wynik wyszukiwania /div /div and my simple code in JQ is $(function(){ $('#open_menu').click(function(){ var $r = $(this).next().filter('div'); $r.removeClass('hidden'); }); }); result is that i dont have any errors or warning in js console, the sub menu is showing itself and suddenly after that page reloads itself due to something i really don't know. if I change code to something like that: $(function(){ $('#open_menu').click(function(){ $(this).next().filter('div').removeClass('hidden'); }); }); then I have this: FIREBUG WARNING: [Exception... Component returned failure code: 0x8000 (NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode] nsresult: 0x8000 (NS_ERROR_UNEXPECTED) location: JS frame :: chrome://firebug/content/lib.js :: anonymous :: line 191 data: no] Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: Line: 1 Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: javascript: with (__scope__.vars) { with (__scope__.api) { with (__scope__.userVars) { with (window) {try {__scope__.callback(eval(__scope__.expr));} catch (exc) {__scope__.callback(exc, true);} Line: 1 come one, what is wrong with my code or with that lib -- View this message in context: http://www.nabble.com/weird-problem-with-remove-or-toggle-Class-tf4517184s15494.html#a12885125 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] jquery ajax problem
Hello everyone, I think Ill go go nuts! I already posted something about problem Im facing with but I didn't get the right answer so Ill try again by expaining my problem further. My PHP website is organised in following manner: MAin file is index.php and it includes other files. So, my components are included by setting URL for example index.php? kom=gallery. Everything in gallery file (and all others) is printed into global variable $htmlOutput.= and is echoed at the end of execution of index.php. Gallery file, for example, runs switch($_POST[task]) and calls different functions depending on value of ($_POST[task]. One function outputs HTML form where you can input username. I want to check if username is already taken by querying my database. Normal check would be by pressing submit button but I want ajax to check availability and to output message. For ajax check I've set a function fAjaxCheck() that is triggered by $_POST[task] = ajaxCheck. That function looks like this ajaxCheck() { //Find if DB has that us ername //if database returns so mething it means tahat usuername is already taken if(empty($result)) { //Username taken echo no; exit; } else { //Username ok echo yes; exit; } } I get my index php page html as a result!!! This is jquery Im using: $.post(\index.php?kom=gallery\, { task:'is_username_taken',username: $('#username').val()}, function(data){ alert(data); }) I can't understand why do I keep getting this result. exit() at the and of if/else should stop script from working and my $htmlOutput variable at the end of index.php sholud never be echoed. Do you have any idea how to solve this? Why do I get all that html when I shold be geting only things from my ajaxCheck() function, thing I explicitly echo!? Thank you and sory for the trouble...
[jQuery] Event Delegation and this question
Hi there. I'm currently working on a site where I load in a series of links (in a list) with some pagination links underneath (a.pagination) into a div via an ajax request. In order to bind click events to the anchors with a class pagination, I've used the technique outlined on the jQuery website, whereby I attach a click to the body, and then test the event.target. Like so... $(body).click ( function(event) { //PAGINATION if ($(event.target).is(a.pagination)) { $(this).parent().load($(this).attr(href)); return false; } } ); This code does not work, and I believe the problem lies with the use of the this keyword - could it be I'm referring to the body element. As the content is loaded into the parent of the links, I need a solution based along these lines... so any help would be very much appreciated.