[jQuery] Working with radio elements
--
[jQuery] version
John, I would like to ask (nicely) if you could set $().$jquery each time jQuery evolves. For the moment, I use WinMerge to check if something new is available. It'd be easier to look at a version number! Cheers, Franck. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] event selectors?
<div><a href="http://encytemedia.com/event-selectors/">http://encytemedia.com/event-selectors/</a></div> <div> </div> <div>just found this, does jquuery have something like this?</div> <div> </div> <div>Armand</div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Working with radio elements
OK forget regular expressions, how about substring matches? I have a bunch of elements having class names or DOM ids with the same prefix, I would like to select all of them and operate upon them. Can I do this with jQuery? --- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com> wrote: > Heh, no jQuery doesn't support regular expressions for IDs. That seems > like overkill once you get to that point in development. What's the > structure of your code? Maybe it could be optomized to not
[jQuery] Working with radio elements
--- Andrea Ca'Zorzi <andrea.cazorzi.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] IE5/arguments.length
Revisiting these posts from last week, I did some testing because I use arguments.length in my own code. That MSDN page is wrong. arguments.length is supported at least as far back as the IE5 version that shipped with Windows 98, and probably much farther back than that. Flanagan's book says it was in JavaScript 1.1, JScript 2, and ECMAScript 1. It's an easy thing to test, just throw this in a <script> tag and load the page: function f() { alert(arguments.length); } f(9,8,7); That pops up a nice
[jQuery] append() bug
It seems the latest version of jquery has a bug with the append function. This is my code: $("#navigation.columnView .siteNode > span, #navigation.columnView .folderNode > span").append("<div class= \"expandButton\"></div>"); Three elements are selected, but only one get the div tag appended. In my cached version, it works fine. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] DOM elements or HTML
> From: Franck Marcia
[jQuery] Working with radio elements
Thanks a lot.
[jQuery] Working with radio elements
I have 3 radio inputs with values, say, One, Two and Three There is a DOM node (getElementById) associated with each of these values, call them, Node_One, Node_Two and Node_Three. i.e. the DOM id has the radio input value embedded in it. When radio input One is selected, I would like to show Node_One and hide the other two. When radio input Two is selected, I would like to show Node_Two and hide the other two and so on. How can I do this with jQuery? Thanks __________________________________________________
[jQuery] event selectors?
> From: Armand Datema
[jQuery] parents() function
I thought I'd try making a parents() function that would act as I wanted, and suprisingly, it didn't seem to be too hard. Here's what I have: $.fn.parents = function(f) { jq = $(""); for ( var i = 0; i < this.size(); i++ ) { el = this.get(i); c = el.parentNode; while (true) { jq.add(c); c = c.parentNode; if (c.parentNode == document) break; } } if (f) jq = jq.filter(f); return jq; } It should find
[jQuery] append() bug
It seems the latest version of jquery has a bug with the append function. This is my code: $("#navigation.columnView .siteNode > span, #navigation.columnView .folderNode > span").append("<div class= \"expandButton\"></div>"); Three elements are selected, but only one get the div tag appended. In my cached version, it works fine. Audun Wilhelmsen Bytetastic.com Norway _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Accordion implementation
I have Firefox blinking every now and again when the accordion fx is activated. It looks like it has to do with the scrollbars. I didn't try it in any other browser. I also thought I'd play a bit and see if the accordion effect was protected from the double-click ".slideup/.slidedown" height issue (solved by using oncomplete or the newer automagic-auto). It -- mostly -- is protected. If you double-click a single link, the problem doesn't occur. However, if you click on one link and click on another
[jQuery] roadmap for jquery and better example / vertical example of accordeon
<div>Hi</div> <div> </div> <div>I have an idea for a tutoial, I would liek to comvert over some of my code to jqury plugins. But since I learn best by example it would be great if we had a tutorial on " How to convert your excisting code to jquery plugin" </div> <div> </div> <div>Right now I finished the beginning of a small path animation libary that I would like to extend on and make into plgin for jquery but I am not quite sure where to start.</div> <div> </div> <div>Also is there some sort of
[jQuery] How to get a css value in "each"
How do you get the values of a jQuery item? I've tried several variations, as shown in the document below. The last two alerts error. The first, in Firefox, gives an "o.getAttribute is not a function". The second says "$(this).style has no properties". Is it possible that the width is not yet set when the document ready function is called? I thought I saw something in the Mailing List addressing this, but haven't been able to find it. Thanks. <html> <head> <title>jQuery - Test</title> <script
[jQuery] Working with TH elements
Here is what I am seeing http://i1.tinypic.com/ruqh6b.jpg I did the following loaded the page and ran the following in the JS shell load("http://jquery.com/src/latest.js") $("th#senderheader").css("border","1px solid red") Help? Thanks --- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com> wrote: > Hello, > > I'm not really sure what you're seeing as I'm unable to duplicate it. > Let me know if you see it on this test page (which looks fine to me): > http://jquery.com/test/th.html >
[jQuery] Working with TH elements
For example, go to Yahoo Mail Inbox page, open up the Javascript shell bookmarklet from http://squarefree.com/shell and type load("http://jquery.com/src/latest.js") $("th#senderheader").css("border","1px solid red") See how the red border is not drawn properly? Thanks --- "jquery@vikas.mailshell.com" <jquery.at.vikas.mailshell.com@jquery.at.vikas.mailshell.com>
[jQuery] "Flickering" resize animations
Hello While playing around with the effects I noticed that some of them (those, who resize the components) seem to flicker at the start of the animation. After looking at the Jquery Source I noticed what was happening: It uses scrollHeight/scrollWidth as base values for the resizing and afterwards feeds those values into CSS width/height, thereby increasing the initial size of the component which was about to be hidden by the size of the paddings and borders. I suppose it's not worth the effort and
[jQuery] Working with TH elements
Anyone? Am I doing something wrong? --- "jquery@vikas.mailshell.com" <jquery.at.vikas.mailshell.com@jquery.at.vikas.mailshell.com>
[jQuery] Ajax hacks
I modified the ajax plugin for my needs. Basically, I added a parameter 'context' which can carry any data needed in the function 'ret'. For example: ... function result(data, modifiedObj) { if (!(json = myEval(data))) { $(modifiedObj).remove(); ... Tell me what you think... $.get = function( url, ret, context, type ) { $.xml( "GET", url, null, function(r) { if ( ret ) ret( $.httpData(r,type), context ); }); }; $.getXML = function( url, ret, context ) { $.get( url, ret, context, "xml"
[jQuery] AJAX Tree menu
OK, here is what I have right now. I know there is an easier way to do this than what I'm doing. What is missing here is the collapsing of all parent or sibling nodes that aren't in the path of the selected item. Matt <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "<a href="http://www.w3.org/TR/html4/strict.dtd">http://www.w3.org/TR/html4/strict.dtd</a>"> <html> <head> <script type="text/javascript" src="lib/js/jquery.js"></script> <script type="text/javascript"> var loadDirItems = function(id){
[jQuery] Ajax hacks
> From: Franck Marcia
[jQuery] Working with TH elements
If I have a HTML table with the first row containing column headings using the TH element and a class of "column_heading" and I do $(".column_heading").css("border","1px solid red"); I find that the red border "seeps" into the entire column but only the right hand side of the cell, it is really strange. Anyone else seen this? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
[jQuery] Traversing up the DOM
I am really waiting for a good parents method which I can combine with .find to find specific parent nodes and throw that into the mix! Yummy.
[jQuery] Traversing up the DOM
--- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] empty
Hi all, In a container where the content may vary, I would like to find a way to clean it out then fill it again, with something like $('#container').empty().append(DOMElement,...). Is there something I can use in jQuery or any work around (I mean, something else than $('#container').html(...) ? Franck. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAX Tree menu
Hi, I'm trying to build a collapsable tree menu using JQuery and the AJAX plugin. Actually, my server is returning JSON. What I want to happen is on page load, request the top level items for the menu, and if a node has children, create a new ul for it. When the item is clicked the children for that node are loaded and the sub list is built. The problem I'm having is that when I click a node to get the children, the parent li is clicked and the content for the parent is retrieved again. I also want
[jQuery] Tool used for compress jquery.js, help!!
> > From: SDisk <sdisko@gmail.com>
[jQuery] Tool used for compress jquery.js, help!!
I'm trying include json plugin published by Michael Geary y the same file .js then I've downloaded all jquery sources (base, fx,minifx,events,ajax) plus json plugin and paste in the same document. I tried compress by <a href="http://packet.net"> packet.net</a> and other js compression tools but the result file don't work. I only can compress a bit with jsmin and the result file work correctly but it's too heavy yet (20+kB) :-( what is the tool used for compress jquery downloaded from the official
[jQuery] Accordion implementation
I'm sure you all know this effect: http://fmarcia.info/jquery/accordion.html. With jQuery, it's done with 10 lines only! Many thanks, John. Franck. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Accordion implementation
Can you please explain that step by step?! It is really amazing, but I am not sure I understand it. Thanks in advance. --- Franck Marcia <franck.marcia.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] Accordion implementation
Can you please explain that step by step?! It is really amazing, but I am not sure I understand it. Thanks in advance. --- Franck Marcia <franck.marcia.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] AJAX module vs. Opera
Hi there, currently the AJAX module isn't working in Opera. Opera 8 does not support setRequestHeader, I know, but to fix later versions, the follwing lines: if ( typeof XMLHttpRequest == 'undefined' ) { function XMLHttpRequest() { ... should be changed to this: if ( typeof XMLHttpRequest == 'undefined' && typeof window.ActiveXObject == 'function') { window.XMLHttpRequest = function() { ... Otherwise Opera throws a ReferenceError. This seems a little odd to me, as function foo() { ... } is the same
[jQuery] IE 5/5.5 compatibility
> I tested some simple stuff, but so far the tests already failed for $
[jQuery] IE 5/5.5 compatibility
Hello We started playing around with JQuery and intend to use it on our sites (in our experiments we already saw that we can replace whole scripts with a simple JQuery one-liner - great). My question is about IE 5/5.5 compatibility. We still have about 5% users of both browsers combined, and it would be nice if they'd be supported. I tested some simple stuff, but so far the tests already failed for $ (document).ready() in IE 5.01 - it's simply never executed, but I do not receive any errors either
[jQuery] wrap() crashes Konqueror
Hi there, just wantend to mention that the wrap() method causes the latest Konqueror (3.5.1) on Linux to crash, in detail the following snippet caused the crash: $("#register-form form").wrap("<div></div>"); No rant, just wanted to let you know and help to improve jQuery. OK, this is probably an exotic browser, but maybe someone is going to try to fix the bug... Regards, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Setting attribute nodes with boolean?
> From: Klaus Hartl
[jQuery] Bug: $("#password") and password input elements
Hi all, I just found out, that when you use password input elements and use an id like "password" for one, $() returns a wrong result. I guess id and type messes somehow up here. $("#password") then returns two objects... Here's a file to demonstrate that behavior: http://stilbuero.de/demo/jquery/id_selector_bug.html If you happen to run into such a situation, the following does work correctly and returns one object: $("input[@id='password']") Regards, Klaus _______________________________________________
[jQuery] Tree Menu using jQuery
Hi folks Using the following html; <ul id="masternav"> <li><a href="stuff">parent link</a> <ul> <li><a href="stuff">child link</a></li> </ul> </li> </ul> Basically I want to show the sub ul when the parent li is clicked. However I can't seem to hit only the parents, and clicking any link slides the ul up/down, when I need the sub links to work as normal links. Any clues how I should be going about this? js ------- $(document).ready(function(){ $("#masternav").find("li").toggle(function(){ $(this).find("ul").slideDown("medium");
Next Page