[jQuery] fade*() Effects and Element Layout
I'd like to have a few <img> elements fade in at differing intervals for a "splash page". The <img> elements are added to a <div>, and appear properly horizontally aligned when left untouched. Upon calling a fade[To||In] effect on the images, they become displaced to the left and vertically oriented. I have tried (some) different CSS styling attempts to stop this behaviour (display: inline; position: relative; etc), and have only come up with a workaround via floating the <img> elements. I assume
[jQuery] class or className
I'm using set() to change the class of some elements. Typically in HTML you use class="xxx": <td id="x" class="c">ccc</td> Prior posts suggested using the javascript attribute className: $("#x").set("className","d"); Firebug shows that these are actuall two separate attributes of the TD element. So, should I actually be using: $("#x").set("className","d"); Is one way right/wrong. Does it make a difference. At the very least it's confussing... _______________________________________________ jQuery
[jQuery] $.A
In the revision #126, John introduced the new function $.A. Unfortunately, it breaks the principle of DOM plugin(s) which build functions named $.TAGNAME to return the corresponding DOM element. What is the best? Change $.A name or change names of the DOM plugin? Franck. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $().exec(fn)
There was a discuss about $().clone function and latest version of it from John Resig :)
[jQuery] $.A
> In the revision #126, John introduced the new function $.A.
[jQuery] Cancel form submission
I can't seem to figure this one out. I'm doing some form validation during submit via $.ajax but I'm not sure how to handle canceling the submit event if the form is invalid. Thanks. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $(foo)[n]? (performance hit)
> Everyone can take it easy now - I've already included working
[jQuery] Xml parsing error
> I try to load and parse some xml like this :
[jQuery] visual jquery -> visual docs
> > I think this is part of the nature of $(document).ready() - the
[jQuery] If/Else/End capability
I've been watching the jquery development for a few months, but only just started programming with it. For fun and to learn jquery more, I've done a couple of additions to jquery (plugins?). The following is a quick demo page of a jQuery if/else/end capability. It was tested in Win IE 6.0.x and FF 1.5.0.4, using the http://jquery.com/src/jquery-1.0a.js baseline. John's made recent SVN changes that affect the modified code, but looking at his changes it shouldn't be difficult to merge with this code.
[jQuery] getting rid of my other AJAX library for jquery's...
I currently use another js library for AJAX purposes. Seeing as how jquery has AJAX built in, I'd love to get rid of that other library. I was wondering if someone could help me convert this code into the jquery way. I need to pass in variables (not a problem) but I'd also like to be able to perform additional actions other than just loading in the content into the specified container. Here's a perfect example: function searchByKeyword() { term = $('#searchfield').val(); param = 'term='+
[jQuery] Getting xml elements attributes
Hi, I'm trying to parse an xml file like this : $("branch",xml).siblings().each(function(){ get name attribute value here $("result",this).siblings().each(function(){ do something }); }); and my xml file look link this : <results> <branch name="title"> <result> <desc>some text</desc> </result> <result> <desc>some text</desc> </result> <result> <desc>some text</desc> </result> </branch>
[jQuery] getting rid of my other AJAX library for jquery's...
Oooh... Thanks neytema and Mike...I'll check that out. Appreciated. <!----------------//------ 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 Mike Alsup Sent: Friday, July 07, 2006 10:40 AM To: jQuery Discussion. Subject: Re: [jQuery] getting rid of my other AJAX library for jquery's... Andy, jQuery
[jQuery] getting rid of my other AJAX library for jquery's...
I just tested this and the thing that appears to be holding me up is that the value returned by the dynamic page goes straight into the object specified in the $() method. What if you need to update two things on a page with the information returned? To clarify, I need the following: - a dynamic page call (done) - passing in parameters (done) - a callback function (done) - a return "variable" containing the parsed contents of the called page (not sure about) If I need to keep using my other library,
[jQuery] Load external HTML files?
Greetings, What I am creating is a page with almost the same effects as seen here- http://interface.eyecon.ro/ Now my problem is that I can not figure it out how to load external HTML files inside a container. Let me try to explain... When the slide down accours I will have a couple of links to some flash files. Those files I want to be played inside a div. So for example if you click Draggables you will see some links called "examples". Instead of open the link in a new window, I want the info to
Functional jQuery as an Array
Hi Everyone - I just finished adding in two cool new features, that I've been itching to include for a long time. 1) jQuery is now an array. You can now write code like this: var s = $("img")[3].src; should you be so inclined to. 2) jQuery is now more functional (like a functional programming language, that is), in that it is non-destructive. All 'destructive' operations (like find, filter, add, etc.) that change the selected elements can include an optional function, for example: $("p") .find("a",
[jQuery] Multiple calls to $(document).ready()
Is it appropriate to have multiple calls to $(document).ready() ? For instance, I include a common.js which has a call to $(document).ready() that hides elements of class "hide" --> $(document).ready(function(){ $(".hide").hide(); }); Inside a special page (which has included common.js in the <HEAD>), I inline a script with a call to $(document).ready() --> ... <script type="text/javascript"> // <![CDATA[ $(document).ready(function(){ alert('Blimey'); }); // ]]> </script> ... Both functions seem
[jQuery] jquery-1.0a.js error
Found an error using http://jquery.com/src/jquery-1.0a.js. In summary, given the following html: <div id="div1"> This is div 1. <div id="div2"> This is div 2.</div> </div> This works: $('div', $('#div1')).html('Div was modified'); Where the following throws an error in Win FF, Win IE 6.0, and Safari (only ones tested). $('div', $('#nodiv1')).html('Div was modified'); All the errors are similar to the following Safari error: Value undefined (result of expression ret[i].getElementsByTagName) is not
[jQuery] Stores (STO, RCL, SWP, CLR)
Here's my second attempt at creating a jquery extension (or plugin). I don't know if anyone will use it, but as a nod towards the 20+ yr old HP calculator I have, I created functions to store, recall, swap, and clear jquery searches. They are completely chainable. The demo page for this one is at: http://dmlair.com/jquery/jqStores/index.html The implementation of the Stores is included, but can be viewed at: http://dmlair.com/jquery/jqStores/jqStores.js Hopefully, the page contains enough information
[jQuery] Hide/show text.
<html> <body> Hi folks, I'm lost in ignorance here - I'm hoping someone can shine a torch for me. I have the following code: 1. When the page loads, the following code takes over and correctly hides content I want hidden. <tt>$(document).ready(function() { $('#jq').find('div').hide(); }); </tt>2. The following onclick function does not make the hidden text appear - and I don't understand why it doesn't. <tt>function showStuff() { var z = $('#jq').find('div'); if (z.is(':visible'))
[jQuery] form mirroring
Hello, just checking to see if there is a better method of mirroring the value's of two form input's better than this method: $("#l_username").bind("keypress", function() {$("#r_username").val($("#l_username").val()); } ); $("#l_password").bind("keydown", function() {$("#r_password").val($("#l_password").val()); } ); This is used for a login & register form side-by-side. It works, but it seems a bit slow and often the user can begin typing before the rest of the page has loaded. Will -- |||||||||||||||||||||||||||||||||||
[jQuery] $(foo)[n]?
> > Do you still think we can get $(foo)[n] and $(foo).e into
[jQuery] visual jquery -> visual docs
Why not use the AJAX methods in jquery and pull directly from jquery.com? <!----------------//------ 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 Sherlock Sent: Thursday, July 06, 2006 4:22 PM To: jQuery Discussion. Subject: Re: [jQuery] visual jquery -> visual docs Its has great potential;
[jQuery] $(foo)[n]? (performance hit)
> I think one of the problems is that we can't explicilty set
[jQuery] Updating options in a select list
It's going to be a completely new list with each change of a previous dropdown. Nice to know I wasn't far off then. Thank you sunsean. <!----------------//------ 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 sunsean Sent: Thursday, July 06, 2006 3:11 PM To: jQuery Discussion. Subject: Re: [jQuery]
[jQuery] Functional jQuery as an Array
Page not found when clicking any of the styles links in IE/PC. <!----------------//------ 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 John Resig Sent: Thursday, July 06, 2006 3:12 PM To: jQuery Discussion. Subject: [jQuery] Functional jQuery as an Array Hi Everyone - I just finished adding in
[jQuery] visual jquery -> visual docs
<!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=828183820-06072006><FONT face=Arial color=#0000ff size=2>Awesome! Thank you Yehuda!</FONT></SPAN></DIV> <P><FONT size=2><!----------------//------<BR>andy matthews<BR>web developer<BR>certified advanced coldfusion programmer<BR>ICGLink, Inc.<BR>andy@icglink.com<BR>615.370.1530
[jQuery] .html() is written before effect .slideIn() has been completed.
A snippet of my code looks like this: $('#top-content:hidden').slideDown('slow'); $('#top-content #content-top').html('<h2>Test</h2> Test paragraph</ p>'); Now, why is it that the 2nd line is loaded immediatly after the effect is triggered? And not - which I expected, or had hoped for - after the effect has finished it's animation? Is such a thing possible at all?? Steef _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Updating options in a select list
I've got a select list I'm going to be updating via AJAX. What would be the most efficient method using jquery? At this point I'll be using a different AJAX library to get the data as a javascript object. The first way I'd think to do it is to rebuild the entire select box, <select> tag and all with each change. But I'm wondering if there's a more efficient way of doing it. Anyone have any ideas? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink,
[jQuery] $(foo)[n]? (performance hit)
--
[jQuery] visual jquery -> visual docs
<!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=328393119-06072006><FONT face=Arial color=#0000ff size=2>IMO what would be the most helpful would be a complete detail of every method and function within jquery. For example, $('#myFormField').val() to get/set the current value of that field is nowhere to be found on
[jQuery] $(foo)[n]? (performance hit)
> As I said earlier...
[jQuery] Class fading?
Is there currently a way to fade an object between two classes? Sort of like: $('div').mouseover(function(){ $('div').fadeToClass('.red'); }).mouseout(function(){ $('div').fadeToClass('.blue'); }); I don't really have a project that needs this at the moment, but could think of some interesting ways to use it. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Idea for a plugin - Kurafire style
Not being the best javascript coder I am not sure the easiest way to approach this. Kurafire.net has an animation script that uses a timer and some string parsing to cycle an object through a list of classes. Basically an element has a class that contains the "root" classname and a number of steps ( and more if you read the script ) then parses the root class and appends a numeric index from 1 through the step counter. IE a root class of "clickbox" with 10 steps would cycle through the classes clickbox-1
[jQuery] jquery list in searchable format?
Awesome. Thank you! <!----------------//------ 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 sunsean Sent: Thursday, July 06, 2006 12:14 PM To: jQuery Discussion. Subject: Re: [jQuery] jquery list in searchable format?
[jQuery] grid plugin
still prealpha code. btw, if someone is interested http://makoomba.orgfree.com/grid/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery list in searchable format?
I saw someone post a link the other day to the jquery list in searchable format. I have 2 questions: 1) Is this the same list found at http://jquery.com/discuss? 2) If so, then what's the URL? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] A paginated thumbnail gallery
A paginated thumbnail gallery that slides horizontally to the next eg 4 images, if the last thumbnail in view exceeds the contentWidth it should be shown with theh next 4. Can this be done with Jquery? <ul><li><img /></li><li><img /></li><li><img /></li><li><img /></li></ul> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $(foo)[n]? (performance hit)
>> // A pretend jQuery object
[jQuery] neytema Animation plugin VS fx :)
I have spend some time and write frame based animation plugin. Current status: scratch :) I want to ask you guys, is it worth anything or fx plugin is enough? :) Plugin js: http://www.aloyzas.lt/javascript/jquery/ani.js Test case: http://www.aloyzas.lt/javascript/tst.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page