[jQuery] FW: Not working in IE
<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=windows-1255"> <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>
[jQuery] JQuery won't use new elemnts won't
<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=windows-1255"> <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] Not working in IE
<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=windows-1255"> <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>
[jQuery] $() speedup available for testing
> From: Franck Marcia
removeClass fixed
Hi everyone, I know a couple of you mentioned the problems with removeClass - I just found the problem and pushed it live. If you could please check the latest version of jQuery and see if it works for you, I'd appreciate it. Thanks! http://jquery.com/src/latest/ --John
[jQuery] Somebody wants to make fx.fadeTo ?
I have an issue with the fadeIn and fadeOut functions. I want to fade in an element from 0 (hidden) to e.g. 0.8 (80%). How do i do this with jQuery? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] JQuery slow?
> From: Arash Yalpani
[jQuery] Pager plugin
Hi all, maybe one or the other finds that useful, I wrote a plugin to dynamically build a pager from a list. Say you have a container with an unordered list in it: <div id="container"> <ul> <li>...</li> <li>...</li> <li>...</li> <li>...</li> </ul> </div> You then simply call $.pager("container") // show ten items $.pager("container", 20) // show twenty items and there you have a simple pager on top, totally unobtrusive: 1 2 3 ... Here's the code: $.pager = function(containerId, limit) { var pagedUl
[jQuery] Accordion implementation
Gday I sent this post earlier but I guess it got lost...so I'll try again... To anyone who is interested (John I don't know if you'll read this but I hope you do!). I found a way to fix the accordian flicker problem in IE6 (I can't test other versions of IE but I can imagine it's the same). It seems (after lots of trial and error) that the IE6 has a rendering problem on the rare case when overflow is hidden, display is block and height is 0px. It seems to just leave white space of the area which
[jQuery] Selecting buttons fix - fixed
Gday My earlier post I left out the 'case:' between 'button' and 'submit' This is the fixed button selector....sorry about that... case 'text': case 'radio': case 'checkbox': case 'hidden': case 'button': case: 'submit': case 'image': case 'password': case 'reset': case 'file': r = $.merge( $.grep( $.tag(o,"input"), function(a){ return a.type == m[2] }), r ); if ( m[2]=='button') r = $.merge( $.tag(o,"button"), r ); break; case 'input': r = $.merge( $.tag(o,"input"), r ); r = $.merge( $.tag(o,"select"),
[jQuery] Selecting buttons fix
Gday May I suggest the following for Jquery $.Select to allow for button tags as well as the input type='button' class. Typically I would see this as zero impact on most peoples existing code as they would use either input or button and not both at the same time. case 'text': case 'radio': case 'checkbox': case 'hidden': case 'button': 'submit': case 'image': case 'password': case 'reset': case 'file': r = $.merge( $.grep( $.tag(o,"input"), function(a){ return a.type
[jQuery] Expression for dot-separated id
I have a div like: <div id="product[0].Name"></div> What is the correct expression to query for this? $("product[0].Name") doesn't seem to work. Regards, Andrew _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Checking for form changes
Hi all I need to disable submission of a form unless something is entered (radio selected, checkbox checked, text input inputted...). At the moment I'm using jQuery to loop through all the text/checkbox/radio input elements and check their type, value, and selected status when submit is hit. Is there a quicker way I can do this with jQuery? Phill _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] JQuery slow?
Hi, I am doing this very simple test on a page with about 20 images (in total, all of class "gravatar"): $('img.gravatar').each(function() { void($(this).width); }); The problem is that it takes 8 seconds to process in Internet Explorer, completely locking the screen during this time. Profiling the same with FF, it "only" takes half a second (which is not too good either). Am I using the width-property in an unproper way? Any idea what causes this slow behaviour? Thanks and greetings, Arash _______________________________________________
[jQuery] SVN/CVS?
Is there any chance for SVN/CVS access to the latest jQuery? I keep a directory of sources and find it the easiest way to be up-to-date with all the great code that floats out there. SVN is RSS for coders :) -- Michał Tatarynowicz Sputnik! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tying to make it work...
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255"> <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 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] Serializing a form
Newbie alert. I've tried all sorts of weird combinations and I just don't get it. I just need one example and I'll be right... how to serialize the form elements and capture the event so it doesn't do a page refresh, and have any results appear in "target" ?... <form id="myform" action="some.php"> <input name="username"> <input name="password" type="password"> <input type="submit" value="Login"> </form> <div id="target"></div> I can't seem to get past this snippet, and I have no idea how to hook
[jQuery] Strange behavior with append() and nested DOM nodes...
> [When I] try to append that single node like this > $("#np-login").append(form); > that doesn't work correctly. But if I am passing the > form as a single list item, everything is fine: > $("#np-login").append([form]); Ah, I think I understand this one now. Follow the trail. Forms have a length property: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref erence/properties/form.asp $().append() calls $.clean(arguments) to get the list of nodes to use. Because the arguments
[jQuery] Can this be done with jQuery?
<!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">Hello, I was planning on moving from Prototype and Scriptaculous (now a whopping 180kb --> 45kb with gzip on) to jQuery. </font></font><font size="-1"><font face="Tahoma">Most of the things i need are doable in jQuery but </font></font><font size="-1"><font
[jQuery] Tying to make it work...
<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=windows-1255"> <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] find elements by nodeType
I was writing some jquery functions to return the next, previous, first and last sibling. The problem that started this was Firefox and IE return different elements for previous and next siblings. I really only want element nodes to be returned. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Strange behavior with append() and nested DOM nodes...
--
[jQuery] Thickbox/JQuery and Firefox not working
<!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"> Hi there all! I'm Dave Reid and I'm trying to solve a problem between the Thickbox WordPress plugin (and the included JQuery script) and the Performancing Metrics tracking JavaScript. The Metrics code has a link-tracking function that saves onclick functions into a oldonclick event, then
[jQuery] find elements by nodeType
Is there a way to use $().find to find all of the child nodes of an element of a specific nodeType? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Automatic on-hover for images
This script automatically changes images with class "Hover" on mouser hover (for menus etc.) FILES: test.gif test_over.gif HTML: <img src="test.gif" class="Hover"/> JS: $.auto.hover = { init: function() { $('IMG.Hover') .bind('mouseover', this.enter) .bind('mouseout', this.exit) .each(this.preload); }, preload: function() { this.preloaded = new Image; this.preloaded.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"); }, enter: function() { this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2");
[jQuery] $(document).ready() does not work properly
Hi all, I discovered a few times now, that $(document).ready() does not work properly. The first time I recalled a function until the element was found: if ($(this.INDICATOR_ID).size() == 0) { var f = (function(o, i, d, c) { return function() { o.change(i, d, c); }; })(this, arguments[0], arguments[1], arguments[2]); try++; if (try < 10) { // try max 10 times to find element... setTimeout(f, 200); } } else { //process as intended } You get the picture... Next time it worked with a simple timeout:
[jQuery] Strange behavior with append() and nested DOM nodes...
Hi all, good to see the mailing list is working agagin... just wanted to let you know, that I experienced some strange behavior when using append() together with nested DOM nodes. Actually I am using Micheal Gearys cool DOM creation plugin (http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype): If I am creating a form like this: var form = $.FORM({action: "/start.php", method: "post"}, $.FIELDSET({}, $.P({}, $.LABEL({"for": "dyn-username"}, "Username"), $.INPUT({id: "dyn-username",
[jQuery] Accordion implementation
Hello again. To anyone who is interested (John I don't know if you'll read this but I hope you do!). I found a way to fix the accordian flicker problem in IE6 (I can't test other versions of IE but I can imagine it's the same). It seems (after lots of trial and error) that the IE6 has a rendering problem on the rare case when overflow is hidden, display is block and height is 0px. It seems to just leave white space of the area which the content would fill ignoring the overflow setting. (And thus
[jQuery] Show (or maybe hide) making div grow
Hi, I'm having a problem with the show/hide methods. Calling show and then hide multiple times seems to make the div that I'm calling them for grow on each iteration. It doesn't happen if I just call the show method over and over again. Using Opera it looks like the growth actually happens when the hide method is called. Has anyone else come accross this problem? Browser: firefox 1.5, Konqueror 3.4.3, Opera 9.00 Pre 2 Code: $('div#editform').show('slow'); $('div#editform').hide('slow'); Thanks Rob
[jQuery] removeClass not working correctly in recent versions
Hi jQers, I am reposting this (from 24th April) incase it was lost somehow. Apologies if you have all seen it and are not interested - response rate on this mailing list is usually amazing and I've heard nothing so here is my issue again: Can anyone confirm my observations that removeClass is not working correctly in recent (latest) version of jQuery? I have set up a test case to show the problem. The thing is, when I update an experiment I did a month ago to the newest version of jQuery, removeClass
[jQuery] Selecting a DT's parent DL element?
--
[jQuery] XHTML Strict and append()
I got an error while working with a strict xhtml page and thought I'd convert the jquery.com to XTHML to see if its usage of append() also throws the same error, it does. This may not be a jQuery-the-package issue but I suspect it will bite at some point... would anyone know how to work around this error (from Firebug) ? undefined entity (line 1) <div xmlns="http://www.w3.org/1999/xhtml"><input type="submit" value="» Run"/> ------------------------------------------^ Converted XHTML example
[jQuery] Selecting a DT's parent DL element?
Hi all I'm having a bit of trouble with DL lists. I've got three on a page, each has 3 DT elements. I'm using jQuery to match against one of these elements, and I need to find its parent DL. I'm having trouble with it though. Can someone point me in the right direction? Thanks. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] callbacks on effects?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1543" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=261062502-26042006>Hi,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=261062502-26042006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=261062502-26042006>has anyone implemented simple callbacks when slideUp or slideDown
[jQuery] Chainable effects
Methods such as fadeOut() return immediately, after setting a timer which actually does the effect. They do take a second argument, a function which is called after the effect finishes. (I think it can also be an object of some sort, but a function will work.) So, you can do this: $(element).fadeOut('slow', function() { $(this).html(myString).fadeIn('slow'); }); For a related discussion, see this page: http://jquery.com/discuss/2006-April/ and follow the links titled "A delay method?" -Mike
[jQuery] Thickbox/JQuery and Firefox not working
<!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"> So I think I might have figured out a temporary solution: I replaced the following in thickbox.js: <blockquote> <pre>//add thickbox to href elements that have a class of .thickbox $(document).ready(function(){//when the document is loaded $("a.thickbox").click(function(){ var t = this.title || this.innerHTML
[jQuery] JQ Won't get elements .value
<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=windows-1255"> <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>
[jQuery] Chainable effects
Hello there. I'd like to fadeOut an element, change it's innerHTML, then fade it back in again. I was hoping that the following code would work: $(element).fadeOut('slow').html(myString).fadeIn('slow'); Rather than executing the html and fadeIn functions after the fadeOut had completed, however, they executed without waiting. Is there a simple way to do this? Best wishes, Dave Cardwell. http://davecardwell.co.uk/ _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Accordion implementation
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE> <META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=281420103-26042006>Hi</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=281420103-26042006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=281420103-26042006>I was just looking at JQuery for possible
[jQuery] removeClass() did not work?? [u]
Please have a look at the simple attached example. It's no problem to addClass("big") to the a-tags but removeClass("big") didn't remove the class or didn't apply the change to the elements. The problem is on IE6, Mozilla1.8 and FireFox 1.5. Is this a bug or did I miss something? Regards, Stefan Flick simple example file: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> <!-- function decorate() { $("a:fett").addClass("big"); }
Next Page