[jQuery] Re: Toggle Only the dd below the dt on click
try it this way: script type=text/javascript $(function(){ $('[EMAIL PROTECTED]http://;]').attr('target', '_blank'); $('[EMAIL PROTECTED]https://;]').attr('target', '_blank'); $(.stripes dd).hide(); $(.stripes dt).click(function(){$ (this).nextAll(dd).toggle(slow); }); }); /script On 19 Sep., 05:24, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably a noob question but... I have a bunch of definition lists on a page with the same class so that I can stripe every other dd in the list. What I want to do is hide the dd elements and when I click on the dt toggle the dd elements to visible. I want this to happen only on the dd elements in the same definition list as the title I am clicking, not all the dd elements on the entire page. What is happening now is that all of the dd in all of my definition lists are being toggled when I click on any of the dt elements on the page. I am sure this is a simple solution, but I can't seem to wrap my head around it. The code is below. script type=text/javascript $(function(){ $('[EMAIL PROTECTED]http://;]').attr('target', '_blank'); $('[EMAIL PROTECTED]https://;]').attr('target', '_blank'); $(.stripes dd).hide(); $(.stripes dt).click(function(){$(.stripes dd).toggle(slow); });}); /script Thanks for your help! -Paul
[jQuery] Re: jquery.com incredibly slow for me
Karl Swedberg schrieb: Please take a look at this post, which provides links to a number of alternative resources for jQuery documentation, including an Adobe Air app for offline browsing: http://www.learningjquery.com/2008/07/jquery-documentation-alternatives Sorry, i missed that completely. Is that already linked on the Wiki / Help page (docs.jquery.com) ? If not, i'd vote for it. -- micha
[jQuery] Re: Toggle Only the dd below the dt on click
This worked perfectly! I thought it was probably something using 'next.' Thanks for the help! On Sep 19, 4:58 am, tobaco [EMAIL PROTECTED] wrote: try it this way: script type=text/javascript $(function(){ $('[EMAIL PROTECTED]http://;]').attr('target', '_blank'); $('[EMAIL PROTECTED]https://;]').attr('target', '_blank'); $(.stripes dd).hide(); $(.stripes dt).click(function(){$ (this).nextAll(dd).toggle(slow); }); }); /script On 19 Sep., 05:24, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably a noob question but... I have a bunch of definition lists on a page with the same class so that I can stripe every other dd in the list. What I want to do is hide the dd elements and when I click on the dt toggle the dd elements to visible. I want this to happen only on the dd elements in the same definition list as the title I am clicking, not all the dd elements on the entire page. What is happening now is that all of the dd in all of my definition lists are being toggled when I click on any of the dt elements on the page. I am sure this is a simple solution, but I can't seem to wrap my head around it. The code is below. script type=text/javascript $(function(){ $('[EMAIL PROTECTED]http://;]').attr('target', '_blank'); $('[EMAIL PROTECTED]https://;]').attr('target', '_blank'); $(.stripes dd).hide(); $(.stripes dt).click(function(){$(.stripes dd).toggle(slow); });}); /script Thanks for your help! -Paul
[jQuery] Re: puzzling black hole in $(...).hasClass()?
thank you so much. i guess an exception should be thrown---some obvious action taken. sometimes you do something wrong, and all you get is a pointer to an non-obvious location with your minified jquery.js. a message would be so much more helpful. and this particular case is much worse as execution just fails silently, untraceably. cheers ~flow On Sep 19, 3:35 am, Dave Methvin [EMAIL PROTECTED] wrote: the argument to `hasClass` is problematic: it uses selector-syntax and starts with a dot. this is a mistake that easily results from copy-n- pasting code. acceptable reactions of jQuery to this would be responding with something like `null`, `undefined`, or `false`, or raising an exception for having been passed a bogus argument. I filed a bug on this, it was pretty easy to repro. http://dev.jquery.com/ticket/3380
[jQuery] Re: Show image gradually
Thanks for your help! jQuery UI is a separate plugin ? On Sep 19, 6:24 am, Richard D. Worth [EMAIL PROTECTED] wrote: See the jQuery UI Slide Effect: http://docs.jquery.com/UI/Effects/Slide With effects.core.js and effects.slide.js included, you can do $(img).hide(slide, { direction:down }); $(img).show(slide, { direction:down }); The files can be downloaded here: http://ui.jquery.com/download_builder/ - Richard On Thu, Sep 18, 2008 at 7:24 PM, yo2lux [EMAIL PROTECTED] wrote: Is possible to add a css image with jquery and show the image gradually? (for example sliding up and down) I need something like this menu:www.antena1.ro, without macromedia flash. I try to add a css image when mouse hover the menu: css('backgroundImage', 'url(images/menubg.gif'). But what I need to do to show this image gradually ? Thanks!
[jQuery] Re: IE7innerHTML and text normalization
Are there alternatives to innerhtml method to get the html of a div? Maybe i can use an dom object to read the html content? On 17 sep, 14:57, Paul [EMAIL PROTECTED] wrote: Hi All, I'm trying to replace all linebreaks with html br /, but due htmlnormalizationwith the innerHTML propery in IE7 the following piece of code won't work in IE7 div id=text thingy 1 thingy 2 /div script var str = $('#text').html(); $('#text').html(str.replace(/\n/g, br /)); /script (description of thenormalizationbug:http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t...) Does anyone has a crossbrowser workaround or another solution to this problem? Thanx in advance! -Paul
[jQuery] Re: how to toggle text
JQuery code: script type=text/Javascript language=Javascript var Toggled=false; $(document).ready(function() { $('#toggle-content').click(function(){ if(Toggled==false){$('#toggle-content').html('read less #171;'); Toggled=true;} else{$('#toggle-content').html('read more #187;');Toggled=false;} $(#contenu).slideToggle(400); return false; }); }); /script HTML Link: a id=toggle-content href=#read more #187;/a Hope this helps. Patricio. On Aug 19, 7:44 pm, elz64 [EMAIL PROTECTED] wrote: Hello, I begin with jQuery so looks like one toggle function is missing : how can be accomplished the change of a text in a link , (and it's title or a alt text) between to possible states : ie: I use this to hide/display a content div a linl and this : $(#toggle-content).click(function(){ $(#contenu).toggle(); $(#toggle-content).toggleClass(ouvert); this will add a class to the link #toggle-content to make it when closed (default) or .ouvert when opened. BUT the link remains the same, and it's actually not very cool or accessible to display something like read more when it's already opened, and the text should be now click here to hide Of course, dealing with toggleClass, it's possible to use a full graphic background-image that tells the right stuff, but the title AND the alt of the link must be change anyway. any one had already done this ? Thank you.
[jQuery] Re: jquery.com incredibly slow for me
Just download those library files(jquery.js, jqueryui.js) in ur project folder and see to it that these library files are in the topmost side of javascript includes block. Im working on jQuery from past 1year and completed 3 projects on it. If u have any queries on jQuery then please visit www.bestcodes4u.com add yourself in its forum and ill get back to you with answers there. Thanks Regards, Jai On Sep 18, 1:53 am, MorningZ [EMAIL PROTECTED] wrote: (Sorry to veer off topic for a bit) I've seen this posted before, and i just tried it.. html xmlns=http://www.w3.org/1999/xhtml; head titleLoad from Google/title script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load(jquery, 1.2); google.load(jqueryui, 1.5); $(document).ready(function() { }); /script /head body /body /html And that throws $ is undefined... although through Firebug i clearly see the jquery file(s) loaded any ideas? On Sep 17, 1:34 pm, acacio [EMAIL PROTECTED] wrote: I had the same problem so I switched to the Google hosted files and it's *much* faster. Also, if we use it systematically, the client browser caches the files between different apps. You need to replace the load to this: script src=http://www.google.com/jsapi;/script script // Load jQuery google.load(jquery, 1.2); google.load(jqueryui, 1.5); /script Nothing else needs to be changed. A good article on the subject:http://ajaxian.com/archives/announcing-ajax-libraries-api-speed-up-yo... -Acacio On Sep 17, 7:05 pm, John Resig [EMAIL PROTECTED] wrote: We just acquired four new servers from Media Temple, yesterday. We'll be moving the various sub-domains (docs, plugins, dev, ui) to their own unique servers this week - this should help with load times significantly. But yes, it's mostly due to popularity issues (we're getting the equivalent of about 4 Digg/Slashdot-ings worth of traffic, per day, at this point). On 9/17/08, misterqj [EMAIL PROTECTED] wrote: I have experienced the same thing. Based on other messages in this newsgroup, I think it is a combo of hosting issues and jQuery's popularity. On one hand, it is great that the toolkit is being so widely used, but on the other hand it seems that the resources aren't keeping up with demand. It is a free toolkit, though, so I am not inclined to complain too much. But if they need additional resources, it might be time for the community to kick in a little $$. On Sep 17, 7:30 am, micha_17 [EMAIL PROTECTED] wrote: Can someone please confirm that jquery.com is sometimes (%2) so slow, pages won't even show up after 2 minutes waiting ? The slowness has been there before tha page has been redesigned. I'm on winxp FF3. I's the same with my colleagues here and @home. -- --John
[jQuery] Re: Need some help with image map coding....
Hi Aaron, The following code should help: $(document).ready(function(){ $('area').each(function(){ $(this).attr(href, #); $(this).click(function(){ $('#ajaxresult').load('map.php', {'state':$(this).attr('alt')}); return false; }); }); }); What it does: 1. select all the area elements on the page 2. clear the href attribute 3. assign a click event to each area which 4. loads the result of an AJAX POST to a php script (map.php) in the element with ID ajaxresult. In the example, I've used the alt attribute of the area tag for the name of the state (which is POSTed to the php script). I've also made all area tags on the page behave like this - if you have other image maps on the page, then they will be affected too. If you want to replace the image map with something from your PHP script, make sure the image and imagemap are in a container div, then load the output of the PHP script into the container div (you should empty the container first). HTH on 18/09/2008 16:24 Aaron said:: well what can I do to use javascript to submit a name to my php code??? I want to use the image map as a gui so I want it to act just like a form where I can name each state and then pass that name using post method to my php script which will do a database lookup and then once the list is create then I will take off the image map and put in the table with the list displayed. this is what I want to do but I can't figure out how I can pass the name to my php script...
[jQuery] Re: Toggle Only the dd below the dt on click
$(.stripes dt).click(function(){ $(this).find(dd).toggle(slow); }); On 19 Sep., 05:24, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably a noob question but... I have a bunch of definition lists on a page with the same class so that I can stripe every other dd in the list. What I want to do is hide the dd elements and when I click on the dt toggle the dd elements to visible. I want this to happen only on the dd elements in the same definition list as the title I am clicking, not all the dd elements on the entire page. What is happening now is that all of the dd in all of my definition lists are being toggled when I click on any of the dt elements on the page. I am sure this is a simple solution, but I can't seem to wrap my head around it. The code is below. script type=text/javascript $(function(){ $('[EMAIL PROTECTED]http://;]').attr('target', '_blank'); $('[EMAIL PROTECTED]https://;]').attr('target', '_blank'); $(.stripes dd).hide(); $(.stripes dt).click(function(){$(.stripes dd).toggle(slow); });}); /script Thanks for your help! -Paul
[jQuery] Re: custom / slimmed-down jquery possible?
If you've used jQuery on other pages, then it's very likely that the js has been cached in the user's browser anyway. Loading it again should not affect load times in most cases. Matt Kruse On Sep 18, 3:50 pm, Alex Weber [EMAIL PROTECTED] wrote: That's possibly the smartest thing I've heard all day! :) The content INSIDE the lightbox/modal does need jquery but the biggest problem is that im dependent on using jquery to display the modal in the first place... thanks i'm gonna look for alternatives! :) On Sep 17, 2:04 pm, ricardobeat [EMAIL PROTECTED] wrote: Don't feel tied tojQuery. There are many lightbox scripts offering modal dialogs, independent from any library, with less than 10kb uncompressed. Just google lightbox. On Sep 17, 12:45 pm, Eric Martin [EMAIL PROTECTED] wrote: Alex - I briefly went throughjQueryand removed some of the unused parts (as it relates to SimpleModal). I was able to get it down to just under 75k, 42k minified (which is about 12k less that the non-modified version). I can't make any guarantees, but if you'd like to try the slimmed down version, just send me an email. I don't really see how 55k would really cripple your load times - especially if you are loading the scripts near the bottom of your page. In addition, if you are using compression, you should hardly notice the loading time for the script(s). -Eric On Sep 17, 1:20 am, Alex Weber [EMAIL PROTECTED] wrote: and no i dont mean packing or minifying! :) basically all i need is 1 plugin (simplemodal) and because of that i'm forced to load the entirejquerylibrary, which is crippling load times... we usejqueryextensively in our website but we have banners in other sites that open a simplemodal (lightboxish) dialog and as far as the banners are concerned since its many sites and many different viewers we can't really count on caching to help either... so here's my question, is it possible to strip-down the original jquerysource code *just* for the banner modal? i guess it could be a kind of trial and error thing, but i'm wondering how interconnected the seperate parts of the library are and whether i should even spend any time on this... although it seems silly to have to load almost 50kb of additional JS when all i want is a 5Kb plugin :) thanks! -Alex
[jQuery] Re: Show image gradually
On Fri, Sep 19, 2008 at 5:43 AM, yo2lux [EMAIL PROTECTED] wrote: Thanks for your help! jQuery UI is a separate plugin ? jQuery UI is a sister project of jQuery. It's focused on providing a cohesive set of high quality RIA (Rich Internet Application) plugins. Interaction, Widgets, and Effects. You can find out more at http://ui.jquery.com/ and http://docs.jquery.com/UI/ Also, there's a dedicated mailing list for jQuery UI at http://groups.google.com/group/jquery-ui - Richard
[jQuery] Re: Show a Div based on a Dropdown selection
I got it to work. script type=text/javascript $(function() { $(#stateHolder div).hide(); $(#stateList).change( function(){ $(# + $ (this).val() ).show() } ); }); /script Now I need to figure out how to hide the other divs before loading the new one. Is there anyone who can help with that?
[jQuery] Re: Best JQuery pop-up plugin.
I like this one: http://www.ericmmartin.com/projects/simplemodal/ 2008/9/18 crypto5 [EMAIL PROTECTED] Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19556756.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] Re: Reset Validation with new rules
Sorry, I forgot to mention I'm using the JQuery/Validation plugin. Also, here is a working example of what I tried: http://www.centralwow.com/validate/validate.html
[jQuery] Re: Best JQuery pop-up plugin.
SimpleModal is great http://code.google.com/p/simplemodal/ And also Thickbox best afaik On Sep 18, 5:30 pm, Chris Jordan [EMAIL PROTECTED] wrote: Um... jQueryUI's dialog widget is good... and super easy to use. I'm just sayin'... ;o) Chris On Thu, Sep 18, 2008 at 11:51 AM, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. --http://cjordan.us
[jQuery] function to call ajax
Hi, I've been work working jQuery for more than 4 month, and really love it. There are still a lot thing I need to learn, here is one: I like to create a function, Get_MyData. test_ajax() alway return undefine. what's wrong in my code, what's the proper way to do this? Thank you very much for your time. Wes code: // function Get_MyData (para1) { var parameters = AjaxServer.aspx?para1= + para1; $.getJSON(parameters, function(data) { // error handle if (!onError(data)) return ; // var retList = []; $.each(data.data, function(i, xy) { retList .push(option value='); retList .push(xy.id); retList .push('); retList .push(xy.name); retList .push(/option) }); return str = retList .join(); }); } // test function function test_ajax() { var str = Get_MyData(1); alert (str); }
[jQuery] BlockUI 1.33 $.blockUI.defaults.pageMessage is not showing the image
hi, i´ve this: --- $().ajaxStop($.unblockUI); function test() { $.ajax({ url: 'process.php?' + new Date().getTime() }); } $(document).ready(function() { $('#Submit').click(function() { $.blockUI.defaults.pageMessage = 'h1img src=ajax-loader.gif / Por favor aguarde.../h1'; $.extend($.blockUI.defaults.overlayCSS, { backgroundColor: '#e9eaea' }); $.extend($.blockUI.defaults.pageMessageCSS, { color: '#000', backgroundColor: '#e9eaea' }); $.blockUI(); setTimeout($.unblockUI, 3000); }); }); --- Everything is ok, however is NOT showing the image (img src=ajax- loader.gif /), and it´s in the right place. any ideia ? ps - BlockUI 1.33 regards,
[jQuery] navbar width problems
Hi, I asked a bunch of questions in one post and perhaps that wasn't the best idea. I hope its ok to post one again, one of the more pertinent ones. My menu will ways have 7 submenus (each of those will have a varying number of children and grand-children, etc) Each main menu item of the 7 needs to have just a little bit of white space between it and the next item. I'd like to use percentages unless there is a better way to accomodate variable widths. However I can't seem to get them to fit tightly. There is always a little bit of space at the right edge or one of the items wraps to the next line. Suggestions?
[jQuery] MultiFile plugin
I can't get the MultiFile plugin to work at all for me. I have a dropdown list of real estate properties and use ajax to bring up the correct data and all that works. They need the capabilty to add multiple photos to a property. Ive tried all combinations of things to get this to work and can't. I will post a condensed version of the code and hope someone can see what I can't. Also, I'm not getting how, when you add a file, it lists it with a remove link. Is this automatic or do I code a hidden div for a callback function or what? I have googled and viewed source from http://www.fyneworks.com/jquery/multiple-file-upload but I must be really dense. tia! Tim :o] !-- MAIN PROGRAM -- script language=JavaScript src=/scripts/jquery.js type=text/ javascript/script script language=JavaScript src=/scripts/form.js type=text/ javascript/script script language=JavaScript src=/scripts/jquery.MultiFile.js type=text/javascript/script script language=JavaScript src=/scripts/jquery.MetaData.js type=text/javascript/script script language=javascript $(document).ready(function() { $('#listings').change(function(){ var listing_id = $(this).val(); $('#record').load('get_listing.php',{id:listing_id}); $('#frmListing').MultiFile(); }).change(); }); /script body div id=main div id=message_box/div span id=address_dropdown select tabindex='1' id='listings' name='listings' option value='0'Add New Listing/option option value='28'nbsp;1011 Hildreth Street, Charles City/ option option value='22'nbsp;102 Park Avenue, Charles City/option option value='14'nbsp;104 Sixteenth Avenue, Charles City/ option /select /span div id=record/div /div /body !-- get_listing.php -- form id='frmListing' action='' table border='0' trtd width='125'/tdtd width='75'/tdtd width='125'/tdtd width='175'/td/tr trtd colspan='4' class='record-row-head'BASIC DATA/td/tr trtd class='record-row-name'Address:/tdtd colspan='3' class='record-row-data'input tabindex='2' type='text' name='address' size='48' maxlength='50' //td/tr trtd class='record-row-name'City:/tdtd colspan='3' class='record-row-data'input tabindex='3' type='text' name='city' size='48' maxlength='50' value='Charles City' //td/tr trtd colspan='4'input type='file' class='multi'//td/tr /table /form div style='height:4px;border-top:dotted;margin:0 15px;'/divli class='abutton'a href='javascript:save_listing();'Save Listing/a/ li
[jQuery] Re: Show a Div based on a Dropdown selection
I have been trying to figure it out in Jquery, despite being new and quite un-experienced with Javascript. Here are a few bits of what i have so far. I know that i need to hide all of the child divs (the ones that will show and hide) on load.. Then as for my event...I need to grab the value out of the option that is selected, then match it with the correct div id and display that . So here is what i have. Unfort it does not work yet but i think i am on the right path. $(document).ready(function(){ $(#stateHolderdiv).hide(); $(#stateList).change(function(){ $(#+$ (this).val().show( 'fast'); }); Any help would be appreciated. Btw, here is the corresponding html needed to understand my naming and all.. select id=stateList option value=alabamaAlabama/option option value=alaskaAlaska/option etc... /select div id=stateHolder div id=alabama pThis is Alabama/ /div !-- End of Alabama div -- div id=alaska p Hi, I am Alaska /p /div !-- end of alaska -- /div !-- End of stateHolder Div -- Any help is appreciated. Thanks
[jQuery] Re: custom / slimmed-down jquery possible?
True enough but the whole point is that since the main concern is requiring jquery simply for loading a simplemodal from a banner outside our website, there is no guarantee that people will have jquery cached beforehand But as far as out own internal use goes then yeah you're totally right and it shouldnt even be a concern! -Alex On Sep 19, 9:03 am, Matt Kruse [EMAIL PROTECTED] wrote: If you've used jQuery on other pages, then it's very likely that the js has been cached in the user's browser anyway. Loading it again should not affect load times in most cases. Matt Kruse On Sep 18, 3:50 pm, Alex Weber [EMAIL PROTECTED] wrote: That's possibly the smartest thing I've heard all day! :) The content INSIDE the lightbox/modal does need jquery but the biggest problem is that im dependent on using jquery to display the modal in the first place... thanks i'm gonna look for alternatives! :) On Sep 17, 2:04 pm, ricardobeat [EMAIL PROTECTED] wrote: Don't feel tied tojQuery. There are many lightbox scripts offering modal dialogs, independent from any library, with less than 10kb uncompressed. Just google lightbox. On Sep 17, 12:45 pm, Eric Martin [EMAIL PROTECTED] wrote: Alex - I briefly went throughjQueryand removed some of the unused parts (as it relates to SimpleModal). I was able to get it down to just under 75k, 42k minified (which is about 12k less that the non-modified version). I can't make any guarantees, but if you'd like to try the slimmed down version, just send me an email. I don't really see how 55k would really cripple your load times - especially if you are loading the scripts near the bottom of your page. In addition, if you are using compression, you should hardly notice the loading time for the script(s). -Eric On Sep 17, 1:20 am, Alex Weber [EMAIL PROTECTED] wrote: and no i dont mean packing or minifying! :) basically all i need is 1 plugin (simplemodal) and because of that i'm forced to load the entirejquerylibrary, which is crippling load times... we usejqueryextensively in our website but we have banners in other sites that open a simplemodal (lightboxish) dialog and as far as the banners are concerned since its many sites and many different viewers we can't really count on caching to help either... so here's my question, is it possible to strip-down the original jquerysource code *just* for the banner modal? i guess it could be a kind of trial and error thing, but i'm wondering how interconnected the seperate parts of the library are and whether i should even spend any time on this... although it seems silly to have to load almost 50kb of additional JS when all i want is a 5Kb plugin :) thanks! -Alex
[jQuery] Tab scrolling
Hello, does somebody know if it is possible to build scrolling tabs with jquery? I don't know if you understand what I mean with scrolling tabs. I don't want to have a animation. I want to have tabs in a web page (like them which are used in most modern browsers) in one row. If I have more tabs than space to show them all I dontt want that they break to a new line. I want to have a little arrow to scroll to the next tab. Like in this example: http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html I want do do this with jquery, because I'm already using jquery, I like jquery and I don't want to load lots of different JavaScript- Frameworks.
[jQuery] jEditable Clone Referring to the Original Element
Hi all, I'm trying to make a jEditable element part of an duplicateable group of elements so that users can create as many elements as they want. What I'm running into is that, while the new elements take on the properties of the original counterparts, the jEditable elements that are newly inserted still refer to the item from which I based the clones, which has a unique ID from the clone. In short, I can clone jEditable items, but I can't edit them in place without a page reload and rewriting from the server side. Am I ignoring something or do I need to reset a binding somewhere when I do the DOM modification? Thanks, Wayne
[jQuery] datagrid with horizontal scrollbar
Hello! I am looking for a lightweight jquery datagrid which also supports ahorizontal scrollbar. I would like to hear if there's any plugin with that functionality and if this plugin lives up to your satisfaction. Hope to hear A.Consten
[jQuery] R: [jQuery] datagrid with horizontal scrollbar
jqgrid -Messaggio originale- Da: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto di Arnold Inviato: venerdì 19 settembre 2008 17.36 A: jQuery (English) Oggetto: [jQuery] datagrid with horizontal scrollbar Hello! I am looking for a lightweight jquery datagrid which also supports ahorizontal scrollbar. I would like to hear if there's any plugin with that functionality and if this plugin lives up to your satisfaction. Hope to hear A.Consten
[jQuery] Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
I have a simple AJAX call: $.ajax({ url: setBMBJSONString.php, data: stringJSON.toString(), success: function(rdata) { //var resp = eval('(' + rdata + ')'); $(body).append(rdata); }, error: function(XMLHttpRequest, textStatus, errorThrown) { var e = XMLHttpRequest; for (var key in e) { $(body).append(key + : + e[key] + br /); } } }); That won't work, the data doesn't get to the webservice that way. But if I do this instead: $.ajax({ url: setBMBJSONString.php, data: {prefix:Bishop,fname:Nkulu,mname:Ntanda,lname:Ntambo,suffix:Esq.,relation:}, success: function(rdata) { //var resp = eval('(' + rdata + ')'); $(body).append(rdata); }, error: function(XMLHttpRequest, textStatus, errorThrown) { var e = XMLHttpRequest; for (var key in e) { $(body).append(key + : + e[key] + br /); } } }); Everything works fine! All I did was print out stringJSON and copy it and paste it in there. What's going on? For obvious reasons I need to use a variable there.
[jQuery] Re: Xpath Plugin: Child Selector Predicate Support [\d+]
Wow! Thanks Karl. If anyone is interested the quick fix using Karl's suggestion is to edit the xpath plugin - look for this line: // Naively convert [elem] into :has(elem) selector = selector.replace(/\[([EMAIL PROTECTED])\]/g, function(m, selector){ return :has( + selector + ); }); And change it to: // Naively convert [elem] into :eq(elem) selector = selector.replace(/\[([EMAIL PROTECTED])\]/g, function(m, selector){ // Xpath expressions are 1 indexed - :eq are 0 indexed return :eq( + (selector - 1) + ); }); John On Sep 18, 8:14 pm, Karl Swedberg [EMAIL PROTECTED] wrote: you could use the :eq() selector:http://docs.jquery.com/Selectors/eq#index --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Sep 18, 2008, at 1:42 PM, John Boxall wrote: Hey Jquery hackers: I'm doing some work with the Xpath plugin and I notice it doesn't support expressions like: /html/body/center/form/table/tbody/tr/td[2]/input[3] (Used to select the search box onwww.google.com!) I would like to extend the plugin to support this kind of expression. Because (to my knowledge) CSS selectors don't specify a way of selecting specific child elements I believe that the best way to run the selector recursively: Given the selector: /html/body/center/form/table/tbody/tr/td[2]/input[3] Run 1st: /html/body/center/form/table/tbody/tr/td Get the 2nd result. Run 2nd: td/input Run td/input on the final result of the 1st run. Return the 3rd result. Does anyone else have any experience tackling this kind of problem? (or know about a CSS selector rule that does this : P) Thanks, John
[jQuery] Blank page when using ThickBox on Internet Explorer
Hi, In thickbox.cfm, I'm using the following code to create a thickbox login popup: a href=login.cfm?height=400width=600 class=thickbox title=Please Sign InLogin/a. This is the parent page. In login.cfm, I have a form. After clicking on the link to login a thickbox pops up with the form. After submitting the form, the thickbox closes and the result is displayed in the parent page. This works great on all browsers in localhost and on one of my servers (which uses a transitional doctype). The problem is on another server, the thickbox works great on Firefox and Safari, but in Internet Explorer (all versions) after clicking on the login link I get a blank window in the thickbox popup. The form doesn't show up. On this server I'm using a strict doctype: Both thickbox.cfm and login.cfm use the same doctype: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; Not sure why I'm having issues with ie on this server. I included the doctype because I thought this might be part of the problem. Does anyone know why I'm having this blank popup issue with thickbox on ie? Thanks.
[jQuery] [autocomplete] + [ajaxqueue] confusion
I'm a bit confused. In the autocomplete plugin source I see these lines: $.ajax({ // try to leverage ajaxQueue plugin to abort previous requests mode: abort, The ajaxqueue plugin that Jorn links to here from bassistance.de, http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.ajaxQueue.js looks like it'll work, because I see the following: $.ajax = function(settings) { // create settings for compatibility with ajaxSetup settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings)); var port = settings.port; switch(settings.mode) { case abort: HOWEVER, when I got to the ajaxQueue project/plugin page (http:// plugins.jquery.com/project/ajaxqueue), the download link points to a drastically different-looking file (http://plugins.jquery.com/files/ jquery-ajax-queue_1.0.js.txt) which doesn't even seem to touch $.ajax to add support for the 'mode' parameter--it only defines $.ajaxSync and $.ajaxQueue. What gives? Is the one that Jorn links to just not the official (i.e. non Resig-authored) AJAX queuing library? -dan
[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
have you tried: data: stringJSON (without the toString() ?)
[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
Yes, same result. I added the toString() just in case. I've discovered more. Here is the code right before it that makes the variable: var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); }); var stringJSON = JSON.stringify(OBJ); Now if I pass OBJ to the data: parameter it works! Unfortunately, double quotes make it break, etc. so I really need to have it scrubbed before sending it, which JSON.stringify is supposed to do. So it looks like it doesn't like strings. Which is weird because with a .NET backend, it HAS to be a string. I wish I new more about what was going on there. How can I do this? Do I have to write my own scrubbing?? And why doesn't it like strings? On Sep 19, 11:56 am, MorningZ [EMAIL PROTECTED] wrote: have you tried: data: stringJSON (without the toString() ?)
[jQuery] Re: Jcrop v0.9.0 image cropping plugin - comments please
On Thu, Sep 18, 2008 at 7:54 PM, Kelly [EMAIL PROTECTED] wrote: This is what I was saying to Jose...which one you should use ought to be based on which one does what you want it to do better, and then think about things like ease-of-implementation. In my view, the spectre of bandwidth or memory efficiency is not an issue on this scale per se. I like your plugin but I think of cropping as part of a wider functionality for managing pictures. What matters to me is not efficiency per se but future-proof functionality. If the UI team is building a wide framework in this area then your code will be more future-proof as part of UI than as a standalone plugin. What prompted me to ask about jcrop vs UI is that many times I find code with great functionality that doesn't evolve and that in the end I have to replace for something else. Thanks and I hope you can contribute to the UI team jose
[jQuery] Re: Show a Div based on a Dropdown selection
try this: script type=text/javascript $( function() { $(#stateHolder div).hide(); $(#stateList).change( function() { $(#stateHolder div).hide(); $(# + $(this).val() ).show(); }); }); /script -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de/ http://ohorn.info/ http://www.akitafreund.de/ ---
[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
Which is weird because with a .NET backend, it HAS to be a string Which is totally not true .NET can handle JSON in (via Request.Params) and JSON out (using the excellent JSON.net class by James Newton King) anyways, If you have var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); }); $.ajax({ url: setBMBJSONString.php, data: OBJ, .. etc etc... }); Then the receiving page, no matter if it's php. .NET, whatever, will, well *should*, see properly encoded/escaped Key/Value pairs as either QueryString or Form pairs (depending on if the $.ajax call does GET or POST) watch the call in firebug and keep an eye on the Params or Post tab in the Console and you can confirm/deny this You shouldn't need to scrub those at all... if it's anything else, then you aren't coding all this correctly... perhaps if you get a live and testable page up for others to dissect? On Sep 19, 1:04 pm, Namlet [EMAIL PROTECTED] wrote: Yes, same result. I added the toString() just in case. I've discovered more. Here is the code right before it that makes the variable: var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); }); var stringJSON = JSON.stringify(OBJ); Now if I pass OBJ to the data: parameter it works! Unfortunately, double quotes make it break, etc. so I really need to have it scrubbed before sending it, which JSON.stringify is supposed to do. So it looks like it doesn't like strings. Which is weird because with a .NET backend, it HAS to be a string. I wish I new more about what was going on there. How can I do this? Do I have to write my own scrubbing?? And why doesn't it like strings? On Sep 19, 11:56 am, MorningZ [EMAIL PROTECTED] wrote: have you tried: data: stringJSON (without the toString() ?)
[jQuery] Re: jquery.com incredibly slow for me
Feel free to add the link to the Wiki/help page. It's a wiki, after all. :) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 19, 2008, at 6:23 AM, Michael Stuhr wrote: Karl Swedberg schrieb: Please take a look at this post, which provides links to a number of alternative resources for jQuery documentation, including an Adobe Air app for offline browsing: http://www.learningjquery.com/2008/07/jquery-documentation-alternatives Sorry, i missed that completely. Is that already linked on the Wiki / Help page (docs.jquery.com) ? If not, i'd vote for it. -- micha
[jQuery] jQuery usage to provide 'clean' JavaScript database strings
I have recently had a problem with a web application that I'm doing modifications to. I tracked it down to a few JavaScript AJAX functions that were pulling options from a MySQL table and then populating option values within a select form attribute. It turns out that one of the table's fields contained an ampersand; that ampersand broke all of the code. I'm not sure exactly where the break occurred.. Firebug showed me that the AJAX functions were returning a list of options to the JSP servlet as it should have been. However when I started testing javascript strings with ampersands in it, I noticed that there were serious issues with the handling; at least in how FireBug displayed the strings. Anyway, I asked about this issue on a BBS that I'm a member of and one of the JSP/JavaScript webapp developers that I know and respect mentioned that using jQuery to set .text() on the element would 'clean' the string for me so that I don't have to worry about trying to parse it and escape the ampersands or expand them to the (ampersand)amp; element in the original string. Unfortunately I'm unable to find any documentation on what methods to use for this in the jQuery docs... Can anybody point me in the right direction or give me some insight on how I would go about doing this? I've never used this library to this point. Thanks in advance. +Damon Getsman -=-=-=- ITRx http://www.itrx-nd.com/ Programmer/System Administrator -=-=-=-
[jQuery] JQuery YAV plugin inputclasserror question
For the YAV plugin, can you use the option 'inputclasserror' by itself? $(#form1).yav({ inputclasserror : fieldError }); Do you need the 'errorMessage' option work this to work? $(#form1).yav({ errorMessage : Errors are found },{ inputclasserror : fieldError });
[jQuery] Re: Show a Div based on a Dropdown selection
I ended up with this.. script type=text/javascript $(function() { $(#stateHolder div).hide(); $(#stateList).change( function(){ var $el= $('#' + $(this).val() ); if ( $(#stateHolder div:visible).length == 0) { $el.show('fast') } else{ $(#stateHolder div:visible).hide('fast', function(){ $el.show('fast'); } ) } }); }); /script It seems to work well. I just want to add some effects to it, such as a fade or something. But this seems to do everything it should.
[jQuery] What does 'return false' do?
What does 'return false' do? I make an AJAX request from an HREF, which works. But the resulting page needs Javascript to run on it. I think 'return false' is preventing it. How do I fix that? Here's what I've read so far from the Chaffer / Swedberg book: If we wish to halt both, we can return false from our event handler, which is a shortcut for calling both. stopPropagation () and .preventDefault () on the event.
[jQuery] quite non-elegant code. please advise!
This is my first jquery function, and im trying to handle rollovers and click. The behavior i want is to toggle a class on hover for each li element, and then disable the hover on the one that is clicked and selected. Right now im using three separate handlers; click, mouseover, and mouseout, and then using if statements to check if it has the highlight class. bah. bah? thank you.
[jQuery] Re: jTemplate and AJAX ?
You'll need to call your addClickHandlers function after the template is rendered, not before. Similar to how I call the UpdatePaging function.
[jQuery] Re: jquery/livequery assign behaviour to element by class
Ishamel, Thanks so much for responding to my post: I am having trouble getting your solution to work - I included a sample of the code I am using. Just an FYI I am using ColdFusion's new ajaxproxy Whatever insights you have would be appreciated. code below: == //init(); is called onLoad() - it is binding the table cells to the method handlers correctly. var init = function() { $(table tbody td).filter(.hasContent).hover(showBox,hideBox).mousemove(position); $(table tbody td).filter(.hasContent).click(showDetail); } //method is called on click to change the data in the table function changeContent(){ // create an instance of the ColdFusion/Ajax proxy. var e = new proxy_cfc(); e.setCallbackHandler(handleContent); e.setErrorHandler(handleError); e.getContent(x); } //Callback function handles returned records var handleContent = function(res) { //unbinding does not seem to work $(table tbody td.hasContent).unbind('hover').unbind('mousemove'); $(table tbody td.hasContent).unbind('click') for ( var i=0; i=res.length-1; i++ ){ //this is the row header rows[i].setAttribute('id',res[i][0].TOPIC); var cell=rows[i].cells; cell[0].innerHTML=res[i][0].CONTENT; //This is where the cells are poulated with content if (res[i][1].HASCONTENT){ cell[1].innerHTML=a onMouseOver='javascript:getRO( + res[i][1].CONTENT_ID + );' + href='javascript:getDetail( + res[i][1].CONTENT_ID + );' + res[i][1].CONTENT +/a; cell[1].setAttribute('className',hasContent); cell[1].setAttribute('class',hasContent); } else { cell[1].innerHTML=res[i][1].CONTENT;//content here is just ;nbsp cell[1].setAttribute('className',noContent); cell[1].setAttribute('class',noContent); } if (res[i][2].HASCONTENT){ cell[2].innerHTML=a onMouseOver='javascript:getRO( + res[i][2].CONTENT_ID + );' + href='javascript:getDetail( + res[i][2].CONTENT_ID + );' + res[i][2].CONTENT +/a; cell[2].setAttribute('className',hasContent); cell[2].setAttribute('class',hasContent); } else { cell[2].innerHTML=res[i][2].CONTENT; cell[2].setAttribute('className',noContent); cell[2].setAttribute('class',noContent); } } //re binding does not work $(table tbody td.hasContent).hover(showBox,hideBox).mousemove(position); $(table tbody td.hasContent).click(showDetail); } On Mon, Sep 15, 2008 at 3:16 PM, Ishamel [EMAIL PROTECTED] wrote: On Sep 15, 12:49 pm, jwynne [EMAIL PROTECTED] wrote: Currently I am using $(document).ready to bind some behaviours to elements in the DOM based on a class name (using jquery's .filter) - This works great on the initial load of the page however these bindings get all screwy when I try injecting or editing new elements to the DOM dynamically via AJAX. After researching the issue I have been trying to use the livequery plug-in but have been unsuccessful so far. In $(document).ready I am assigning behaviour to td elements of the class hasContent. I am looking to hook them up to livequery listeners so that the correct behaviours are assigned when the DOM is updated. $(document).ready(function(event) { var position = function() { } var showBox = function() { } var hideBox = function() { } var showDetail = function() { } //Syntax help below $(table tbody td).filter(.hasContent).hover(showBox, hideBox).mousemove(position); $(table tbody td).filter(.hasContent).click(showDetail); });//EOF Can anybody help me with the syntax necessary to get livequery to bind/unbind the necessary behaviours to the table tds? Thanks for the help. -- View this message in context: http://www.nabble.com/jquery-livequery-assign-behaviour-to-element-by... Sent from the jQuery General Discussion mailing list archive at Nabble.com. jQuery runs the code once on load, and binds the beahvior to the elements. Once you star to add and remove elements using ajax you have to tell jquery to bind to the newly created element on the page. I'm not sure what how your getting you data back; but in the callback you will need to unbind the behavior, load the data in the DOM then rebind the behavior yo want onload bind your events $(table tbody td).filter(.hasContent).hover(showBox, hideBox).mousemove(position); $(table tbody td).filter(.hasContent).click(showDetail); in the callback function unbind your event $(table tbody td.hasContent).unbind('hover').unbind('mousemove); $(table tbody td.hasContent).unbind('click') Inject the data into the DOM; then rebind you events
[jQuery] Re: Autocomplete: In Firefox 2 on Mac, form is submitted when menu item selected using Enter key
I believe this happens for windows users as well, 'enter' always submits the form except inside textareas. Or maybe I have a very bad memory. naumanp wrote: I'm using Autocomplete 1.0.2 (5747 2008-06-25 18:30:55Z joern.zaefferer). This happens in Firefox 2.0.0.16 on OS X (I'm running 10.5.5). Does *not* happen in Firefox 2 on XP, Firefox 3 on XP Mac, Safari 3, IE6, IE7. I tried it on two different Macs with the same result. This can be reproduced even on the demo page: http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/ Any ideas why this is happening and how to fix it?
[jQuery] Re: Simple Q: Javascript fails on JSON data
Inline scripts loaded with AJAX are not run unless appended to the document's head element. A quick search on this group or google will show you lots of alternatives to do that! On Sep 18, 9:00 pm, light-blue [EMAIL PROTECTED] wrote: This is simple, but I'm lost. I click a link, and jquery loads a form using jquery and JSON (works great!) But, the form has collapsible fieldsets (using Drupal's collapse.js) and the javascript doesn't run on them. That's probably because the collapse.js needs to run on the newly loaded form elements but it *won't* because I'm doing 'return false' after my .get(). Workaround: If I intercept the form SUBMIT click and paste the collapse.js, then the javascript starts working on my form. That's not elegant. How do I properly adjust for this? Thanks!
[jQuery] Re: quite non-elegant code. please advise!
How about showing the non elegant code first?
[jQuery] selecting id's with similar names
Hi..am trying to accomplish the following: I have several input elements on my page...there are a few that I want to alter and their id's follow a similar pattern from a naming convention: id=SOMETHING-fieldname Is there a way to select / filter all of the input elements on the page to only those that start with SOMETHING? M
[jQuery] Re: selecting id's with similar names
$(input[name^='SOMETHING']) http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
[jQuery] jQuery Cycle plugin question - changing speeds mid-slideshow
I have an effect where I cycle through images with the default slow fade speed, and when a user mouses over a link, I jump to a specific image via: $('#myPics').cycle(3); The problem is, I want to change the fade options to fast just before I jump to that image. How would this be done?
[jQuery] Re: Autocomplete: In Firefox 2 on Mac, form is submitted when menu item selected using Enter key
preventDefault() was working for everything but FF2 on Mac. I just came up with a solution that works, but perhaps Jörn could provide some input whether this is the best way to handle it. In jquery.autocomplete.js, in addition to the existing check for Opera, I added a check for Firefox 2: // prevent form submit in opera when selecting with return key // Original: $.browser.opera $ (input.form).bind(submit.autocomplete, function() { // New: ($.browser.opera || ($.browser.mozilla jQuery.browser.version.substr(0,3)==1.8)) $(input.form).bind(submit.autocomplete, function() { if (blockSubmit) { blockSubmit = false; return false; } }); On Sep 19, 11:24 am, ricardobeat [EMAIL PROTECTED] wrote: I believe this happens for windows users as well, 'enter' always submits the form except inside textareas. Or maybe I have a very bad memory. naumanp wrote: I'm using Autocomplete 1.0.2 (5747 2008-06-25 18:30:55Z joern.zaefferer). This happens in Firefox 2.0.0.16 on OS X (I'm running 10.5.5). Does *not* happen in Firefox 2 on XP, Firefox 3 on XP Mac, Safari 3, IE6, IE7. I tried it on two different Macs with the same result. This can be reproduced even on the demo page: http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/ Any ideas why this is happening and how to fix it?
[jQuery] Re: Best JQuery pop-up plugin.
It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context:http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: selecting id's with similar names
that page isn't available David Loera Valverde (662) 155-02-20 On Fri, Sep 19, 2008 at 11:50 AM, MorningZ [EMAIL PROTECTED] wrote: $(input[name^='SOMETHING']) http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
[jQuery] Re: selecting id's with similar names
This is correct. However, beware of this bug: http://dev.jquery.com/ticket/3167 I have seen it manifest with ^= in addition to *= On Sep 19, 1:50 pm, MorningZ [EMAIL PROTECTED] wrote: $(input[name^='SOMETHING']) http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
You're right, the values transferred fine without doing anything to them. Could you show me a method that will accept Request.Params just like I'm trying to get this data? On Sep 19, 12:51 pm, MorningZ [EMAIL PROTECTED] wrote: Which is weird because with a .NET backend, it HAS to be a string Which is totally not true .NET can handle JSON in (via Request.Params) and JSON out (using the excellent JSON.net class by James Newton King) anyways, If you have var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); }); $.ajax({ url: setBMBJSONString.php, data: OBJ, .. etc etc... }); Then the receiving page, no matter if it's php. .NET, whatever, will, well *should*, see properly encoded/escaped Key/Value pairs as either QueryString or Form pairs (depending on if the $.ajax call does GET or POST) watch the call in firebug and keep an eye on the Params or Post tab in the Console and you can confirm/deny this You shouldn't need to scrub those at all... if it's anything else, then you aren't coding all this correctly... perhaps if you get a live and testable page up for others to dissect? On Sep 19, 1:04 pm, Namlet [EMAIL PROTECTED] wrote: Yes, same result. I added the toString() just in case. I've discovered more. Here is the code right before it that makes the variable: var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); }); var stringJSON = JSON.stringify(OBJ); Now if I pass OBJ to the data: parameter it works! Unfortunately, double quotes make it break, etc. so I really need to have it scrubbed before sending it, which JSON.stringify is supposed to do. So it looks like it doesn't like strings. Which is weird because with a .NET backend, it HAS to be a string. I wish I new more about what was going on there. How can I do this? Do I have to write my own scrubbing?? And why doesn't it like strings? On Sep 19, 11:56 am, MorningZ [EMAIL PROTECTED] wrote: have you tried: data: stringJSON (without the toString() ?)
[jQuery] Simple question about Radio Buttons
Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I have 6 Radio Buttons) and the alert says undefined every time. But half of them should be true and half should be false. Am I doing something wrong? here are two of the radios: input name=recvd_loan type=radio value=1 / Yes input name=recvd_loan type=radio value=0 / No Thanks!
[jQuery] Re: Simple question about Radio Buttons
Well I fixed it, I had to use: $(this).attr(checked) to get the value. Should I have known this? On Sep 19, 2:48 pm, Namlet [EMAIL PROTECTED] wrote: Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I have 6 Radio Buttons) and the alert says undefined every time. But half of them should be true and half should be false. Am I doing something wrong? here are two of the radios: input name=recvd_loan type=radio value=1 / Yes input name=recvd_loan type=radio value=0 / No Thanks!
[jQuery] Re: Best JQuery pop-up plugin.
Thanks everybody for responses. Ok, my requirements are: - modal pop-up - easy to control life cycle(open, close, handle events). - easy to customize look and feel - good documentation. Don't like look at spaghetti code to figure out how it works - existing themes are big plus Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox. Could not find how to customize look and feel for thickbox and facebox. My jquery dialog test doesn't work: the default flora theme doesn't work for me. So I am asking jquery experts to help me make my choice and dive into single pop-up lib. Eric Martin-3 wrote: It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context:http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Best JQuery pop-up plugin.
For jQuery UI Dialog themes, take a look at ThemeRoller: http://themeroller.com/ - http://ui.jquery.com/themeroller There are ready-made themes in the Theme Gallery or you can Roll Your Own (modifying an existing one, or starting from scratch). - Richard On Fri, Sep 19, 2008 at 3:38 PM, crypto5 [EMAIL PROTECTED] wrote: Thanks everybody for responses. Ok, my requirements are: - modal pop-up - easy to control life cycle(open, close, handle events). - easy to customize look and feel - good documentation. Don't like look at spaghetti code to figure out how it works - existing themes are big plus Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox. Could not find how to customize look and feel for thickbox and facebox. My jquery dialog test doesn't work: the default flora theme doesn't work for me. So I am asking jquery experts to help me make my choice and dive into single pop-up lib. Eric Martin-3 wrote: It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Best JQuery pop-up plugin.
Given your requirements, you can't go wrong with using jQueryUI. - modal pop-up (check) - easy to control life cycle (check) - good documentation (check) -- http://docs.jquery.com/UI/Dialog - easy to customize look and feel ( same link as above, see Theming, also check out the theme roller, very cool!) on the topic of documentation, jQueryUI is officially supported and it has it's own mailing list (google group) with all sorts of knowledgeable people to help out. Just my two-cents again. :o) Chris On Fri, Sep 19, 2008 at 2:38 PM, crypto5 [EMAIL PROTECTED] wrote: Thanks everybody for responses. Ok, my requirements are: - modal pop-up - easy to control life cycle(open, close, handle events). - easy to customize look and feel - good documentation. Don't like look at spaghetti code to figure out how it works - existing themes are big plus Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox. Could not find how to customize look and feel for thickbox and facebox. My jquery dialog test doesn't work: the default flora theme doesn't work for me. So I am asking jquery experts to help me make my choice and dive into single pop-up lib. Eric Martin-3 wrote: It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- http://cjordan.us
[jQuery] Re: Best JQuery pop-up plugin.
I agree that theme roller is one of the coolest things since sliced bread... :o) On Fri, Sep 19, 2008 at 3:24 PM, Richard D. Worth [EMAIL PROTECTED] wrote: For jQuery UI Dialog themes, take a look at ThemeRoller: http://themeroller.com/ - http://ui.jquery.com/themeroller There are ready-made themes in the Theme Gallery or you can Roll Your Own (modifying an existing one, or starting from scratch). - Richard On Fri, Sep 19, 2008 at 3:38 PM, crypto5 [EMAIL PROTECTED] wrote: Thanks everybody for responses. Ok, my requirements are: - modal pop-up - easy to control life cycle(open, close, handle events). - easy to customize look and feel - good documentation. Don't like look at spaghetti code to figure out how it works - existing themes are big plus Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox. Could not find how to customize look and feel for thickbox and facebox. My jquery dialog test doesn't work: the default flora theme doesn't work for me. So I am asking jquery experts to help me make my choice and dive into single pop-up lib. Eric Martin-3 wrote: It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- http://cjordan.us
[jQuery] Re: Best JQuery pop-up plugin.
SimpleModal: - modal pop-up (yes) - easy to control life cycle(open, close, handle events). (yes - onOpen, onShow, onClose callbacks) - easy to customize look and feel (yes) - good documentation. (yes - at least I hope so ;) ) - existing themes are big plus (no - the current version doesn't use themes, although the version I'm working on will) Take a look at the demos[1] and tests[2] and you'll see that SimpleModal provides a lot of flexibility. All of the options mentioned here are good scripts, it's just a matter of finding the one that fits you. [1] http://www.ericmmartin.com/simplemodal/ [2] http://www.ericmmartin.com/simplemodal-test/ On Sep 19, 12:38 pm, crypto5 [EMAIL PROTECTED] wrote: Thanks everybody for responses. Ok, my requirements are: - modal pop-up - easy to control life cycle(open, close, handle events). - easy to customize look and feel - good documentation. Don't like look at spaghetti code to figure out how it works - existing themes are big plus Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox. Could not find how to customize look and feel for thickbox and facebox. My jquery dialog test doesn't work: the default flora theme doesn't work for me. So I am asking jquery experts to help me make my choice and dive into single pop-up lib. Eric Martin-3 wrote: It really depends on what you are using it for as well as your personal preferences. I tried BlockUI and jqModal before I finally decided to write my own (SimpleModal). Each one has its strengths and weaknesses, plus there are a lot more out there that aren't even mentioned. Perhaps you can tell us more about your requirements, which may help direct you to one that best fits your needs. On the other hand, you could always give each one the 5-minute test ;) Eric Martin -- http://ericmmartin.com On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context:http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context:http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Simple question about Radio Buttons
You could use either this.checked or $(this).attr(checked). this refers to the dom node, so if you want to use the attr method on this you have to jQuery-ize it. this.checked would be more performant, since you are not executing the jQuery function in that case. -- Josh - Original Message - From: Namlet [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, September 19, 2008 1:11 PM Subject: [jQuery] Re: Simple question about Radio Buttons Well I fixed it, I had to use: $(this).attr(checked) to get the value. Should I have known this? On Sep 19, 2:48 pm, Namlet [EMAIL PROTECTED] wrote: Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I have 6 Radio Buttons) and the alert says undefined every time. But half of them should be true and half should be false. Am I doing something wrong? here are two of the radios: input name=recvd_loan type=radio value=1 / Yes input name=recvd_loan type=radio value=0 / No Thanks!
[jQuery] an unusual bug. addClass to td inside tr with a class doesn't affect the cell
html: table trtd/tdtd/td/tr tr class=oddtd/tdtd/td/tr /table css: .odd { background-color: red; } .dead { background-color: yellow; } javascript: $(td).hover( function() { $(this).addClass(dead); }, function() { $(this).removeClass(dead); } ); this won't work on .odd rows for me... dunno why... however changing css affects this...
[jQuery] Re: Simple question about Radio Buttons
Great explanation Josh, thanks! On Sep 19, 3:46 pm, Josh Nathanson [EMAIL PROTECTED] wrote: You could use either this.checked or $(this).attr(checked). this refers to the dom node, so if you want to use the attr method on this you have to jQuery-ize it. this.checked would be more performant, since you are not executing the jQuery function in that case. -- Josh - Original Message - From: Namlet [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, September 19, 2008 1:11 PM Subject: [jQuery] Re: Simple question about Radio Buttons Well I fixed it, I had to use: $(this).attr(checked) to get the value. Should I have known this? On Sep 19, 2:48 pm, Namlet [EMAIL PROTECTED] wrote: Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I have 6 Radio Buttons) and the alert says undefined every time. But half of them should be true and half should be false. Am I doing something wrong? here are two of the radios: input name=recvd_loan type=radio value=1 / Yes input name=recvd_loan type=radio value=0 / No Thanks!
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
it's not a bug, it's your code, as this works just fine http://paste.pocoo.org/show/85736/
[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.
I don't know PHP at all, but it appears $_GET[prefix] is the syntax Got that from: http://drupal.org/node/120723
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
ok a little more complicated version is not working div class=tick table width=100% cols=7 id=hostingtable tr align=center th width=22%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th /tr tr align=center td class=row redt/td td class=row bluea href=?exe=ordert=1t/a/td td class=row yellowa href=?exe=ordert=2t/a/td td class=row bluea href=?exe=ordert=3t/a/td td class=row yellowa href=?exe=ordert=4t/a/td td class=row bluea href=?exe=ordert=5t/a/td td class=row yellowa href=?exe=ordert=6t/a/td /tr tr align=center class=odd td class=row redt/td td class=row bluet/td td class=row yellowt/td td class=row bluet/td td class=row yellowt/td td class=row bluet/td td class=row yellowt/td /tr /table /div css: .row { margin: 0px 0px 0px 0px; border: 0px; padding: 4px; border: 1px dashed #a7b383; color: #000; width: auto; background-color: #ecf2d8; overflow: auto; position: relative; } .odd .row { background-color: #ecffe5; } .red { background-color: #ffdfdf; } .yellow { background-color: #fafadf; } .blue { background-color: #dff8fa; } .odd .red { background-color: #fff0f0; } .odd .yellow { background-color: #ec; } .odd .blue { background-color: #effeff; } .dblred { background-color: #c00; } js: $(document).ready( function() { $(window).load( function () { $(td).hover( function() { $(this).addClass(dblred); }, function() { $(this).removeClass(dblred); } ); }); }); On Sep 19, 11:05 pm, MorningZ [EMAIL PROTECTED] wrote: it's not a bug, it's your code, as this works just fine http://paste.pocoo.org/show/85736/
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
it affects the NON .odd rows only for me... On Sep 19, 11:18 pm, Equand [EMAIL PROTECTED] wrote: ok a little more complicated version is not working div class=tick table width=100% cols=7 id=hostingtable tr align=center th width=22%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th th width=13%t/th /tr tr align=center td class=row redt/td td class=row bluea href=?exe=ordert=1t/a/td td class=row yellowa href=?exe=ordert=2t/a/td td class=row bluea href=?exe=ordert=3t/a/td td class=row yellowa href=?exe=ordert=4t/a/td td class=row bluea href=?exe=ordert=5t/a/td td class=row yellowa href=?exe=ordert=6t/a/td /tr tr align=center class=odd td class=row redt/td td class=row bluet/td td class=row yellowt/td td class=row bluet/td td class=row yellowt/td td class=row bluet/td td class=row yellowt/td /tr /table /div css: .row { margin: 0px 0px 0px 0px; border: 0px; padding: 4px; border: 1px dashed #a7b383; color: #000; width: auto; background-color: #ecf2d8; overflow: auto; position: relative;} .odd .row { background-color: #ecffe5;} .red { background-color: #ffdfdf;} .yellow { background-color: #fafadf;} .blue { background-color: #dff8fa;} .odd .red { background-color: #fff0f0;} .odd .yellow { background-color: #ec;} .odd .blue { background-color: #effeff;} .dblred { background-color: #c00; } js: $(document).ready( function() { $(window).load( function () { $(td).hover( function() { $(this).addClass(dblred);}, function() { $(this).removeClass(dblred); } ); }); }); On Sep 19, 11:05 pm, MorningZ [EMAIL PROTECTED] wrote: it's not a bug, it's your code, as this works just fine http://paste.pocoo.org/show/85736/
[jQuery] missing ) after argument list error
I can't see why this wouldn't work: $('h1:contains(test)').parents('body').addClass(test_class);
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
The problem isn't with jQuery, it's with your CSS fire up that example page in Firefox with Firebug's Inspect tab open and you'll see dblred get applied and removed just fine but you'll also see in the style pane that this dblred class is getting superceeded by the mess of other classes involved to avoid all this conflict, you can either 1) Clean up your CSS or 2) This works $(document).ready(function() { $(.tick td).hover( function() { $(this).css(background-color, #c00); }, function() { $(this).css(background-color, ); } ); });
[jQuery] Re: missing ) after argument list error
Works fine for me (Firefox 3 on Mac OS X). What browser gave you that error? On Fri, Sep 19, 2008 at 4:13 PM, switch13 [EMAIL PROTECTED] wrote: I can't see why this wouldn't work: $('h1:contains(test)').parents('body').addClass(test_class); -- Aaron Heimlich Web Developer [EMAIL PROTECTED]
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
unfortunately i can't clean up the css, because i need this to work without js and on all major browsers... On Sep 19, 11:33 pm, MorningZ [EMAIL PROTECTED] wrote: The problem isn't with jQuery, it's with your CSS fire up that example page in Firefox with Firebug's Inspect tab open and you'll see dblred get applied and removed just fine but you'll also see in the style pane that this dblred class is getting superceeded by the mess of other classes involved to avoid all this conflict, you can either 1) Clean up your CSS or 2) This works $(document).ready(function() { $(.tick td).hover( function() { $(this).css(background-color, #c00); }, function() { $(this).css(background-color, ); } ); });
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
thanks this works... i forgot to mention that background-color change works... On Sep 19, 11:33 pm, MorningZ [EMAIL PROTECTED] wrote: The problem isn't with jQuery, it's with your CSS fire up that example page in Firefox with Firebug's Inspect tab open and you'll see dblred get applied and removed just fine but you'll also see in the style pane that this dblred class is getting superceeded by the mess of other classes involved to avoid all this conflict, you can either 1) Clean up your CSS or 2) This works $(document).ready(function() { $(.tick td).hover( function() { $(this).css(background-color, #c00); }, function() { $(this).css(background-color, ); } ); });
[jQuery] Re: missing ) after argument list error
FF2 and I also tried IE6. The class is not getting added. That error is appearing in FireBug. Funny thing is, when I test it in the script window under the watch tab in firebug it works fine. On Sep 19, 5:35 pm, Aaron Heimlich [EMAIL PROTECTED] wrote: Works fine for me (Firefox 3 on Mac OS X). What browser gave you that error? On Fri, Sep 19, 2008 at 4:13 PM, switch13 [EMAIL PROTECTED] wrote: I can't see why this wouldn't work: $('h1:contains(test)').parents('body').addClass(test_class); -- Aaron Heimlich Web Developer [EMAIL PROTECTED]
[jQuery] Re: an unusual bug. addClass to td inside tr with a class doesn't affect the cell
That's because the inline style declaration has a higher priority than and CSS class :-) Glad you got it working code on!
[jQuery] Validate with bassistance local bug
On this demo: http://jquery.bassistance.de/validate/demo/milk/ I cant get the email validation to work on the second try locally. The above link works fine. If you submit an invalid email address it asks you to reenter it. Great. So I try to move it locally. I downloaded jQuery and the validation plugin. Everything works... except if I try an invalid email.. it throws an error, so I fix it to a valid email and hit submit... nothing. As a second try, I visited the above link, and downloaded the entire source using my browser... same issue. If you type the wrong email in and try to fix it, it will never validate. This demo works and this issue is not seen in the demo. What am I doing wrong? Regards, Kevin
[jQuery] Using variables in selectors
Hi all, I'm frustrated because this does not work: var pageName = foobar.html; var link = $(a[href$=pageName]); link.addClass('selected'); The problem lies within the fact that it seems the jQuery selector I use in the second line does not allow variables. It only works with a hard-coded string (so it seems). So, this does work: var link = $(a[href$='foobar.html']); link.addClass('selected'); I must use a variable, though, because (as you might guess), i'm trying to highlight my navigation link. How can I make this work with a variable? Is there another technique? Thanks!
[jQuery] Re: Using variables in selectors
var pageName = foobar.html; var link = $(a[href$=' + pageName + ']); link.addClass('selected');
[jQuery] Re: What does 'return false' do?
return false will stop the even from bubbling up to other elements and it will prevent the default action from occurring. When you click on a link, the default action is to follow the link to the new href. Using return false prevents that from occurring. Not sure what you mean by resulting page. Do you mean that you have JavaScript events bound to elements in your document, but after you have new content inserted via ajax, the events aren't bound to to the new elements that you've just inserted? If that's the case, this FAQ topic should answer your question: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 19, 2008, at 1:14 PM, light-blue wrote: What does 'return false' do? I make an AJAX request from an HREF, which works. But the resulting page needs Javascript to run on it. I think 'return false' is preventing it. How do I fix that? Here's what I've read so far from the Chaffer / Swedberg book: If we wish to halt both, we can return false from our event handler, which is a shortcut for calling both. stopPropagation () and .preventDefault () on the event.
[jQuery] Re: What does 'return false' do?
Someone else may explain this better than me but... jQuery is attaching an event to your anchors tags (this may be a plugin or a custom script that attaches the events - and it may attach to selected tags) the normal operation of the anchor is to redirect the browser to that location. Sine your event is a AJAX event you want to prevent the default operation and stop the properagtion of the event. A handler onSuccess or onComplete will be listening for a response from that AJAX request which will have a reponse with loaded data or error messages Use firebug (other tools are available) to see requests made by your page - S 2008/9/19 light-blue [EMAIL PROTECTED] What does 'return false' do? I make an AJAX request from an HREF, which works. But the resulting page needs Javascript to run on it. I think 'return false' is preventing it. How do I fix that? Here's what I've read so far from the Chaffer / Swedberg book: If we wish to halt both, we can return false from our event handler, which is a shortcut for calling both. stopPropagation () and .preventDefault () on the event.
[jQuery] Re: Best JQuery pop-up plugin.
My 2 cents... I'm very new to jQuery and I was able to take the jQueryUI dialog plugin and customize it so it's shadowed and theme it to look like Mac OS X windows so it's easily theme-able in my opinion. The documentation on the jQuery site was very helpful in theme-ing. One of the best methods for me was just diving into the ui css file and start playing around in that. I think you'll find the jQueryUI dialog plugin will do what you want. On Sep 18, 11:51 am, crypto5 [EMAIL PROTECTED] wrote: Hi All, what is the best JQuery pop-up window plugin in your opinion? I am not strong experienced in JQuery and looking for such plugin but don't want test everything. So lloking for short cut. Thanks All! -- View this message in context:http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Search for special characters in the autocomplete (no matter whether it is prototype or jquery)
Dear all, We need a solution how to handle special character issue in our application. We integrated a multiple selection id from the autocomplete (as like facebook autocomplete search) library (which developed in prototype). The following is our need, When we enter normal characters (a to z), it should match with the json data (from the preset data only the autocomplete search fetches the result) and display the results. The actual need is, when we enter 'koln' in the textbox field the autocomplete should also fetch/match the 'köln' from the data. But, it is not working now like that. Question is, when we enter an normal character -- whether there is any possibility to convert this character into all the other language characters and do the match. It means if i type 'o', than it should give us an 'o' like characters which is available in other languages (ex: ö - no matter the letter is german or russian) I would like to know, how does we can achieve this. Other infos, 1/. I tried with changing charset from ISO-8859-1 to UTF-8 in the server. 2/. I tried with changing charset from ISO-8859-1 to UTF-8(vice versa) in the autocomplete search page.. but no results yet. 3/. Also, I tried with changing charset from ISO-8859-1 to UTF-8 and other charsets types in the prototype.js too. Note: In facebook, they having this feature. Thanks, Srinivasan M
[jQuery] [n00b] merging input values into another input filed value
I am trying to merge vaues from three different input fields into one resulting when submitting a form. I just acn't get my head around. This the last code that does not work for me. function friends() { var friend1 = $(input#friend_1).val(); var friend2 = $(input#friend_2).val(); var friend3 = $(input#friend_3).val(); $(input#rsvp-notes).val(friend1, friend2, friend3); } Any direction much appriciated Stan