[jQuery] "un.." bug?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">When i attach an onblur event: $('#foo').blur( foo ); and after this i do this (in a seperate function with the element passed as an argument) </font></font><font size="-1"><font face="Tahoma">$('#foo').unkeypress(); </font></font><font size="-1"><font
[jQuery] Dealing with Firefox textarea bug? (somewhat off topic)
Hi folks, I hope this isn't too terribly off topic, since the actual problem is a Firefox bug, but perhaps it will be of interest to other Firefox/jQuery users. I am using a very simple jQuery script to input unusual characters. It simply runs a bunch of substitutions on the .value of a textarea on every .keyup(). Here's a test: http://ruphus.com/debug/eo.html It works fine, but if the text is too long to fit in the textarea, it automatically scrolls back to the top after every keyup -- that is,
[jQuery] reveal/hide toggle
<html> <body> Hi folks, My level of expertise must be very low as the jquery tutorials on this and other sites haven't helped me find a solution to the following question: I have a page that dynamically delivers FAQs from a database. I want to have the question shown, and when a link (on the question) is clicked, the answer will slide down (and when clicked again, the answer will slide up). I can do this with jquery if I know in advance how many FAQs are coming so that I can hardcode the necessary
[jQuery] jQuery hide/show from href target
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
[jQuery] Best way to "bind"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Hi, Simple question, what's most efficient, fast etc.: $("a").bind("focus", function() { this.blur(); }); or $("a").focus(function() { this.blur(); }); -- Gilles </font></font> </body> </html> _______________________________________________ jQuery mailing
[jQuery] Odd behaviour with append()
Hi guys I've got some code similar to the following HTML: <div id="container"> <div id="content"><a href="#">Title</a> <blockquote>blah</blockquote></div> </div> And some javascript as such: $('#content a').click(function(){ var content = $('../../.projects', this).get(0); alert(this.innerHTML); // just to see whats in "this" object $('#container').append('<div id="infobar"></div>'); $('#container #infobar').append(projects).slideDown('slow'); }); $('#container #infobar').click(function(){ this.slideUp();
[jQuery] Dealing with Firefox textarea bug? (somewhat off topic)
> I hope this isn't too terribly off topic, since the actual
[jQuery] form() distinction
I have to return different content depending on whether the forum I submitted was from an AJAX call or not. Using .form() there currently is no way to make that distinction, so I have added this to the end of the $.fn.getForm function right before the return: a.push({name: 'ajax', value: 1}); I have found this helpful, maybe it should be used? Just a tip for others if not. -- Best Regards, Nate Wienert _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Another problems with thickbox
Hi! I know that this list is not about thickbox, but maybe you could help me. First i had problems with .ready event that caused thickbox not being initialized. Now it's even worse. Look here: http://dev.allatjanster.se/mod/freelancer/scr/portfolio/provider/16.html and try to click the image with title 31312. In FF it works correctly, but in IE it is reloaded constantly. The problem is that this gif is animated. When you click on other gifs it works, but when you click on this one it doesn't. If
[jQuery] jQuery script restructure
I've been busy with a script that uses a splash of jQuery that's in need of some expert polish. Currently it displays glossary definitions of terms as an inline pop-up - replacing the regular anchor in the page content. See test page/s here (orange links are defined terms): http://www.ollicle.com/eg/inline-glossary/v1/ It's been suggested that that I add a feature to the script; When clicking on a term - if there is another definition revealed - the already visible definition should be hidden before
[jQuery] show could take an argument
> it would be nice to just say $("#mydiv").show(!somethingorother). If you want a one-liner you should be able use this: $("#mydiv")[somethingorother?"hide":"show"](); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ready() does not work consistantly
Hello I'm seeing some strange behavior from the ready() method. Sometimes it works and sometimes it doesn't. I see this behavior in both Firefox and IE. For an example look here <a href="http://dealresource.com/acura_orange_county/cars/BMW/M/100693825"> http://dealresource.com/acura_orange_county/cars/BMW/M/100693825</a> When working properly you should be able to rollover a thumbnail image and have it appear as the main image. Some additional text should also load below the tab buttons near
[jQuery] Newb question regarding click toggling
Hi I've just moved from [insert other major javascript lib] to jQuery and I've been trying to convert my scripts using the new api. I had a script that showed and hid a div onclick. I was using that most nasty of things: an onclick event attribute on the link....obviously i want to move away from that. This is what the script looked like in its obtrusive way: function toggleList(id, toggler) { if ($("div#"+id).style.display == 'none') { $("div#"+id).slideDown("fast"); }
[jQuery] show could take an argument
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] jQuery messageboard in the future?
Has there been any thought to setting up a messageboard on <a href="http://jquery.com">jquery.com</a>? Maybe PunBB or something? I'm new to the jQuery scene, but the mailing list seems pretty active and I've seen a lot of discussion and postings on other sites about jQuery. I'm a fan of the messageboard format myself... my inbox is filling up rather quickly with this list. :) Brian _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] mouseleave working correctly?
Am I just misunderstanding mouseleave or is it not working correctly? I'm testing it with a div nested inside another, when the mouse hovers over the inner div it should return false for mouseleave because the mouse is still within the parent div, but when it leaves the parent div it should return true, but it doesn't seem to be registering with me at all. Am I just confused and not writting this correctly? $(document).ready(function(){ $('.testfield').click(function(){ $(this).find('.testsub').toggle();
[jQuery] jQuery Tetris
Hi all, A new version of jQuery Tetris is available (<a href="http://fmarcia.info/jquery/tetris/tetris.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://fmarcia.info/jquery/tetris/tetris.html </a>) - new (tiny) effects - more responsive (cache + new version of jQuery using prototype) - fully jQuery-ished (no more d21d) Tested with IE6, IE7b2, Opera 8, FF/win, FF/linux and Konqueror. Please, tell me about Safari as I can't test it. Enjoy, Franck. _______________________________________________
[jQuery] DOMElement != "undefined"
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] live search in one line of code
Hi, I made live search in just one line of code. It works nice in IE, but not in FF (for others I don't know). Because I didn't know how to access to input field, I gave a class to input field and then use it for everything else. There is lot of space for improvements . And there is a line: $(document).ready(function(){$(".liveinput").after("<div id='results'></div>").bind("keyup",function(){$("#results").load(uri+$(".liveinput").get(0).value).show();})}); <br clear="all"> "liveinput" is name
[jQuery] Regarding FX Updates...
I see from the mailing list that John has done some updates to the FX code, with the addition of queuing (which will solve some of my bugs). I also saw that Stefan Petre has done some work with an FX plugin. Some of the effects he shows on his example page are really nice, such as the blind/slide-down and bounce. I was wondering whether there are any plans to incorporate these effects into the main jQuery source, or to produce a "proper" jQuery plugin available from the website? _______________________________________________
[jQuery] Advice request: Pagination/sliding blocks.
Hi guys We're about to start on a new project, and I'd like to get some advice for building a kind of portfolio section. We need to show 6 thumbnails/projects in two rows, and need to slide these to the left one column (hiding the first two projects on the left and adding the next two projects on the right) when the user clicks "Next", reversing this when "Previous" is clicked. Everything else we need to do is pretty straight forward in jQuery. Can anyone offer advice on the best/simplest way to
[jQuery] Is checkbox checked?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi there, I believe the correct way would be:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV>$("#mismatch").get(0).checked = "checked";</DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>-Rory</FONT></DIV></BODY></HTML>
[jQuery] Is checkbox checked?
<HTML > <HEAD> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
[jQuery] Jquery anbd Coldfusion with CFCs?
Hey everyone... I'm new to this list and to using jquery. I'm not much of a js guy but jquery makes it easy (and fun) to learn. Quick question about jquery's AJAX implementation. Currently I'm using an AJAX library called JSMX (www.lalabird.com). It works with any language but is tailored towards Coldfusion. I'm wondering if anyone here is using CF with jquery and might care to show some sample code of how to call a CFC via HTTP request AND pass in some parameters. JSMX is great, but since I'm already
[jQuery] Plugin for client-side form validation
Hi jQuery list, I had some thoughts on js powered form validation. My base idea is this: <script> $(#formToValidate).validate(); </script> <form id="formToValidate" ...> Username: <input name="username" validate="required" .../> Address: <input name="address" validate="minlength#3 maxlength#25" .../> Stuff: <input name="stuff" validate="length#3#25" .../> E-Mail: <input name="email validate="email" .../> </form> The validate plugin would the search for all input elements (including textarea and selects),
[jQuery] Dev tools showdown
Excuse my for going a tad bit off-topic, but as we all know, having great tools (like jQuery) can immensly help the development process. So please state in a few words, what are your favourite Javascript development tools? I'll fire it off, I run them all on Windows XP. Text editor: usually Edit+ (<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.editplus.com/" target="_blank">www.editplus.com</a>, all-purporse editor with built-in FTP browser, syntax highlighting, etc.).
[jQuery] jQuery hide/show from href target
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
[jQuery] Select Parents Next Child from Position (nextSibling).
<p class="MsoNormal">Hi folks, I am having a bit of trouble DOM Traversing with Jquery.<br style=""> For example I have a Definition List: <p class="MsoNormal"><dl> <span style=""> </span><dt> Title 1</dt> <span style=""> </span><dd>Definition 1<dd> <span style=""> </span><dt> Title 2</dt> <span style=""> </span><dd>Definition 2<dd> <span style=""> </span><dt> Title 3</dt> <span style=""> </span><dd>Definition 3<dd> <dl> <p class="MsoNormal">What I want to do is go from <span style="font-weight:
[jQuery] viewport dimensions
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link,
[jQuery] Jistory
Well I haven't formally released it yet, but I figured I would go ahead and post this script to the discussion group. Jistory makes using ajax and urls easier, but it doesn't work in IE (out of choice) atm. I understand it's not the first of it's kind, I just thought all the existing code could be a lot cleaner. Let me know what you all think. http://sunsean.com/Jistory/ ~Sean _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tabs 1.1 - retrieve active tab from hash in URL
Hi, I enhanced the tabs plugin a bit. The active tab is now retrieved from the hash in the URL. If a tab is pointing to a fragment with an according identifier, that tab gets highlighted...: URL: http://someurl.com/#the-tab Tab: <a href="#the-tab">Tab</a> Tab content: <div id="the-tab"> ... </div> It still seems a little hacky to me, because to prevent the browser to sroll to that fragment I had to use timeouts for Opera and IE, but it works nonetheless. Maybe someone has another good idea? It also
[jQuery] Document Ready Fixed
> Nope. Doesn't work either. Do people even bother to test things these > days? Or do they just have an idea and then blog about it? Grrr. > > -dean I apologize for the oversight. Yes, I did test these techniques, but I did so incorrectly. I was basing my test case off other Document Ready examples, which are not sufficient test cases for the problem. The problems became quite clear after I used PHP's usleep to prevent the entire document from being sent immediately. I have updated the post with
[jQuery] Chaining with .NOT() ?
I am having trouble chaining and using NOT. Take for example the following code; [][][][][][][][][][][][] <div id="banner"> test </div> <div id="welcome" style="<?=jsVisible()?>"> <a href="iceburg.php"><img src="images/welcome.gif"></a> </div> <div id="logo" style="<?=jsVisible()?>"> <img src="images/logo/bw.gif"> </div> <script type="text/javascript"> <!-- $(document).ready(function(){ $("div").not("#banner").fadeIn(5300); }); --> </script> [][][][][][][][][][][][] NOTE: I've also tried $("div").not(document.getElementById("banner")).fadeIn(5300);
[jQuery] Search a multi-row Select list
End of conversation. It is bad manners to ask for money on a help forum. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dave Methvin Sent: Thursday, June 22, 2006 12:38 PM To: 'jQuery Discussion.' Subject: Re: [jQuery] Search a multi-row Select list
[jQuery] IE5 support?
> > Hmm... No IE5 support? This is news to me, and a problem for my app
[jQuery] IE5 support?
> From: John Resig
[jQuery] Jistory
> Are you planning to add support for IE, or all those other browsers? You are opening a real can of worms there. See Brad Neuberg's "Really Simple History" to get an idea of how much work is involved in supporting IE and other browsers. RSH is not coded very well - there is a lot of duplicate and and less than optimal code - but still it illustrates the level of effort required to do a more complete job of this. -Mike _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Setting Opacity of an Element
I notice the fadeIn, fadeOut, etc. are able to set the opacity. Looking through fx.js you find the responsible function; --- fx.Opacity = function(a,b){ var o = new fx(a,b,"opacity"); o.cur = function(){return parseFloat(o.el.style.opacity);}; o.a = function() { var e = o.el.style; if (o.now == 1) o.now = 0.9999; if (window.ActiveXObject) e.filter = "alpha(opacity=" + o.now*100 + ")"; e.opacity = o.now; }; o.io = o.now = 1; o.a(); return o; }; --- however, I can't seem to access the opacity function
[jQuery] event-handling extra data best practices
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] onlyAllow class: Extendable with your own "allows"...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Hey, Inspired by Sam's numeric function i started on porting some of my own functions to jQuery-ish code. I've made a class called "onlyAllow" which is used by 2 plugins i wrote for jQuery called: - $.fn.onlyDigits() --> Basicly thesame as Sam's numeric
Next Page