[jQuery] Remedial JavaScript
I've often found myself in need of helper functions to determine the type of variable a function was passed (even if only to make code foolprrof). The best examples out there are imho Douglas Crockfords's "remedial javascript" functions: http://www.crockford.com/javascript/remedial.html Would it be an idea to adopt these into $? $.isArray, $.isFunction, etc ... Since jQuery is about extending Javascript where needed, and making life easy for the programmer ;-) ... Of course. doing it as an extension
[jQuery] Is there an example of a nested drop down menu with Jquery?
Hi all, Subject says it all really... "Is there an example of a nested drop down menu with Jquery?" Using nested un-ordered lists? An helpreally apreciated. Mark. -- www.markpanay.com - Jargon Free Development www.labellife.com - Music Industry 2.0 www.tunecast.co.uk - Music for your website _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $(el).focus(); (formerly Fire Event)
Or use the get(0) method to return the object, then chain the .focus() method. $(el).get(0).focus() Shawn Tumey Cofounder MT Web Productions LLC ----
[jQuery] Fire Event?
Hi all Anyone know how I can fire an event once one has happened? I've got a little image gallery working in CSS, which shows a list of thumbnails and un-hides a larger shot when a thumb is focused. I've added the Thickbox plugin into the mix which fires when clicking the larger image. Both work fine. However, theres a problem in that closing the Thickbox view takes focus away from the original thumb image, and the larger one is therefore re-hidden. Anyone know how I could refocus the element that
[jQuery] Add commas while typing?
Sunsean, This IS really awesome! I tried playing with it a little bit, is it possible to get the commas NOT to appear UNTIL the 4th, 7th, 11th character is typed? That way if they stop at 200 a comma is not there but if 2000 is entered ... wait it would be 200,0 at that point and not 2,000 ... hrmmm this might be too complex for what it is worth. But I play with it and it sure is a sweet idea. Dan -----Original Message----- From: sunsean [mailto:littlecooldude@gmail.com] Sent: Friday, June 09, 2006
[jQuery] $().trigger?
Hi all Just been thinking about things, and after having a look through the docs I've noticed there's no information about the trigger method which I've seen in the source. After doing a couple of quick tests, it seems as though I'm not able to do something like: $('div#warning').focus(function(){ this.addClass('showWarning'); }); $('a.close').click(function(){ $('div#warning').trigger('focus'); }); Am I looking at it wrong, or is this not possible? _______________________________________________
[jQuery] jQuery Plugin : outlineTextInputs
With this plugin, you get an outline around text inputs (input type=text and textarea) when they gain focus. Works in IE 6 and Firefox 1.5. However, with IE, it applies padding above and below the text input, but I can't seem to get rid of it. For demo and code: http://sam.collett.googlepages.com/outlineTextInputs.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] XPath and one basic question
What I want to do is: if checkbox is checked, set background color od label that contain input(checkbox) to red I have this code: $("label[input[@checked]]").css("background", "red"); but it doesn't working because of nested brackets [[ ]] and it freeze the browser In Xpath documentation says it can be used any sugestions? And another question: How can write the code that do: if label is clicked, do something with input (that is inside of the label)? Thank you _______________________________________________
[jQuery] Find ancestor element
Hi all, I am trying to get a specific ancestor for a given element. Not the direct parent element but maybe some levels higher up the DOM. An example: <div id="outer"> <div id="inner"> <span> <input type="checkbox" id="cb" /> caption </span> </div> </div> I only know that "cb" exists, now I need a handle on the "nearest" ancestor. To make it more clear: I have absolutely no clue about the actual nesting level. I only have the id of the checkbox and need to get the nearest div-ancestor, wherever it
[jQuery] Find ancestor element
I've noticed pretty much everytime I try and load proj.jquery.com I have to refresh it once before it loads, otherwise it just times out. Anyone else noticed anything similar? Mike ---- Message: 4 Date: Sat, 10 Jun 2006 10:31:23 -0400 From: "John Resig" <jeresig@gmail.com> Subject: Re: [jQuery] Find ancestor element To: "jQuery Discussion." <discuss@jquery.com> Message-ID: <730bab940606100731q73e8c37dhe67ad60a833015e1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
jQuery Wiki and Bug Tracking
Hi Everyone, It's taken me much longer that I originally expected, but I think I've finally got the transition to Trac under control. You can find the 'brand new' jQuery here: NOTE: NOT THE FINAL URL - DO NOT SHARE! http://proj.jquery.com/ This should represent a complete mirror of the old jQuery site, so if you see any broken URLs (that worked on the current site), please let me know. Right now it's just at a temporary subdomain, once we've figured everything out, it'll move to jquery.com proper.
[jQuery] JQuery and Prototypes $F-Function
Hi JQuery list, I just got to know JQuery about a week ago and gave it a try in a project I am currently working on. Its nothing about any fancy Web 2.0 things, only simple client-side validation and enhanced UI. What I am missing most with JQuery is support for manipulating forms. There seems to be no shorthand to retrieve a form element by its name. Manipulations like disabled, checked, selected etc. are not supported either. I am far from being an javascript expert: Maybe there is simply no way
[jQuery] Interface
I'm having problems with the SlideRight function from Interface. It works first. If I then hide the element and use SlideRight again, it won't reappear. Weird.<br clear="all"> -- Yehuda Katz Web Developer (ph) 718.877.1325 (fax) 718.686.4288 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] OT: iframes and FF
I'm hoping someone can help with what is basically a non-JQ question. I'm trying to write to an iframe in Firefox. I have something working in IE, but I can't work out (or even find documentation) how to do this in Firefox. Here's my test: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"" xml:lang="en" lang="en"> <head> <title>test</title> <script type="text/javascript"> function writeFrame() {
[jQuery] Add commas while typing?
<!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>Add commas while typing?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=2 FACE="Arial">Can jQuery be used to ADD commas every 3rd character while typing?</FONT> </P> <P><FONT SIZE=2 FACE="Arial">or should I continue to look in regular javascript?</FONT> </P>
[jQuery] JQuery image gallery, similar to flickr?
Hi all I'm having a bit of a nightmare building something similar to the image gallery/slideshow as seen on this page: http://flickr.com/photos/shadowboxing/36086708/ Basically, I'm trying to replication the way the "photostream" item works, building the widget from a group of A elements which contain images. I also want to mimic the way you can click on the photostream image to see the "full" shot. Does anyone know whether there are any similar scripts/plugins already available for jQuery? I don't
[jQuery] SVN now at revision 50
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Hi guys, Made another SVN commit, a rather big one ;) </font></font><font size="-1"><font face="Tahoma"><b>Some initial words:</b> John mailed me that he is almost ready with the trac install, so please make a list of all bugs that you know still exist,
[jQuery] someone wants to fix slideUp() and slideDown() ?
slideUp() and slideDown() seem to be broken.. Can someone take a crack at it? Gilles _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] SVN rev 53: Changes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Tahoma">Hey guys, - I've rolled back the $.xml modification i made; - I added build.bat, which generates one file (jquery-svn.js) out of the basic jquery files (jquery, effects, events and ajax) from their directory's; </font></font><font size="-1"><font face="Tahoma">-
[jQuery] jQuery Wiki and Bug Tracking
<head></head><body bgcolor="">Hello, When editing a page, I noticed the links for: <a href="http://proj.jquery.com/docs//WikiFormatting">WikiFormatting</a> and <a href="http://proj.jquery.com/docs//TracWiki">TracWiki</a> are broken.
[jQuery] hasClass()? (also toggleClass, removeClass)
I was looking for a hasClass() as well, and the solution given in the thread isn't exactly terse - nor what I wanted. I have a single element, e.. and I want to see if that element hasClass('selected') .. I tried various forms of CSS querying like : $('*.selected', e).each( function() { alert('yup'); } ); Without any luck at all. I suppose I just couldn't figure out the right CSS or XPath query to use.. so I solved it my own way. I wrote this small function and added it to my copy of jquery.js hasClass:
[jQuery] jQuery Plugin: wrapInner
http://motherrussia.polyester.se/jquery/wrapinner/ Same as the one posted earlier, but now with some fancy markup. Enjoy! /christian _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] SVN now at revision 50
> That doesn't exactly encourage me to keep spending a lot
[jQuery] force directed graphs in JS
I wanted to make sure everyone on this mailing list saw this really interesting stuff: http://www.kylescholz.com/blog/2006/06/force_directed_graphs_in_javas.html check out the examples. Will -- ||||||||||||||||||||||||||||||||||| Will Jessup c. 760 807 0850 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] FadeIn Issues -- Blocks?
<!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.2873" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=156563520-08062006><FONT face=Arial color=#0000ff size=2>Seemed to work here, as did "fieldset { padding:0; width:100% }" in a css rule and no height:auto. It looked like the fx code already tries to set height:auto if it thinks the height didn't return
[jQuery] FadeIn Issues -- Blocks?
--
[jQuery] jQuery on Rails
To what extent does jQuery work on Rails? Has anyone written Rails helpers for jQuery? What about porting RJS calls to jQuery?<br clear="all"> -- Yehuda Katz Web Developer (ph) 718.877.1325 (fax) 718.686.4288 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] FadeIn Issues -- Blocks?
> Question: why do show/hide set the display attribute? Why not use "visibility"? Because visibility doesn't collapse the space. Change the code and see what happens. > According to http://www.w3schools.com/css/pr_class_display.asp this *adds* a newline element. It is just saying that display:block makes it a block level element; the term "line break" is a bit confusing but it definitely isn't the same thing as a newline character (which is just whitespace in HTML). Are you trying to fade a non-block
[jQuery] Interface Sortables - Two Separate Lists?
Hey Guys, I'm using the Sortables plugin via the interface toolkit and I can't figure something out. I need to have two sortable lists, but you CANNOT move items between them. I have fit set to true for both, but you're still able to drag items back and forth. Any idea how to stop this? Thanks! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Periodical AJAX update?
Hello! Does jQuery gives a possibility to make something like this: $(div).load(file,3000); where numer 3000 is time in miliseconds after which div will be updated again with content of file Regards _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery + plugins unit testing?
I was wondering if anyone had considered starting to develop automated unit tests for jquery and plugins. I'm going to be looking into Test.Simple from David Wheeler soon, as it mimics my own experience writing tests for Perl programs. There's a lot of back and forth on this list where people are setting up 'example pages' for humans to acertain if things function properly. Granted not every developer will have access to every browser they wish to test in, so cooperation is still necessary, but it
[jQuery] simple test: dynamically add a row to table
Hi, I'm trying to do a fairly simple test, add a row to a table using jquery. My web page has a table with two rows. The idea is that when a user clicks on the last (second) row, the last row is cloned and appended to the table...this is useful if a user needs to enter lots of data in a table (I believe MS Acces does this). Following is my function: <script> $('#lastrow').click(function(){ alert(this); this.after(this.cloneNode(true)); }); </script> When I run it, I get the alert (table row element),
[jQuery] jQuery Plugin: jQIR - jQuery Image Replacement
An alternative to image replacement (of heading) using CSS. HTML markup would be something like this: <h1 id="heading1" class="jqir">Heading 1</h1> <h1 id="heading2" class="jqir">Heading 2</h1> <h1 id="heading3" class="jqir">Heading 3</h1> The id refers to the name of the image (minus the extension). The class is just to make sure it isn't used on any elements that don't have an image alternative. $(window).load( function() { $(".jqir").jQIR("png", "images/"); } ); Sample (and
[jQuery] Jquery docs, wiki ?
Just curious, what is the best Wiki system to use for something like this? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of John Resig Sent: Thursday, June 08, 2006 9:32 AM To: jQuery Discussion. Subject: Re: [jQuery] Jquery docs, wiki ? Brian - This past week I've been working on getting the Wiki system set up. I should announce something tonight, for everyone to begin using. I agree, the need for having everyone help update is pretty important.
[jQuery] Jquery docs, wiki ?
Are there any plans in the works for a jquery official wiki or other form of community-generated documentation? I notice that the website docs as well as the examples pages have fallen out of date, with many errata and undocumented features and bugs that do not appear extant outside of the mailinglist. Having all the collective wisdom and debate of this mailinglist and other websites/examples summarized and codified in one place would help out the new user, and lower one barrier to adoption of jQuery
[jQuery] Speed
<!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.2873" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=093160513-08062006><FONT face=Arial color=#0000ff size=2>Looks about the same speed to me, FF 1.5 and IE 6. Both load in under two seconds. Try to isolate it.</FONT></SPAN><BR></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1>
[jQuery] Temporary jQuery Wiki
FWIW, until there is something official we, at least, can have a consistant dumping ground as a scratchpad for the official Wiki when it's ready (probably trac based). http://jquery.opensrc.org/ --markc _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] form() plugin revisited
Here's yet another cut at a form submission plugin. This one has two important qualities; it gathers up the name/value pairs in strict page order and only provides the submit button that was actually clicked. This version seems to be exactly the same as a non-ajax form submission, as far as a PHP backend is concerned anyway. http://markc.renta.net/jquery/form_test.html Usage: $('#form').form('#target'); The idea of the "evaljs" submit button is so that one option is available that does not redraw
[jQuery] form() plugin revisited
Hi Mark, latest (non beta) Opera on Windows (Version 8.54, Build 7730) shows Errors with the jQuery version used, I think not related to your plugin, so I guess with there is a general problem with the dev version of jQuery in Opera at the moment. Here copy/paste from the Javascript Console: jQuery Examples http://markc.renta.net/jquery/jquery_form_test.html Inline script thread Error: name: EvalError message: Statement on line 641: Illegal use of eval Backtrace: Line 641 of linked script http://jquery.com/src/dev/sane/
[jQuery] Update - Plugin - Tabs
I've updated the Tabs plugin with rounding and nicer looking tabs in general. I wasn't able to get IE to display the tabs with a variable width, so I'd appreciate any efforts in that vein. Also, I only tested in IE6 and Firefox (all I got on my machine). The demo itself is still basically identical with only a few modifications. Please take a look. <div><span class="gmail_quote">On 6/7/06, <b class="gmail_sendername">Christian Bach</b> <<a href="mailto:christian.bach@polyester.se"> christian.bach@polyester.se</a>>
Next Page