[jQuery] [jquery] if element exist
Someone will correct me if I'm wrong, but if you simply want to execute your own logic based on the existence of an object, then the following snippet if ($("#name).size() > 0) { ... your logic without any jQuery methods ... } is inefficient since $() does quite a bit of work when it wraps itself around an object. If you are going to apply some jQuery methods to the item, then this is better: var n = $("#name"); if (n.size() > 0) { ... Your logic ... n.method();
[jQuery] [jquery] if element exist
sily question, how to verify if there's an element in the page? ex. if '#name' exists { } _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] I'm stuck
Hi, sorry, but I'm stuck again. Could someone please help me translate this: if(top.left_search.document.getElementById('tab3').style.display == 'block') into "jQuery". I tried these to get the element itself, but both don't work: if($('#tab3 :display', top.left_search.document).size()) if($('top left_search document #tab3').size()) And I have no idea how to check for "style.display == 'block')"... Michael _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] [jquery] if element exist
Assuming "name" is an ID (<tag id="name" ...) then I believe this is what you're looking for: if (document.getElementById("name")) { ... some actions ... } If all of your desired actions are to be performed by jQuery $(), then $("#name").action().action().action() works well. > sily question, how to verify if there's an element in the page? > > ex. if '#name' exists { } _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Autocomplete plugin: improved IE support
Danka! <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dylan Verheul Sent: Thursday, August 03, 2006 2:08 PM To: jQuery Discussion. Subject: Re: [jQuery] Autocomplete plugin: improved IE support See http://www.dyve.net/jquery/search.phps for the source.
[jQuery] possibility complicated color coding question...
<!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></HEAD> <BODY> <DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2>That's not a bad idea...</FONT></SPAN></DIV> <DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2>Problem
[jQuery] Autocomplete plugin: improved IE support
I LOVE YOU Dylan!!! This is exactly what I needed! Are you using the current SVN release? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dylan Verheul Sent: Thursday, August 03, 2006 3:07 AM To: jQuery Discussion. Subject: [jQuery] Autocomplete plugin: improved IE support
[jQuery] possibility complicated color coding question...
I'm creating a map of sorts for use in a personal site. It's a 40x40 grid with a few hundred points (see link below). There are usually around 300-500 points on the map and by default each point is color-coded by population. Right now the color comes from the query which generates the map, but what I'd like to do is have a default color for each row (maybe from from the SQL query), but changeable based on a dropdown list which would change the color coding based on a few options, for example total
[jQuery] Chaining event handlers
I appreciate everyone's comments. Chaining dependent handlers is, at least to me and some other folks I know, a legitimate need. And it appears that .handleEvent() *could* provide such functionality. Whether or not it should is up to the jQuery's "owners". As for going against the DOM convention, that's exactly why I think the functionality is needed. If the DOM has a mechanism to implement dependent events, then please let me know. But if the DOM does not, that does not mean that what I am attempting
[jQuery] Plugin aggregation
There's a ton of activity on jQuery now, but we're already starting to see some stale links to old jQuery plugins, plus plugins that no longer conform to the jQuery core. I was hoping to try to aggregate known jQuery plugins in one place (plus do some basic transformations to bring old plugins up to date). I've been toying with an automated testing system for the plugins, so we could create a plugin demo page for each plugin, and people could report browser-specific errors on that page. I'd appreciate
[jQuery] Looking for the following in javascript, anyone seen it.
Hmm... I don't think I've ever seen javascript that does this effect. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Armand Datema Sent: Thursday, August 03, 2006 9:43 AM To: jQuery Discussion. Subject: [jQuery] Looking for the following in javascript, anyone seen it.
[jQuery] Autocomplete plugin: improved IE support
Search for birds. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Acuff, Daniel (Comm Lines, PAC) Sent: Thursday, August 03, 2006 8:26 AM To: jQuery Discussion. Subject: Re: [jQuery] Autocomplete plugin: improved IE support Hi ya'll, I typed into the input box, what is
[jQuery] Back button in jQuery
Hi! Is there any support for the back button in jQuery-AJAX calls? I'm starting to grow real fond of jquery, and I'd like to use it for my next project. However, breaking the back button is a big no-no of useability in my opinion. If there is no support for it, I might look into making a plugin on my own. Thanks! - Magnar _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Autocomplete plugin: improved IE support
Dylan... Would you care to post the contents of search.php for the autocomplete? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Andy Matthews Sent: Thursday, August 03, 2006 8:24 AM To: jQuery Discussion. Subject: Re: [jQuery] Autocomplete plugin: improved IE support
[jQuery] Autocomplete plugin: improved IE support
Hi ya'll, I typed into the input box, what is supposed to happen? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Andy Matthews Sent: Thursday, August 03, 2006 9:24 AM To: jQuery Discussion. Subject: Re: [jQuery] Autocomplete plugin: improved IE support I LOVE YOU Dylan!!! This is exactly what I needed! Are you using the current SVN release? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink,
[jQuery] $(selector, context) changes in latest release?
Hi, I'm just trying to update my date picker plugin [1] to the latest version of jQuery (rev. 152) and am having some issues. From a quick check, they seem to be coming from a call to $(selector, context). I remember reading something on this list about an optional third parameter to the $ function being added in the new version but I can't find it now and I'm wondering if it could be related? Otherwise, here is the code that worked on rev. 88 and doesn't work on rev. 152: $.fn.findClosestParent
[jQuery] Inline Editing with jQuery and Multiple Params
Hi all, I saw the blog entry about the Inline Editing with jQuery and would like to know how to pass both the editted content and an id value to the action page. I've pretty much understand the the content is a form field with the name of 'q'. Is there a way that I can also pass over another parameter that contains the id of the content? Your help you greatly be appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/Inline-Editing-with-jQuery-and-Multiple-Params-tf2040496.html#a5616108
[jQuery] Select/Multiselect
Hi, sorry if this is one of my stupid questions again, but are there any helper-functions in jquery that give me all selected options in a select /multi-select box? And if so in which version, because at the moment I'm using the stable version. Michael _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] href = $("#pre, #next").attr("href"), then how can i return $("#pre")'s href ?
hi, all. i wrote some code like this: .... var href = $("#pre, #next").attr("href")<br clear="all">.... then how can return $("#pre")'s href ? or $("#next")'s href ? this only an exsample, i know i can deal them separately, but i want to know how to deal them when with lots of elements. thanks in advance. -- <a href="http://realazy.org">realazy.org</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] #show() in R170 is now _show()?
Tracking SVN changes since R159. What's the deal with the new each namespace and why have #show(), #hide(), and #toggle() all suddenly gained a leading underscore? Corey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] use variable in $("")?
hi, can i use variable in $("")? such like this: var <span style="font-weight: bold;">href </span>= $("#pre").attr("href"); alert($("#thumbnail > li > a [@href=<span style="font-weight: bold;"> href</span>]").find("img").attr("alt"));<br clear="all"> I see no effect. how can do that? thanks in advance. -- <a href="http://realazy.org">realazy.org</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Select Prev Element?
My selector is as follows: li + li.active The element in question that I want is the first li but naturally li.active is returned... Is there an easy way to do this? -js _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Chaining event handlers
<!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.2900.2912" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=570455300-03082006><FONT color=#000080 size=2>i don't find it sloppy at all since event bubbling works in the same fashion. an event queue is superior to hard coding specific sequences since it allows flexibility. with the isValid() { ajax stuff } approach,
[jQuery] Chaining event handlers
I've got two submit handlers for a form. The first validates the form entries. The second submits the form as a web service call (AJAX). I'm using $(form).submit( fValidate ) followed by $(form).submit( fSubmit ). fValidate() returns false when validation fails but fSubmit still fires. Shouldn't jQuery's handleEvent() stop processing after a handler returns false? (see change below.) function handleEvent(event) { var returnValue = true; event = event || fixEvent(window.event); var handlers
[jQuery] Interface plugin not working with the newest version?? [u]
> I think a little upgrade guide would be useful for the wiki. yes absolutely! without i've to poke around in the sourcecode (wich is a fantastic training - but unfortunately time consuming) btw: i've just updated one of the plugins from your page (Focused Field Outlines from Sam Collet)http://sam.collett.googlepages.com/outlineTextInputs.html to work with the newest svn version and also in IE updated code is here, feel free to update your site (don't have sama email...) /* Description: Outlines
[jQuery] New plugin: Autocompleter [u]
Very nice and useful job! I really like this plugin because it's very handy. I like to give you also some feedback.
[jQuery] Using SVN's $Rev for the version string is somewhat error prone
Since most people use JQuery as a suite of functions they may assume that $.jquery will always equal the latest revision number. The current SVN revision is 170. The current SVN rev in jquery/ jquery.js is 169. This is because the last time the jquery file was touched was revision 169. $ svn log -v -r 169:170 ------------------------------------------------------------------------ r169 | john | 2006-08-01 00:35:37 -0700 (Tue, 01 Aug 2006) | 2 lines Changed paths: M /jquery/jquery/jquery.js Fixed
[jQuery] Moving DOM elements
> if you re- .appendChild with a node that is already in the > document, it moves it from it's original location. At least it > does in non-jQuery code. I'm not sure if jQ's append(), > etc keep the same behavior If your jQuery object contains more than one node, the append(), prepend(), before(), and after() methods clone each argument node before appending it to each node in the jQuery object. As a result, the original argument nodes are not removed from their original position in the DOM tree,
[jQuery] Moving DOM elements
Is it possible to move a DOM element from one part of an HTML document to another? I'm trying to do a multi-file upload using Thickbox, and I'd like to move the input field from the thickbox div to the main form, hide it, show it's value as a string, and copy it and add it to the thickbox div, So far I can hide it, copy it, and show it's contents. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] animate function with color fading
jQuery.fn._animate = function(prop, speed, callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if (jQuery.matchRGB(prop[p])) { new function(){ var pn = p; var ps = jQuery.matchRGB(jQuery.curCSS(e.el, p)); var pe = jQuery.matchRGB(prop[p]); e.a = function(){ var
[jQuery] animate function with color fading
Thank you for sharing your hard work!! Danjo~ -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Aloyzas Rimeika Sent: Wednesday, August 02, 2006 2:59 PM To: jQuery Discussion. Subject: Re: [jQuery] animate function with color fading I feel confortable with my regular expresion as it is. Expresion it to simple to split it in three parts and it is splited already as string. I used new function{} just becose this closure method used in jQuery
[jQuery] highlightFade Plugin
Is there a link? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Blair Mitchelmore Sent: Wednesday, August 02, 2006 11:50 AM To: jQuery Discussion. Subject: [jQuery] highlightFade Plugin Well given the recent discussion regarding css color parsing revealed to me the rgb(100%,5%,85%) style (which my plugin did not support) I figured I'd add it to mine... And we're done. That's been added, I also (think I) fixed a weird (practically unrepeatable)
[jQuery] New plugin: Autocompleter
I'd love to get this resolved in IE as it's the only thing left that's keeping me from using it in my next site. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Sam Collett Sent: Wednesday, August 02, 2006 10:37 AM To: jQuery Discussion. Subject: Re: [jQuery] New plugin:
[jQuery] DOM Gallery
<!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></HEAD> <BODY> <DIV><SPAN class=781115315-02082006><FONT face=Arial color=#0000ff size=2>Good job. Only comment I'd make is that the gallery thumbnails shift back and forth each time you load a new image. It's probably got to do with the border around the large image. If you keep the border place, but
[jQuery] How to apply :hidden/visible to $(this) ?
hi, everyone. as the title, how to? thanks in advance.<br clear="all"> -- <a href="http://realazy.org">realazy.org</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Suggestion: Expressing variable names for jQuery
Frankly, I find the code quite readable. I'm not a big one for long var names if they're only used in a scope of a handful of lines. $.attr() is perfectly clear even though it uses single letter parms. Frankly, I'd find it harder to read if the variable names were verbose. $.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a
[jQuery] Suggestion: Expressing variable names for jQuery
Hi, at the moment, it's quite difficult to read the source because most variable names are completely unmeaningful. It would be better if they would get names like callbackFunction, domElement and so on. Of course, using this variables will make jQuery *sane* even bigger. But for the obfuscated/compressed version, they can be replaced automatically with a script. Konstantin _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] odd behavior of jquery
Hi guys, I am trying to get my input box to hide when I select a option in a selectbox. You can see the code http://rafb.net/paste/results/IHB9bp20.html But when I call $('.manytomany input').get(i).hide(); it can't find the get method. It works fine in firefox 1.5 so there must be a issue with ie v.s. jquery. Any idea's? Abdul p.s. having an issue even doing $('.manytomany select').get(nr).remove(); it works fine when I do $('.manytomany input').get(nr).remove(); or $('.manytomany a').get(nr).remove();
[jQuery] Suggestion: Expressing variable names for jQuery
<!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></HEAD> <BODY> <DIV><SPAN class=843474813-02082006><FONT face=Arial color=#0000ff size=2>If you want to be able to read it, just download the uncompressed version. Keep both copies current and handy and you can reference back and forth.</FONT></SPAN></DIV> <P><FONT size=2><!----------------//------<BR>andy
[jQuery] A link color fade
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1"> <TITLE>A link color fade</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <BR> <P><FONT SIZE=2 FACE="Arial">I have a menu idea I would like to play with.</FONT> <BR><FONT SIZE=2 FACE="Arial">By using javascript(jQuery) I have made it so the div element changes color in IE6+. When
Next Page