[jQuery] $.val() limited in functionality?
> The API says that $.val() will: > Get the current value of the first matched element. Yes, it is equivalent to $().attr("value") so it gets the value attribute of the first element. > The API says that $.val( string ) will: > Set the value of every matched element. Yes, it will set a "value" attribute for each element, regardless of whether the doctype indicates the element has a "value" attribute. Generally you'd only want to use .val() in cases where the element responded to having a "value"
[jQuery] $.val() limited in functionality?
*raises hand* Yea, that'd be nice... I expected $.val() to return the value of any and all form elements, and was disappointed to find out otherwise. -ALEX -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Brandon Aaron Sent: Tuesday, November 14, 2006 6:32 PM To: jQuery Discussion. Subject: [jQuery] $.val() limited in functionality? I often times just need to know the value of one form element and sometimes that could be a group of radio
[jQuery] jQuery 1.1 by the end of Nov
Ok , here goes my point of view: My ideal Jquery first objectives are: 1. Writing Javascript code should be fun (CORE got it! Chainability, ...) 2. Resolve compatibility issues/behaviors with W3C Standards and browsers: DOM, CSS + selectors, Javascript, XHTML, EVENTS and XMLHTTPRequest. So, for that exist: - DOM, - CSS [+ Dimensions plugin is included here as expected behavior], - EVENTS, - and little part of AJAX but, please, avoiding redundances - just css(), attr(), bind(), etc.. - and only CSS
[jQuery] JSON Serializer
I'd like to serialize Objects, Arrays, Strings, Booleans, Dates, and Numbers (the basics) to JSON. With Prototype, I'd used the json.js library from JSON.org. http://www.json.org/json.js This library extends the base objects, which breaks the latest Google Maps API and jQuery to boot. Can anyone suggest a JSON serialization library that doesn't extend the base objects? Otherwise, would anyone be interested in such a thing? -- Alan Gutierrez - 504 717 1428 - alan@blogometer.com - http://blogometer.com/
[jQuery] Why does this code not work?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0619.000"> <TITLE>Why does this code not work?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"><FONT
[jQuery] $.val() limited in functionality?
> Currently val() is only a shortcut, but doesn't encapsulate anything > useful. It would be nice to have it handling some more stuff. > I wouldn't like to have it in an external plugin, that makes it difficult > to access or find it when you actually need that functionality. Right now val() is a macro that means .attr('value') and I agree it isn't pulling much weight. Without a rescue it looks like it will be gone in jQuery 1.1. But there is probably some way only a few characters longer that could
[jQuery] jQuery 1.1 by the end of Nov
I don't see why there can't be both. 'Hey, new to jQuery? Download this, take it for a spin, see what everyone is raving about!' 'Developers, familiar with jQuery? Fine tune your build however you want, just click here...' It's all about how we position the system and how we educate new users. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of jshedd@pjdoland.com Sent: Tuesday, November 14, 2006 9:42 PM To: jQuery Discussion. Subject: Re:
[jQuery] jQuery support for namespace attributes
In an expression like this: myns|div[@myns|attr=whatever] How does myns get associated with the actual XML namespace URI? getElementByTagNameNS needs the URI, not the name. I have not needed namespaces before so I am not familiar with how that would work. As for how much code it takes, the only way to know for sure is to write it. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] StyleSheets
On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez <> said:
[jQuery] StyleSheets
On Wednesday, November 15, 2006 9:05 AM Alan Gutierrez <> said:
[jQuery] StyleSheets
I'm not finding any methods for editing stylesheets. I'd like to change a style as it is defined in the document. -- Alan Gutierrez - 504 717 1428 - alan@blogometer.com - http://blogometer.com/ Think New Orleans - http://thinknola.com/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] console for IE question
Hey, I am trying to use the console script in IE but it gives me a TypeError message. 'window.top.deBugWindow.document; is null or not an object I am using like: console.log("start init()"); Is there anything else i need to do to use this? Any help would be great. -- View this message in context: http://www.nabble.com/console-for-IE-question-tf2637512.html#a7361728 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] jQuery support for namespace attributes
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV><FONT face="Trebuchet MS"><SPAN class=542251814-15112006>Klaus Hartl wrote:</SPAN></FONT></DIV> <DIV><FONT face="Trebuchet MS"><SPAN class=542251814-15112006>> </SPAN>I think, the correct way to select namespaced elements in CSS is this:<SPAN class=542251814-15112006> </SPAN></FONT></DIV>
[jQuery] $.val() limited in functionality?
> > I often times just need to know the value of one form element and
[jQuery] .empty() not emptying...
<!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 face="Courier New, Courier, monospace">Hi folks, I'm trying to do what I thought was pretty simple: <font color="#6666cc"><font color="#ff0000"> $("#id").empty();</font> </font> where "#id" is the id of a textarea. I'd like to clear out the text area when my ajax call returns. What am I doin'
[jQuery] Generic mouseover jode via jQuery?
Gonna try this one last time. I suspect that something might be up with my company's blocking software as I haven't gotten jQuery emails for the last 3 or 4 days. -----Original Message----- From: Andy Matthews [mailto:andy@icglink.com] Sent: Tuesday, November 14, 2006 2:21 PM To: [jQuery] Subject: Generic mouseover jode via jQuery? Not sure if this went through the first time, so I'm resending. ----------------------------- I've got mouseover code I've been using for several years now. It works really
[jQuery] window plugin: update
Hi Guys, You've probaly seen the Ajaxian post on the YUI dialog. Well i am happy to report that i've almost completed my plugin (after i released cssHover i did a complete rewrite) and it offers almost thesame functionality as the YUI version: * Fully themable * Fully customizable (e.g. isDraggable, isResizable, hasStatus, setContent, setContentURL, useIframe, Modal, Non-Modal etc. etc.) * Callbacks: onOpen, onLoad * Easy to use. All you have to include are my cssHover class, the interface iDrag,
[jQuery] optimize/convert current code to jquery
Hey all, Attached is a function that I currently use to take the results of an xml import and put it into an array that I can use thru-out the code. you will see some function in there like getChildNodesByAttribute, getAttribute and getElementsByTagName, these are functions a created ie: function getChildNodesByAttribute(xml, who){ return xml.getAttribute(who); } When I would like to do is convert my code over to using jquery more. Since I still noob, I am going to need a little direction. Thanks
[jQuery] More event object strangeness
Hi all, here's a problem I don't understand. I'm currentlx fixing my history/remote plugin for IE and what I need to do is adding to history only if a true click ocurred and not a triggered one. That works quite good by checking e.clientX. But in IE I found some strange behaviour, or I just don't understand: $.fn.remote = function(output) { ... return this.each(function(i) { ... $(this).click(function(e) { }); }); }; Now in the click handler function * in case of a triggered click everything's seems
[jQuery] More event object strangeness
> Seems to be a closure problem: The parameter of the outer function
[jQuery] Prototype compatibility - a different approach
<div> Hi all, I actually posted this in bug <a href="http://jquery.com/dev/bugs/bug/137/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">#137 - Prototype Support Plugin</a>, but then I realized it might be more appropriate on the mailing list, since I'm looking for feedback on this idea. Is the main issue here making jQuery compatible with Prototype, or just making it compatible with all other libraries (now including mootools et al) which use '$' as a shortcut in the global
[jQuery] Bug #267 is now fixed
This seemed to be a bug that affected several apps so I wanted to let the list know I just posted a fix to SVN. http://jquery.com/dev/bugs/bug/276/ Please test if you can because 1.0.4 is coming soon and we don't want to introduce bugs or cause problems with any existing plugins. -- Brandon Aaron _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Opening popup window using jQuery to a.href?
Hi Folks, Ok, I am being stupid and can't work this out and it's probably so simple. What I want to do is keep my site XHTML valid, so I don't want target= params in any of my links, I want to use jQuery to take the href param from any clicked link with rel="nofollow" which only my external links have, and pop it into a new window. My code so far looks like this: $(document).ready( function(){$("a[@rel^=nofollow]").click( function() { window.open("a.href") } ); } ); Now, from this all I am getting
[jQuery] aborting an ajax request
Hi, i was searching for a way to abort an existing ajax request, not on timeout but explicitly and i did not find anyone. I propose to let the ajax function return the XMLHttpRequest object. This light change would allow to abort the request. To have this feature working for all ajax request, for the load, the get the post function etc.., additional changes will be needed, but maybe just changing the ajax function is sufficient. Renato _______________________________________________ jQuery mailing
[jQuery] jQuery 1.1 by the end of Nov
> > Dunno how to handle the current oneEvents like oneclick: Extending bind
[jQuery] new jQuery API draft
> One suggestion, I really love in the php documentation: it should be
[jQuery] Which CMS / Wiki jQuery.com is using
as title... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery 1.1 by the end of Nov
-------- Original-Nachricht -------- Datum: Tue, 14 Nov 2006 16:24:12 -0500 Von: Rey Bango <rey@iambright.com> An: "jQuery Discussion." <discuss@jquery.com> Betreff: Re: [jQuery] jQuery 1.1 by the end of Nov
[jQuery] jQuery 1.1 by the end of Nov
I was just thinking the same thing. Would this be possible? The file names would need to be consistent so that a plug in could require jquery+ajax+forms.js or something like that. Version numbers could get tricky. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of kscholl.jq@comcast.net Sent: Tuesday, November 14, 2006 1:47 PM To: jQuery Discussion. Subject: Re: [jQuery] jQuery 1.1 by the end of Nov Perhaps a download configuration tool similar
[jQuery] jQuery 1.1 by the end of Nov
Perhaps a download configuration tool similar to what is offered with the interface plug-in? Allowing the user to choose the modules he/she needs, thus creating their customized "baseline" JQuery file on the fly, would be great! Kevin _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Is this a typo in the API, or am I being dense?
<!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="Courier New, Courier, monospace">Hi folks, I was looking at the toggleClass method in the API, and it says this: <font color="#000099"> </font><font color="#000099"> jQuerytoggleClass( String class ) Adds the specified class if it is present, removes it if it is not
[jQuery] 3D Carousel
http://interface.eyecon.ro/development/demos/carousel.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery support for namespace attributes
Hello all, Are there any plans to add support for namespace qualified attribute selectors? This would would allow the following code to work with the example xhtml doc. Script: $('table[@my:data-url]'); Doc: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:my="urn:my-stuff"> ... <table my:data-url="getdata?type=employees-by-project"> <colgroup my:field-expr='lastName "," firstName'/> <colgroup my:field-expr='deptName "(" deptId ")"'/> <colgroup my:field-expr='projectName'/> ... In the
[jQuery] jQuery 1.1 by the end of Nov
I have to say I absolutely *hate* the "build your own" library thing. First, when trying a new library, I don't often know what I need, so I end up downloading one set of files (click, click, click) only to discover I needed something else (click, click, click, click) then two weeks later I want something ELSE (click, click, click, click, click). I say, find a standard set of things that should be included in jquery (personally, I'd ditch the effects stuff, as they're so minimal it'd be better to
[jQuery] Selecting a Single Node
Day three of jQuery. How do I select a single node? This is the best I can figure. $("#map").each(function() { map = new GMap2(this) }) -- Alan Gutierrez - 504 717 1428 - alan@blogometer.com - http://blogometer.com/ Think New Orleans - http://thinknola.com/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] calling xml but not ajax
Hey all, I have a site that needs to be able to run on both a server and a cd and i have to call in an xml file. I have it up and running, but the amount of code i needed to use is, well, to much. How do i go about using jquery to call in this xml file? url in question: http://dnatech.informationexperts.com/ thanks, Benjamin Sterling -- View this message in context: http://www.nabble.com/calling-xml-but-not-ajax-tf2631946.html#a7345517 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________
[jQuery] jQuery 1.1 by the end of Nov
Fairly new to Jquery, but from what I see already, the amount of code that needs to be written is very minimal when using jquery. I am currently converting about 5 js files totaling about 1000+ lines of js code to utilize jquery and already took one js file the was 549 lines (uncompressed) and 12k to about 223 lines and about 4k. Point is, if the jquery file is 20k or even a little more, the amount of code that would be saved is a good trade off in my mind. Now granted, that is my sites situation.
[jQuery] Object vs. Array looping
Hi all, In the .css method an array is created by: d = ["Top","Bottom","Right","Left"]; Then it is looped through using object looping: for ( var i in d ) { This probably isn't a problem for most people, but we have added functions to the Array prototype, so whenever the .css method is used it dumps the text of all those functions into the CSS and bloats the code considerably. I made the following patch and tested it. It seems to work fine: Index: jquery.js ===================================================================
[jQuery] Which CMS / Wiki jQuery.com is using
And I believe Drupal is the CMS behind the rest of it. m. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of howard chen Sent: Tuesday, November 14, 2006 2:15 AM To: discuss@jquery.com Subject: [jQuery] Which CMS / Wiki jQuery.com is using as title... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Fix for onchange in iSortables
Hi The Interface Sortables plugin was not firing on "onchange". This is because the iDroppables plugin expects a property called "onchange" but is being given one called "onChange". To change this you need to go into iSortables.js on line 242 and change the first "onChange" to "onchange". Hope this helps someone. Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page