[jQuery] Dimensions .offset() method *UPDATE*
Okay so I've gotten some good feedback on the new offset method and have made some additional changes to make the method a little more flexible to people's needs. The offset method signature has changed and now takes an options hash as the first param and a return object as the second param. The options hash has 4 properties that each take a boolean. margin: Should the margin of the element be included in the calculations? True by default. If set to false the margin of the element is subtracted from
[jQuery] jCarousel: Change number of images displayed
I'm using jCarousel for a menu and I need it to be very elastic, meaning it has to change size when you resize the window. I was wondering if there is a way to change the number of images shown after you have already initialized it. BTW jCarousel is a great plug in. I recommend it to everyone. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Select _other_ elements (with a specific class) in same tr
That title may not make much sense, so here's the code: <tr id="<?= $player['id'] ?>"> <td><input type="checkbox" name="seventeen[apps][<?= $player['id'] ?>]" class="noneorone" /></td> <td><input type="checkbox" name="seventeen[subs][<?= $player['id'] ?>]" class="noneorone" /></td> </tr> I want to be able to select _none or one_ of the checkboxes (note: not using radio-buttons). So I would like to know how to address the _other_ checkboxes (with the class noneorone) in the same <tr>. Do I need some
[jQuery] jQuery v1.1 Performance Results
Hi everyone. Jack Slocum, the maker of the YUI-Ext lib, recently posted some performance benchmarks that compared his new extension, DOMQuery, to several libraries. jQuery was included in the comparison and in his tests, jQuery incorrectly appeared to fail or run slower than DomQuery. So we saw this an opportunity to present our own test results. Here is John's posting on the jQuery blog re: this issue: http://jquery.com/blog/2007/01/11/selector-speeds/ He has also replied to Jack on his blog. If
[jQuery] benchmark tool for ajax?
hi all, Is there a tool for benchmarking ajax app instantly? for example, testing the drag & drop performance? I'm using the jquery interface plugin, the sortable plugin works well if there's not much element inside the 'sortableitem', however, if the sortableitem contains some more elements, the drag & drop performs very slow, any suggestion to improve this? TIA Regards, - Eric -- - http://www.aiyo.cn - http://www.ifaxian.com - http://groups.google.com/group/nkeric-daily - http://nkeric.3322.org
[jQuery] IDs of all checked checkboxes
> > > var a[];
[jQuery] IDs of all checked checkboxes
I have a form with multiple checkboxes, each with their own unique id. How do I go about returning the ids of the selected checkboxes into an array? Sorry if this is a bit basic, but it has me stumped. -- View this message in context: http://www.nabble.com/IDs-of-all-checked-checkboxes-tf2963342.html#a8291129 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] IDs of all checked checkboxes
> > var a[];
[jQuery] Refactoring code from Prototype ( $() type ambiguity)
John told me to post this here, so here it is.... I am currently refactoring a large amount of code over to jQuery. Against better principles, the HTML is rife with onclick="fn()", etc, so I am having to convert over the functions themselves. Prototype's $() will take a string or an object, just like jQuery does, however, since prototype will ONLY look for id's if you pass it a string, you do not have to include the #, whereas with jQuery, if you do not include the #, it will look for a tagname rather
jQuery 1.1b
Hi Everyone - We're nearly ready for the big 1.1 release, this Sunday - but to tie you over, here's another set of bug fixes to test upon. The jQuery dev team has been working long-and-hard to fix all the support requests that've been coming in this week, and we've been pretty successful in fixing just about everything that's come across our plate. We'd really appreciate it if you'd take the time to test the new 1.1b with your code, and if you spot any bugs, to please submit them to the bug tracker.
[jQuery] 1 Function, Multiple Events?
> Thanks for the assistance. Yes, I was basically trying to
[jQuery] How to get element when it's ID contains bank space.
First, Thanks for such a great library. It damn good and fast - and most of all life saver for new bees like me. Recently I fall in trouble. I had an element in my HTML that may contains blank space in its ID. The thing is I am having one <a href="http://asp.net">asp.net</a> based portal system where IDs are given by user on runtime that may contain spaces. Here if I use plain $("#" + ElementId) things will not work because ElementId may have "blank space" that means for jQuery engine those are 2
[jQuery] How to get element when it's ID contains bank space.
> > Scripting on top of an invalid HTML document won't make
[jQuery] Newbie - how to build a sliding/draggable panel
I'm not much of a javascripter, but I've been getting into JQuery lately... I'm wondering if there is there an existing JQuery solution for a sliding/draggable show/hide sidebar panel that scales to fit the various viewport heights? I posted a quick diagram of what I'm thinking of http://www.monkeypuzzle.net/testfiles/sliding_panel/sliding_panel.gif here. I want the panel to show or hide when the little arrow is clicked, and I want the user to be able to drag it open (or wider) or closed by grabbing
[jQuery] 1 Function, Multiple Events?
> if have some thing like this that is called by document.ready():
[jQuery] 1 Function, Multiple Events?
I have a feeling there is an obvious answer to this, but it escapes me... if have some thing like this that is called by document.ready(): function init_top_level() { $(".top_folder").click(function(i) { // Do a ton of stuff here }); } I not only want to assign the "click" event to my ".top_folder" elements, but assign "dblclick" as well. I know I could always break my "Do a ton of stuff here" out as a separate function and assign it from 2 separate $(".top_folder").click and $(".top_folder").dblclick.
[jQuery] Simple(ish?) "bring to top" method
I've got something I'm building wherein several boxes will be draggable. What I'd like to do is have a function that can be called when dragging stops(Interface onStop), or just when a box is clicked that would bring it to the top of the stack via the z-index. Of course, the writers of the CSS spec didn't think to just provide a "top" value, so this isn't directly possible. I tried something like just: onStop : function() { $('.dragbox').css("z-index","1"); $(this).css("z-index","10000");
[jQuery] Show submit button only...
Hi all, anyone have an example using Form Validate plugin (<a href="http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html">http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html </a>) where submit button appears only after all form fields are correct(validated)? Thanx for your time. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] fadeIn/fadeOut question
Sorry but I have no experience with Interface... it broke when I first tried it many moons ago and I've never gone back... I should give it another poke... sorry I can't help you here Tony... anyone else? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Tony Collins Sent: Thursday, January 11, 2007 11:36 AM To: 'jQuery Discussion.' Subject: Re: [jQuery] fadeIn/fadeOut question I found the source of the problem. The interface elements plugin
[jQuery] is there a jQuery equivalent to the JavaScript .select() method?
Hi folks, I'm trying to find out if there's a jQuery equivalent to this: form.ElementName.select(); I want to auto-select (read: highlight) the text in an input element. I've searched on Nabble to see if this has been covered, but I either don't know what to search for or it will just take too long for me to weed through all of the posts about 'selectors' (xpath, css, etc.) Can anyone help me with this? -- http://cjordan.info _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] mousewheel plugin updated
I've made some big changes to the mousehweel plugin. All of these changes are based on quality feedback from users of the mousehweel plugin. First, I really simplified the API. The only methods are: - mousewheel() - unmousewheel() The mousewheel() method takes only one function and a second optional param called preventDefault. The function passed in still needs to be ready for two params, event and delta. The delta is a number greater or lesser than 0 indicating the velocity and direction of the
[jQuery] Difference between ajaxStop and ajaxComplete
anyone know the difference between these two? Rich _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] mousewheel plugin updated
Nice Brandon... IE7 here. Everything seemed to work as promised except test 6 which says "should only do something when the mousewheel is moved down." yet I got a response in the monitor pane when I moved the mousewheel up. Just FYI. This works really well, you should be proud of yourself. I can easily where many people will leverage your work. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Brandon Aaron Sent: Thursday, January 11, 2007
[jQuery] What's the new parent() in jQuery1.1?
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2"> <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 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] What's the new parent() in jQuery1.1?
I just switched to jQuery-1.1b and it's great stuff, but now I get this error in Firebug: <span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><span style="font-family: courier new,monospace; font-weight: bold;"> $(this).parent().id is not a function</span> where it worked perfectly until now. I revised the list of changes but didn't find a substitute to <span style="font-family: courier new,monospace; font-weight: bold;">parent() </span> - the closest this I found was the
[jQuery] strange slide Down Problem
Hi, i built a very small Demosite using CodeIgniter and jQuery. http://www.konzept-b.net/ci_2/index.php As you can see there is a strange effect if you click on "Kommentar"... on IE first it slides up, and then down. on FF it jumps up and down. could anyone help me to let that work smooth? // JavaScript Document $(document).ready(function(){ $("a[@name=\'kommentar\']").click(function(e){ e.preventDefault(); var href=$(this).href(); var me = this; $.get(href,function(r)
[jQuery] List of jQuery-Powered Sites
Hi everyone, With the release jQuery v1.1 eminent, I'd like to begin compiling a list of jQuery powered sites for posting on the jQuery site. The sites *DO NOT* have to be jQuery v1.1 specific. Sites using prior versions of jQuery are perfectly fine for this list. Also, if you're using jQuery with another library (YUI, PT, Dojo, et al), that's fine as well. We want to know which sites are using jQuery. If you could, please provide a description of where jQuery is being used within the website. Please
[jQuery] SWFObject Embed
Hi guys, I having an issue with SWFObject embed in IEs. Firefox works like a charm but IE does not show up any thing. Not even when i do a dom inspection. Here is the code. createCDE: function() { $("body").append('<div id="CDE" style="position:absolute; z-index:10000; overflow:hidden; top:0px; left:0px;"></div>'); $("#CDE").after('<script type="text/javascript"> \n' + 'var flex_tag = new SWFObject("flash/CopyDeckEditor.swf", "editor", "100px", "100px", "9", "#ffffff"); \n' + 'flex_tag.addParam("menu",
[jQuery] Tiny plugin example, message box
Yeah I'm working on one now - not easy as you have to factor in alot of things (i.e. do you have events fire on onchange() or onsubmit() and if you use onchange() there are some that must be checked onsubmit()) - it's a bit of a nightmare. Allan ----- Original Message Follows ----- > I think there are some full-fledged > form<http://fuzz.bassistance.de/jQueryFormValidation/valid > ateTest.html> > validation<http://www.willjessup.com/sandbox/jquery/form_v > alidator/form_validate.html>plugins around.
[jQuery] Automatically advancing to next form element...
Does anyone have code that will automatically advance the focus the next form element in the DOM and if it's the last form element, cycle to the first form field again? -Dan _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tiny plugin example, message box
Hey all, I've just discovered Jquery this last weekend and I am now converting all of my in-house Javascript to use it. I played with most of the others but didn't really like any of them; then I found Jquery and was instantly hooked - the website is right, it does make javascript fun. Anyway, I've started digging into some of the plugins and got around to making my own. I do a lot of form validation (are certain fields provided, etc.). I need to regularly check textbox/textarea fields for data so
[jQuery] <a> on click show form
Hi, I'm a convert from prototype and so apologies if this may come out as a dummy question. What I intend to do is following: I have a link ( element). On click, it displays a form which has 2 radio elements. By default, this form is not visible. only when the element is clicked, the form becomes visible. Then, on form visible, user can select any radio button and then form is processed. In prototype, I used the hide, visible ,block elements for accomplishing the above. By default, the form had a
[jQuery] fadeIn/fadeOut question
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Antonio Collins Subject: Re: [jQuery] fadeIn/fadeOut question Here's a barebones example page. While making the example, I've discovered that this is a quirks-mode issue. When the doctype is omitted, the box reappears in IE7 but its sized incorrectly. So, how can I get it to work as desired with the xhtml doctype? ----- Hrm, what version of IE7? The box is working fine for me, and looks exactly the same in FF and IE7...
[jQuery] Automatically advancing to next form element...
Dave, I'm actually looking at it for several uses: * The autocomplete function I'm using doesn't correctly "tab" to the next field if you use the [TAB] key when selecting an option from the keyboard * Implementing autotabbing to the next field when a certain number of characters have been typed in I'll probably play around w/developing a plugin for this that will allow you to programmatically go between next/prev form fields. -Dan
[jQuery] fadeIn/fadeOut question
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Antonio Collins Subject: [jQuery] fadeIn/fadeOut question Does anyone know what the problem is? (Target browser is IE7 using jQuery 1.0.3.) ----- We'd, collectively, love to help but.... Can we see some code? Are you using setTimeout or setInterval? -ALEX _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] dinamic content and document.ready()
Hi all! The code something like this: -- <script type="text/javascript"> $('a.lightbox_a').click(function(){ $("#bimages img").attr('src', $(this).attr('href')); $("#bimages").modalContent(null, 'show', 'slow'); return false; }); $(#limages).append('<a href="smg.jpg" class="lightbox_a"><img src="lp.jpg"</a>'); </script> <div id="limages"> </div> -- Bur when I make dynamic content, the document.ready-s part is not working. How can make easily apply document.ready part to the dynamic content? -- Ámon
[jQuery] Exception to an event
Here's the HTML: <div class="registration"> Intro <label>X:</label> <input name="foo" /> </div> Here's the jQuery code: $("div.registration").click(function() { alert("clicked anywhere in registration div") }); But I don't want this event to apply to the input tag, so I tried adding this: $("div.registration input").unbind(); but that didn't work. It triggers the "parent event" if you see what I mean. I also tried: $("div.registration input").unbind("click"); but neither with success. Anything obvious?
[jQuery] jQuery Powered Sites - Keep the Links Coming
<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=us-ascii"> <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] List of jQuery-Powered Sites
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=362315820-10012007><FONT face=Arial color=#0000ff size=2>Stefan..</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=362315820-10012007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=362315820-10012007><FONT
[jQuery] jQuery Site: PackPass
Not associated with this site, but it looks neat, is a very neatly implemented idea, plus it also uses jQ. :) https://www.passpack.com/ ~ ~ Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page