[jQuery] Capturing modifier key events
What's the best way to capture modifier key events with Jquery (i.e., <ctrl><1>)? Rich _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Beginner needs help - Basics
Hi, I came across jQuery, I thinks I might like it, but I'm unable to try it out. I downloaded the uncompressed version and just c&p one of the examples from the Wiki. But nothing happens. I tried it with various browsers on two systems, but nothing works. So I thinks that I'm doing a general mistake. Maybe someone could check the code below. ##### <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $("a").click(function(){ alert("Thanks
[jQuery] jCarousel: index of last item
Hi everyone. I'm trying to design <span style="font-weight: bold;">a jCarousel that rotates continously</span> (that is, after the last item the circles closes with the first the one seamlessly). What I'm trying to do is detach the first element in the <span style="font-family: courier new,monospace; font-weight: bold;">itemFirstOutHandler </span>event to attach it at the tail with the <span style="font-family: courier new,monospace; font-weight: bold;">carousel.add(index, html) </span> function,
[jQuery] how does before() work
can someone expalin to me how before works in jQuery and how would you place a link before a container that would hide and show that container? Thanks Enej _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery.com website is not valid
Hi all The jquery.com website doesn't follow the standards. The plugin page http://docs.jquery.com/Plugins has over 130 HTML validation errors. Also the CSS is not valid. http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http ://docs.jquery.com/Plugins Can somebody take a look at that? Regards Roger Ineichen _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Introduction
Hi jQuery list. I'm Will. I make websites. I'm new to jQuery. I like jQuery. I dislike having to add tons of meaningless IDs and Classes to my HTML to serve solely as 'hooks' for functionality - the spacer.gif of the webstandards era. jQuery is already helping me keep that stuff to a minimum. Yes, I like jQuery very much. :) Just thought I'd say hello and share the important bits. Big big preesh to the jQuery gang for making my days a little better. Will _______________________________________________
[jQuery] not() not working?
Hello everyone, This is my first post to the list. I became aware of JQuery less than 2 weeks ago, was, very impressed by its efficiency and started using it in some of my projects, even though i'm not a very good javascript developer. I hope you'll forgive my question if it's stupid. I have put some external links in a menu and want to open them in an external window; the html looks like this: <ul id="liens"> <li><a href="#"><img src="triggerimage" .. /></a> <ul class="deroulant"> <li><a href="#"
[jQuery] upgrade to 1.1 break $() selector
Dear mailinglist I just upgraded to jquery1.1 (and even checked out jquery-latest [1073]) and can't get the selector to work with a context. Let me explain what I mean $('ul') yields al ul elements of the document according to the API (http://jquery.com/api/) $('ul', parentElement) is supposed to only yield ul of parentElements. I can't get it to work, it always results in ALL ul elements, which breaks my jqueries. Any hint? What am I doing wrong? It used to work in jquery 1.0.x Thanks Jan _______________________________________________
[jQuery] help with recursive function
I am trying to create a multi-step form using a recursive function to find the form, bind a submit event, and replace the form with either an error message or a new form for the following step. This is what I have so far: $(function(){ bindForm = function(){ $('#pgContentInner').find('form').submit(function(){ $('#pgContentInner').hide('slow', function(){ $('form').ajaxSubmit({ target:
[jQuery] .trigger() behaviour
Hi there I'm aware .trigger() was patched in the recent 1.1.1 update, but I'm having issues with it. If I have a checkbox, then firing trigger("click") seems to fire the bound "click" handler first, *before* unchecking the checkbox. This is a pain cos say I have some code like this: $("#myCheckbox").bind("click", function() { if (this.checked) { alert("Checked!"); } else alert("Not checked!"); }); If I manually click on the checkbox to enable it, I get alert("Checked!"). But if I then fire
[jQuery] Thickbox incompatible with jQuery 1.1
<html> <head> <style> P { margin:0px; padding:0px } body { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body>Abel,<BR> <BR> I had the same problem the other day and I had to change a line of code in the Thickbox script, but right at this moment I can't for the life of me remember what the issue was.<BR> <BR> But if it helps, I found the error using Firebug and the solution using John's description of the updates on the blog (<A href="http://jquery.com/blog/2007/01/08/jquery-11a/">http://jquery.com/blog/2007/01/08/jquery-11a/</A>).<BR>
[jQuery] Dimensions plugin improvement request
Hi guys, At the moment it is 0 + distance to div + border width I am expecting something like 0 + distance to div *ONLY* Example below I'd like to have it so that both sets touch at corners like first div does. http://eboyreal.com/sandbox/jquery/dimension/test.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Trivial use
Hi there, I'm trying a very simple (in my opinion) use of jQuery, but I can't figure how I am suppose to make it work. Can someone explain me how enabling the click event on .test even if the .test element is loaded dynamically from script (ajax doesn't work neither) ? - - - - <script type="text/javascript"> $(document).ready(function(){ $(".test").click(function(){ alert("yeepee"); }); $("#trigger").click(function(){ $("#content").append('<div
[jQuery] why doesnt .toggle("slow") work for a tr in firefox 2.0?
i am new to jquery and i am having a little trouble. I have a site that lists my movies and some details about them in a table. each row in the table contains title, year running time ant a link to a trailer if available. beneath each row is a row (that spans across all 4 columns) which contains a thumbnail image of the movie cover and the description. this second row is hidden on page load. then the idea is that when you click on any row, the row containing that movies description will appear. the
[jQuery] Replace element in DOM tree.
Hi all, Is there a way to replace an element in the DOM tree. For example: Starting with... <div id="parent"> <div id="child1">Child 1</div> <div id="child2">Child 2</div> <div id="child3">Child 3</div> </div> Assuming a command like "replace( content )" existed... $("#child2").replace("<span id="newSpan">Text</span>"); Would result in... <div id="parent"> <div id="child1">Child 1</div> <span id="newSpan">Text</span> <div id="child3">Child 3</div> </div> The solution could be a series
[jQuery] "THE LIST" of Sites Continues to Grow
jQuery continues to shine and grow with great feedback from the press and incredible involvement from the community. With that said, "THE LIST" of sites using jQuery has grown substantially since I last posted on here and I wanted to pass along the link everyone to see: http://docs.jquery.com/Sites_Using_jQuery Remember, if you have a site that uses jQuery, let us know. Send me an email with: - The name of the site - The URL - A description of what the site is about - A description of how jQuery
[jQuery] Have I made things better or worse?
Hi I'm learning jQuery by messing around with our schools new layout. The live "official" template/site is at www.sfu.ca I had already written my own template by then www.sfu.ca/ehs . One of the things I dislike about the official template is how they use JS so I started to convert then to jQuery. First up: A-Z script the A-Z drop-down list is generated dynamically (I know it is a waste to lead jQuery just for this but there more scripts calling on jQ to follow). Original (JS is called inline!) document.write('
[jQuery] newbee question
Hi i know that $() equal to: document.getElementById(); What if i need to find window.parent.document.getElementById(); $$(); will work ? Sorry my bad english. -- View this message in context: http://www.nabble.com/newbee-question-tf3061812.html#a8514181 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Some Useful Minor Plugins
I don't think these are worth making into full blown plugins, but I do think they're useful. Feel free to use these and credit me if you wan :) I wrote them as utility plugins for a promo rotator I was working on. I was fading and showing list items in the order they appeared in the jQuery object, so I needed to mess with said order. If this has already been done, then consider this an update. Please let me know if you find any bugs, and if you know of an easier/better/more succinct way to do this,
[jQuery] 1.1 drag not working on mozilla in linux
ever since jquery switched to 1.1 all the demos I see with drag aren't working correctly.. they work fine in firefox, but in mozilla they're totally busted. does anyone else see this problem?? -jason<br clear="all"> -- jason schleifer ah-ni-may-tor | weirdo <a href="http://jonhandhisdog.com/">http://jonhandhisdog.com/</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Textarea character count
I am working on a form with a large number of text areas. I want to create a "counter" above each textarea that counts the characters as they type, turning red if they are over the limit or green if they are under. I am new to jquery and this seems like a natural application. For example, I want to search for all textareas in a document, then check their ID's for a max length value: <textarea id="foo_512" name="spork">sometext</textarea> <textarea id="bar_256" name="spork2">sometext</textarea> I
[jQuery] Question about access to "ghost" objects created by Interface Draggable
This is exactly what I was looking for, thanks Stefan! Regards, -scott ________________________________________ From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Stefan Petre Sent: Tuesday, January 23, 2007 11:20 AM To: jQuery Discussion. Subject: Re: [jQuery] Question about access to "ghost" objects created by Interface Draggable Hi Scott, You can access the ghost element by keeping a reference to it when the dragging starts. 'onStart' callback gets as first parameter
[jQuery] Question about access to "ghost" objects created by Interface Draggable
<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 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,
[jQuery] Bug in show()?
Is it a bug? I Think jQuery is not getting the embedded width: <style> #ahhh{ background-color:#FA0; display:none; } </style> <script type="text/javascript" src="js/jquery-1.1.1.pack.js "></script> <body> <script type="text/javascript"> $(function(){ $('#ahhh').show(1500); }); </script> <div id="ahhh" style="width:300px; "> Why do i become so large? </div><br clear="all"> -- Rafael Santos Sà :: webdeveloper <a href="http://www.rafael-santos.com">www.rafael-santos.com</a> _______________________________________________
[jQuery] image position question
Hi all, I know there has got to be an easy way to do thing but I'm having trouble figuring it out. I have a div that has an image in it and this image is positioned relative to the div based on what I want to look at and this works great so far. Now I want to overlay another transparent image over the first image. I know where the second image should be positioned relative the the 1st image. I can't figure out how to set top and left of the 2nd image to position it over the first. I know I need z-index
[jQuery] jCarousel Scroll To
I have the following code. $("#mycarousel").jcarousel({ itemVisible:1, itemScroll:1, wrap:false, noButtons:false, scrollAnimation:"slow" }); I have links elsewhere on the page that when clicked I want jCarousel to scroll to the item (index) referenced. Something like... # 1 # 2 $("a").click(function() { scrollTo( $(this).text() ); }); I just can't figure out nor find information as to how to make jCarousel perform this type of function. Someone, please help! -- View this message in context: http://www.nabble.com/jCarousel-Scroll-To-tf3047903.html#a8472405
[jQuery] need to show content by ajax in tabs
I am using the jquery tab plugin by Jlaus and it works fine. Now instead of writing content that appears in the tabs in divs, I am trying to get the content in each tab with Ajax. The link for the file to fetch by Ajax from the server is provided as a variable form the php code along with another variable that defines the div id to update. This is what I have writtten but it does not work... in head I have this code $(document).ready(function() { $('#container').tabs({fxAutoHeight: true});
[jQuery] Examples of drawing charts with jQuery and SVG
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Helvetica, Arial, sans-serif">Does anyone know of a plugin that can draw charts with jQuery and SVG? </font> </body> </html> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[Dev] Tool to generate HTML from plugin documentation
Hi folks, to ease documentation of plugins, I started writing a small tool that generates HTML from inline documentation. Basically it does the same as Visual jQuery, taking the source, parsing comments, converting to XML, converting to HTML. But all in handy web interface, so you don't have to install or use ant/make or java. Current versions runs only in Firefox: http://jquery.bassistance.de/docTool/docTool.html Let me know if this is useful for you. Any idea on how to get it working in IE/Opera
[jQuery] Interface: Draggable Ghost should only show the border
Hi all, i was wondering how i can set my draggable options so that while dragging a copy of the element is made which shows only the border dimensions of it's parent element. Gilles window plugin (http://gilles.jquery.com/window/) does that really nicely. My problem is, that the modal divs i want to drag around contain a lot of data like forms and such. While dragging the browser update is really bad and i get this stutter effect, which makes the overall feel quite bad. Hope somebody can give me
[jQuery] Tablesorter jquery plugin modification
Hi, Your tablesorter jquery plugin make my life more easy. In our site we use a lot of tables and Your plugin help us vey much. But, we have tables with to much "th" with "colspan" in "thead", and your plugin don't work with these. I make small modification to your jquery.tablesorte plugin to correct that, and I hope that help others peoples. I modify the "buildColumnHeaders" function in the begining as follow: <code> .............. .............. .............. function buildColumnHeaders()
[jQuery] jQuery 1.1 conflicts with vBulletin 3.6
Hey, wondering if anyone else has run into this... jQuery seems to conflict with the latest version of vBulletin (maybe older ones too, but I don't have those). Take a look at http://www.telltalegames.com/forums/forumdisplay.php?f=12 to see what I mean. Try to click any link on the "Forum Tools" dropdown menu and it'll cause a javascript error. I have the packed version of jQuery on the production server so you won't be able to see the source, but it's happening at line 1255 of jquery: var c = this.events[event.type];
[jQuery] Performance Improvements
Hi, I commented on the blog post regarding the performance comparison of various frameworks and said I would test a bit. So I did. Here are the results. The test page is very simple. It starts like this: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function echo(m) { var msg = document.getElementById("msg"); msg.appendChild(document.createTextNode(m
[jQuery] Slide up/down via Interface is jittery - ideas?
Well I figured out a workaround: All I had to do was use this code courtesy of learningjquery: $('a#toggle').click(function() { $('#messengers').slideToggle(400); return false; works perfectly, with no jitter : http://www.anime-planet.com/users/usersentry3.php?id=1 Frustrating as I downloaded the Interface plugin thinking it would simplify things, but I can use the built in jquery function and have it work with no problems. Crazy how that works sometimes, I guess! Would be nice to know why the Interface
[jQuery] Query and exertanl objects
Hi Im new to OOP javascript. My problem is who can I access object vars from within a query function? e.g. function about(){ this.personSelected="tet"; this.init = init; this.test = test; } function init(about){ $('#dropzone').Droppable({ accept : 'people_image', hoverclass: 'peopleDropZone', ondrop: function (drag) { alert(this.personSelected); <-------------------------------------- var timer=1000; //if(dropObj.personSelected == ""){ //$('#profilePlaceholder').BlindLeft(700); //}else{ //alert("clean");
[jQuery] draggable tree IE positioning
In IE, dropping a droppable causes its children to be treated as though they were several ems off their actual positions. Examples: http://interface.eyecon.ro/demos/drag_drop_tree.html http://bluej.freeshell.org/jquery/asset_drag On both of these pages, if you drag Folder A into Folder B and then try to drag something into Folder A, you will have to release it somewhere to the right of and perhaps below its actual position. Likewise, if you drag Folder A into Folder B and then pick up one of the
[jQuery] How does one add children to a DOM element using jQuery?
I'm slightly confused. How does one add children to a DOM element using jQuery? There are append*, prepend*, insert* methods, but none of them seem to actually add a child *inside* a jQuery/DOM element. Why do I need this? I need to create a list inside a div from some data that comes, say, from an AJAX response. How do I do that? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] form plugin question
Hey all, Quick question about the form plugin and the datatype of json. I have the code set up like: var options = { url: 'common/testpages/login.php', beforeSubmit: function(formArray, jqForm) {return formCheckEmpty(formArray);}, success: showResponse, dataType: 'json' }; $("form#loginForm").ajaxForm(options); and return test data of: logged: true showResponse does not get
[jQuery] Interface, Accordian - CSS Selectors
Hi, I'm trying integrate the Accordian FX from the Interface plugin into an existing site structure that I cannot change. I was wondering how I can use CSS child and adjacent-sibling selectors in the following two lines: headerSelector: 'dt', panelSelector: 'dd', Instead of dt I'd like to use the CSS selector #Panel h2. And instead of dd I'd like to use the CSS selector #Panel > h2 + ul or #Panel > ul > ul. I've had a search from the docs but can't find what I need. If someone could point me in the
[jQuery] Interface: Colorpicker demo
What I don't like about these demos is that they use the 'interface.js' script. We have no idea which smaller scripts are used in the creation of these demos. Does anybody know which interface scripts are used in the Colorpick demo? I would guess... jquery.js islider.js And? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page