[jQuery] document.ready() again...
Hi there! I'm quite new to the jquery, so I appologize in advance if I say something stupid... :-) So... I'm trying to integrate jquery in a fairly complicated project - a messy code and scripts (sorry, can't show it right now), and I have problem with $(document).ready() I can't get any DOM element with getElementByID or $() when it's fired. It happends in the latest Firefox and Opera 9, but works fine in IE6. My question is: can the not so good xhtml code, and the other javascript errors that I'm
[jQuery] jQuery Keyboard Navigation Plugin
Hello- I've been a lurker here for a while and finally have produced my first plugin! They plugin is an extention to enable keyboard navigation (via arrow keys and return) over a selected list of elements. Demonstration page is here: <a href="http://www.amountaintop.com/sandbox/keynav/">http://www.amountaintop.com/sandbox/keynav/</a> Trac/Wiki/Tickets: <a href="http://www.amountaintop.com/projects/keynav/">http://www.amountaintop.com/projects/keynav/ </a> Right now it doesn't work in IE 6 or 7
[jQuery] Coding Design
Hi Christian, hi Michael, thank you very much for your proposal, Michael. That helps alot. I added your to the Wiki, as Christian proposed: http://proj.jquery.com/docs/Plugins/Authoring/ As I know nearly nothing about closures and their problems, I just left the comment on it in there. Please feel free to replace it with some advice at how to use the closure plugin. And if it gets integrated into jQuery core (John? Any plans?) on how to use it properly then. -- Jörn -- "Feel free" – 10 GB Mailbox,
[jQuery] News scroller/ticker with jQuery?
Good work everyone - yet another little jQ application to add to our arsenal. Luc Pestille Web Designer e: luc.pestille@in2.co.uk t: +44 (0)1628 899 700 f: +44 (0)1628 899 701 In2 Thames House Mere Park Dedmere Road Marlow Bucks SL7 1PB Tel 01628 899700 Fax 01628 899701 e: sales@in2.co.uk i: www.in2.co.uk This message (and any associated files) is intended only for the use of discuss@jquery.com and may contain information that is confidential, subject to copyright or constitutes a trade secret. If
[jQuery] XPath nodelist index
Hi, I have noticed that jQuery doesn't support this kind of XPath expression: //foo[2], meaning the second foo element of the node list returned by //foo. What can I do to access the second element of this node list? I'm looking for something like $('//foo', doc).item(2). _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Collapsed tree
Hi all, I'm a newbie to jQuery, but I like what I've seen in this short period. I've been playing with the jQuery tree example from http://be.twixt.us/jquery/treeView.php and I was wondering how to: 1). make the tree be collapsed by default - I've tried to add class and style to some entries like this: <li class="tvie">Item 2 <ul style="height: 0px; display: none;"> But then, I need to click twice on the expand button so that it's expanded. 2). make each node to dynamically load it's children when
[jQuery] How do I select the previous and next sibling of a particular type
for this to work the same in most browsers you will need to format your HTML like so <ul> <li id="a1">Item 1</li> <li id="a2">Item 2</li> <li> <ul> <li id="b1">Sub Item 1</li> <li id="b2">Sub Item 2</li> </ul> </li> <li id="a3">Item 3</li> </ul> .fn.prevSib = function(i, f) { if(typeof i == "function") { f = i; i = 0; } var __next = this[i].previousSibling; while( __next.nodeType != 1) { __next = __next.previousSibling; } f(__next); return
[jQuery] jQuery plugin: tableSorter update.
This looks really useful!
[jQuery] sortable list and re-ordering
I hope I describe this properly... I'm working with the Interface plugins and using a sortable list. I'm having trouble understanding how exactly the onchange callback works. I tried onchange: reorder(this) but it isn't working. What I need to do is know which list item was just moved, so naturally I tried this. How do I determine by id which element I just moved? Thats the first part. For the second part I need to find the html inside a span that has a class which is in the li just above the newly
[jQuery] jQuery plugin: tableSorter
Hi! It´s been a while since i released anything, but i have finally found some time over to start a new interesting project. Its called tableSorter and sorts columns in existing table structures. A small alpha release is available as a demo here: http://motherrussia.polyester.se/jquery/_dev/tablesorter/ If anyone could test it on Linux / Mac i would be more then great full. And any view / ideas / features / thoughts / comments are more then welcome. Best regards Christian Bach _______________________________________________
[jQuery] jQuery plugin: tableSorter update.
Hi! First of all thanks a bunch all of you, for the great response! Based on all the great feedback, the following changes will be made: Constructor -------------------------------------------------------------------- tableSorter(0) is history. New and improved: tableSorter({ column: "name", // match the column of th and get the index. dir: "asc", // direction of "init" sorting. ascClass: "asc", // css class for th on asc sorting. descClass: "desc" // css class for th on desc sorting.
[jQuery] jQuery plugin: tableSorter update.
Way to go Christian! Good for 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 Christian Bach Sent: Tuesday, July 11, 2006 3:45 PM To: jQuery Subject: [jQuery] jQuery plugin: tableSorter update. Hi! First of all thanks a bunch all of you, for the great response! Based
[jQuery] jQuery plugin: tableSorter
What about using padding-left on all TH tags, then adding a background image on "active"? something like this: th { padding-left: 10px } // moves the text to the right to make room for the image to come. th:active { background: url ('arrow.gif') no-repeat; } That's just off the top of my head just so you know. I like the idea of the changed background color too. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530
[jQuery] Coding Design
Hi jQuery folks! After having a look at the already very nice table sorter plugin by Christian Bach, I wondered if his code (and mine, see below) could be improved for performance by declaring all the stuff used by the plugin in another way. Currently, all functions are declared for each table that the plugin is applied to. While that may be optimized by the interpreters and therefore only taken as declared once, I still think its not a good design. Today I started working on my form validation plugin.
[jQuery] jQuery plugin: tableSorter
I might have the same question. I wonder if it could also do "paging". Assuming you're displaying 10 rows, but have a set containing 30 rows. Could this plugin hide the "bottom" 20? then bring them into view based on the sort? <!----------------//------ 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
[jQuery] append( jQueryObject )
<html 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 HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Help me find a name
Hello, I've made a new effect plugin for the interface but i don't know how to name it. Please study the example and suggest me a name for it <a href="http://interface.eyecon.ro/alpha/indic.html">http://interface.eyecon.ro/alpha/indic.html </a> Thanks Greets, Stefan Petre _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface FX Problem
This is what I get. <!----------------//------ 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] Interface FX Problem
Henrik, Thanks, adding a background color solves the problem. I still wonder if the effect should leave all of these styles applied after the effect is complete. Here is what is left on this example 'DISPLAY: block; FILTER: alpha(opacity=99.9); LEFT: 0px; MARGIN: 0px; LIST-STYLE-TYPE: none; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: white; opacity: 0.999' Seems like this might conflict with a more complicated design. Thanks, Matt _______________________________________________ jQuery mailing
[jQuery] Interface FX Problem
Really? That's strange. All of my text is messed up. (See attached file: blur.gif) Thanks, Matt "Andy Matthews" <andy@icglink.com > To Sent by: "jQuery Discussion." discuss-bounces@j <discuss@jquery.com> query.com cc Subject 07/11/2006 01:00 Re: [jQuery] Interface FX Problem PM Please respond to "jQuery Discussion." <discuss@jquery.c om> FYI it's only the bold text that's messed up for me. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc.
[jQuery] Interface FX Problem
FYI it's only the bold text that's messed up for me. <!----------------//------ 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 Matthew Bidwell Sent: Tuesday, July 11, 2006 11:56 AM To: discuss@jquery.com Subject: [jQuery] Interface FX Problem I'm having a problem with the Interface fx plugin. When
[jQuery] Interface FX Problem
I believe it's a IE6 bug. If you set a background color in the fadinglayer, this will not happen, I think. -- __________________________________________________________.:8):. Henrik Pejer | 070-620 62 14 | henrik@silviamedia.se | http://silviamedia.se -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Matthew Bidwell Sent: Tuesday, July 11, 2006 7:06 PM To: jQuery Discussion. Subject: Re: [jQuery] Interface FX Problem Really? That's strange.
[jQuery] Interface FX Problem
I'm having a problem with the Interface fx plugin. When it exposes a div with BlindDown it is leaving some changes to the div's style that blurs the text in IE. Here is an example: http://www.softscout.com/interface/test.html The problem is that this 'FILTER: alpha(opacity=99.9);' is applied to the div. Does that need to be there for another purpose? Thanks, Matt _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] News scroller/ticker with jQuery?
Excellent - just what I was looking for. Thanks. Luc Pestille Web Designer e: luc.pestille@in2.co.uk t: +44 (0)1628 899 700 f: +44 (0)1628 899 701 -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of sunsean Sent: 11 July 2006 16:55 To: jQuery Discussion. Subject: Re: [jQuery] News scroller/ticker with jQuery? Hi Luc, here's some code to get you started. HTML: <ul id="ticker"> <li>News Item 1</li> <li>News Item 2</li> <li>News Item 3</li> </ul>
[jQuery] 1.0a toggle() function
<!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=406150916-11072006><FONT face=Arial color=#0000ff size=2>I see it now. I was thinking that the toggle was being performed on the DIV.</FONT></SPAN></DIV> <DIV><SPAN class=406150916-11072006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=406150916-11072006><FONT
[jQuery] 1.0a toggle() function
<!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=218073915-11072006><FONT face=Arial color=#0000ff size=2>Myles...</FONT></SPAN></DIV> <DIV><SPAN class=218073915-11072006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=218073915-11072006><FONT face=Arial color=#0000ff size=2>How does the
[jQuery] Quick Quiz
[John Resig wrote:] ===================================================================== I'm just curious, does anyone actually use any of these jQuery/CSS selectors? :nth-child() :nth-last-child() :first-of-type() :nth-of-type() :last-of-type() :nth-last-of-type() :only-of-type() ===================================================================== I'm using these in an attempt to gracefully handle nested <ul>'s. Please see my question about the child() and children() functions (http://jquery.com/discuss/2006-July/003133/)
[jQuery] Help me find a name
> I've made a new effect plugin for the interface but i don't
[jQuery] append( jQueryObject )
<html 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 http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] 1.0a toggle() function
Hi there, I'm new to jQuery but am excited to start working with it. My issue lies with the new toggle() function that works as such: "$().toggle(function, function): Whenever a matched element is clicked, the first function is fired, when clicked again, the second is fired, all subsequent clicks continue to rotate through the two functions." Well when I try to run a function which calls toggle, I get the following result: Click 1 - Nothing happens Click 2 - First function is called with a slight
[jQuery] 1.0a toggle() function
In IE/PC: first click does nothing. second click triggers "open" function. 3rd click triggers "close" function. works fine after that. Maybe it's got to do with the way you're setting the display for the div? <!----------------//------ 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 Eric Diamond
[jQuery] Help me find a name
I like 'transfer'. I will change it to $('#elem').transferTo(elem2, classname, speed). Thanks, I've made up my mind _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Help me find a name
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=640304113-11072006><FONT face=Arial color=#0000ff size=2>Good!</FONT></SPAN></DIV> <DIV><SPAN class=640304113-11072006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=640304113-11072006><FONT face=Arial color=#0000ff size=2>Now see if you can get
[jQuery] jQuery Text Clips
I don't know if anyone uses Programmer's Notepad 2 (www.pnotepad.org), but it has a feature that allows you to create your own snippets of commonly used text (it referes to them as text clips). It has lots of other features as well as this (like syntax highlighting, projects, code folding and regular expression search to name a few) and is also open source. For those that may be interested, I have done some clips for jQuery and they are hosted (along with the others I have done) at http://sam.collett.googlepages.com/textclipsforpn2
[jQuery] Help me find a name
I have to explain what this efect does. Simply points that an element was copied/moved to another place in page , ussualy after an ajax operation. The example I provide is a possible use of it. It is not ment to by use only with shoping carts. But I see that on this list are a lot funny guys and I can not rely on to find help even for such a little thing. So forget about my request, I'll find a name on my own, event if it will be not that right. Nice day. _______________________________________________
[jQuery] Help me find a name
Nah... Microsoft already took that name. :) <!----------------//------ 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 poni Sent: Tuesday, July 11, 2006 6:29 AM To: jQuery Discussion. Subject: Re: [jQuery] Help me find a name Call it Bob. _______________________________________________ jQuery mailing
[jQuery] Help me find a name
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=468011013-11072006><FONT face=Arial color=#0000ff size=2>It's broken in IE. Just FYI.</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] jQuery with Prototype
Hi, I want to use prototype and jquery together. I followed with the page http://jquery.com/docs/PrototypeAndJQuery and included first prototype.js and the jquery.js. Unfortunately $("#elem").value='something' doesn't work, although I could still use @('elem').value='something' I have also tried with other kinds of XPaths like //#elem or textarea#elem, but still nothing happens. Where is the problem? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Fetching objects siblings with the siblings() method
Hi, I have been playing around with the siblings method in the jQuery alpha, I modified it so that it no longer returns the element itself and also so that the order of the returned elements shows the next sibling as the first element in the list and the previous element as the last. This makes looping through siblings (for instance in a slide show) a lot easier, for instance in a list like this: [ 1, 2 , 3 ,4 ] The siblings of 2 would be [ 3 , 4 , 1 ] This is the relevant function: siblings: function(a)
Quick Quiz
I'm just curious, does anyone actually use any of these jQuery/CSS selectors? :nth-child() :nth-last-child() :first-of-type() :nth-of-type() :last-of-type() :nth-last-of-type() :only-of-type() [@foo ~= bar] [@foo |= bar] [@*] If your answer is 'Yes' to any of these, please let me know where/why you would use it. If your answer is No (or if you have no idea what these selectors do), just reply with 'No'. I'm doing more cleaning in the expression parsing engine, and taking these out would definitely
Next Page