[jQuery] Sortables question
> -------Original Message------- > From: Blair Mitchelmore <jquery@offput.ca> > Subject: Re: [jQuery] Sortables question > Sent: Feb 20 '07 18:29 > > $('ol.steps li').each(function(index) { > $(this).append('<span class="aside">List item ' + (index + 1) + > '</span>'); > }); > > Would convert: > > <ol class="steps"> > <li>Cut a hole in a box</li> > <li>Put your junk in that box</li> > <li>Make her open the box</li> > </ol> > > into: > > <ol class="steps"> > <li>Cut a hole in a box<span class="aside">List
[jQuery] Including a file based on Form Select
Hi, I have a form that has several fields which are common for all actions. There are other fields in the form that need to be conditionally displayed based on the type of post being made. I know how to show a div with the extra fields based on what option the user selects in a HTML select field. http://strtest.alexezell.com/posts/ and choose Road Trip However, hiding and showing divs for so many options gets a little unwieldy. It seems like the easiest thing would be to pull in a file via Ajax with
[jQuery] Sortables question
Regarding the sortables plug-in and the specific example http://interface.eyecon.ro/demos/sort_lists.html does anyone know how I would iterate over the items in the list in the order in which they appear on screen? My goal is to list the ids in the order they appear. Your help is greatly appreciated as always, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Plugin Update: jdMenu 1.2.1
<div>jdMenu's been updated to 1.2.1 which resolves a small issue when clicking on a link in a menu.</div> <div> </div> <div> <a href="http://jdsharp.us/code/jQuery/plugins/jdMenu/">http://jdsharp.us/code/jQuery/plugins/jdMenu/</a></div> <div> </div> <div>Cheers,</div> <div>-js</div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Validation plugin 1.0 alpha 2
Hi, there is a realy serious bug in your demo http://jquery.bassistance.de/validate/demo-test/custom-methods-demo.html please look at the source 7 + 4 is NOT 13 it is 11 :-) btw: great news, i like to use it for my next project Best regards, Stefan Kilp
[jQuery] How to made 'dd' hide first...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>How to made 'dd' hide first...</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN
[jQuery] Right way to set line-through?
Hi, How do I use JQuery to set the text-decoration of an element with ID "id1" to "line-through"? Thanks, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Test
test email _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Hide/show question with dl/dt/dd
<html> <body> Hi folks, I have a simple faq application with the question within a dt tag and the corresponding answer within a dd tag. I had hoped that my onload code of: <tt>$('dt.toggle').bind("click", function(){$(this).parent('dt').next('dd').slideToggle(500);return false;}); </tt>would have revealed the hidden answer until the question was clicked. I tried wrapping the question in an a tag (with class=toggle) and the code: <tt>$('a.toggle').bind("click", function(){$(this).parent('dt').next('dd').slideToggle(500);return
[jQuery] collapsible menus ~ pixel carnage
discovered collapsible menu tutorial by pixel carnage. Got it working all except for the fact that if I wrap the Expand/Collapse link with <h3> (for styling purposes) the expan/collap fails... Heres the tutorial by PixelCarnage: http://pixelcarnage.net/articles/development/jquery-collapsible-menu/ Very straightforward & I tried to modify the javascript to handle the surrounding h3 but to no avail! My code so far: <ul id="Menu"> <li id="current_cat"><h3> # Accessories </h3> <ul> <li> sub menu links</li>
[jQuery] Simple confirm on change
Right i know this is a dirt simple one but i just cant put my finger on it. I have a simple form with just a select box in it and i wish to submit the form on change. Currently im using $('#status').change( function(){ confirm("Test confirm"); this.submit(); } ) This almost works, apart from when you select cancel on the confirm box it still submits. Anyone able to point me in the right direction plz Cheers Mark _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Rounded corners question
Hi, Please disregard my previous post about a bug in jquery and text elements. I wish to revise that by saying, when I include jquery, the jq-corner.js library and then include this code <script type="text/javascript"> $(function(){ $('.inner').wrap('<div class="outer"></div>'); $('.inner').each(function() { $(this).corner("round 5px").parent().css('padding', '1px').corner("round 6px"); }); }); </script> the text elements within the DIV "inner" get disassociated from the parent form -- that is, when
[jQuery] Sites Powered by jQuery
Hey guys, Just a reminder that we're always taking submissions for new jQuery-powered websites. Please submit them to me or Karl Swedberg (karl@englishrules.com) and be sure to include: - Link - Name of Company - What the site does - The version of jQuery being used - Where and how jQuery is used For an up-to-date list, please visit: http://docs.jquery.com/Sites_Using_jQuery Thanks again for all of your help! Rey... _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] wrapinner with 1.1.1
Hey all, I had some trouble today attempting to use the simple wrapinner plugin with jquery 1.1.1. http://motherrussia.polyester.se/jquery/wrapInner/ Some modification to the plugin code was required to make it do what I was looking for. // The additional argument is 's' (for selector) $.fn.wrapInner = function(e,s) { return this.each(function(){ var o = $(this); var c = o.html(); o.empty().append(e).find(s).append(c).end(); }); }; The modified example usage: $('p').wrapInner('<a href="/"><\/a>','a');
[jQuery] How to customize already existing events?
Hello, Let's say I have the folowing code I can't change (it's not mine) : <select name="myselect" onchange="this.nextSibling.visibility='hidden';"> <option value="1">One</option> <option value="2">Two</option> </select> How can I put my own "change" event handler, but being able to run the original one as well? I tried that : $(document).ready(function() { var currentOption = $('select[@name= myselect] > option [@selected]').attr('value'); var currentOnChange = $('select[@name=myselect]').attr('onchange');
[jQuery] Google's Summer of Code
Sorry if it is a dumb question but what is a unobtrusive charting plugin? Is it something to do with bar charts/pie charts/ line charts/ area charts? -avi <div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> -----Original Message----- From: <a href="mailto:discuss-bounces@jquery.com">discuss-bounces@jquery.com</a> [mailto:<a href="mailto:discuss-bounces@jquery.com">discuss-bounces@jquery.com</a>] On Behalf Of John Resig
[jQuery] tables - is this possible ?
> I have a table populated by a php/mysql script. I've created an excel export
[jQuery] tables - is this possible ?
Hi all, I have pretty basic js & jquery skills so need some input on whether this is feasible: With some code, would i be able to scan the html page for a <table></table> tag; and create an excel file based on the table data ? if so, whats the correct syntax to loop through <td>? The main advantage for this would be speed and bandwith, as it'll save me making a call to the database. Thanks R -- View this message in context: http://www.nabble.com/tables---is-this-possible---tf3252465.html#a9041221
[jQuery] jQuery and Jack Slocum's Ext
SUPER - SUPER - SUPER - GREAT!!!! i like to use both as soon as possible. thanks a lot to jQuery and Jack Slocum team for these great products Best regards, Stefan Kilp
[jQuery] Sites Powered by jQuery - Updated!
Hey guys, Just a reminder that we're always taking submissions for new jQuery-powered websites. Please submit them to me or Karl Swedberg (karl@englishrules.com) and be sure to include: - Link - Name of Company - What the site does - The version of jQuery being used - Where and how jQuery is used For an up-to-date list, please visit: http://docs.jquery.com/Sites_Using_jQuery Thanks again for all of your help! Rey... _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] ajax and cache busting
<html 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)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
[jQuery] ajax error
Hi! I'm getting an error: Error: [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] when using thickbox with jquery in FF. Anyone knows how to solve this problem? regards, Adam _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] change method on hidden fields
Hi all! I've been sizzling a little with the change method but I can't seem to get it to work. I have two hidden fields that gets updated by numerous links and it works fine but the function I have tired to the onchange event is never fired. Here is some code snippets from my code: $(function(){ // apply delegate to the onchange event of the hidden fields $('#hdfLocation, #hdfType').change( function(){ alert("delegates is working");g_hdfChange = true; } ) } <script type="text/javascript" defer="defer">
[jQuery] Execute effect half way through current effect
Hi, I'm not sure if this is possible, but I would like to execute an effect once the current effect has completed a certain portion of it's task. This is what I want to do: $(document).ready(function() { $('#full-article').hide(); $('#link-full-article').click(function() { $('#full-article').slideDown("slow"); //when the .slidedown effect has shown 375px of the hidden div, do the following: $('.query-hide-content').animate({opacity: 'hide'}, 10);
[jQuery] jqUploader development: conception question
<!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.6000.16414" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=156283223-18022007><FONT face=Arial size=2>hello,</FONT></SPAN></DIV> <DIV><SPAN class=156283223-18022007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=156283223-18022007><FONT face=Arial size=2>i'm (still) working on my plugin that is meant to replace a
[jQuery] textarea newline jquery form
Hi, I'm having some problems with the jquery form plugin. I'm taking input from a textarea and sending it to a mysql db with an ASP script. If I enter this text: Some Text It shows up in the db as: http://codewizards.dk/wierd.newline.gif If i send it without using javascript it works fine.... How do I get it to work correctly with jquery? -- Regards Michael Nielsen -- View this message in context: http://www.nabble.com/textarea-newline-jquery-form-tf3253533.html#a9044356 Sent from the JQuery mailing
[jQuery] adding a class to positive and negative data cells in a table column
Is there a clever way in jQuery to find non-zero data in specific columns of a table, and assign them a class based on whether they are positive or negative? In plain English, I want to make positive numbers green (or the cell bg) and the negative numbers red, but only in certain columns. Ideally, I would want to fine tune the range - say, > 1.5 is green and < -1.5 is red. I suspect that COL and COLGROUP are not very useful as selectors. Thanks! -- View this message in context: http://www.nabble.com/adding-a-class-to-positive-and-negative-data-cells-in-a-table-column-tf3240521.html#a9007930
[jQuery] Bug in jquery related to text elements?
Hi, Is anyone familiar with a bug in JQuery where including the "jquery.js" library on your page seems to disassociate text elements from their parent forms? This is the text element I have that no longer recognizes its parent form when I call "alert(document.getElementById('PM16033-1497').form.name);". I get a JS error, "document.getElementById ... .form has no properties". <input onChange="if (this.value != '') {isValidQty(this)};" type="text" size="4" name="PM16033-1497" id="PM16033-1497" value="">
[jQuery] Id of a textarea element
>From the Firebug console...
[jQuery] bind problem
Hi everybody! I'm new to jquery and i've got some irritating problem. I want to assign an "on click" event to an <a> element. I'm using bind method and i'm getting the error like: "c[j].apply is not a function" in line 1002 in jquery script file. I have no idea what is the reason. Can you help me?? My code: var dat = 'some text'; $().ready(function(){ $('a.remote').bind('click', {'s':dat}, function(e){ alert(e.data.s); }); }); What i've noticed is when i use bind method witout passing to the callback
[jQuery] Plugin updates
<div>Hi all,</div> <div> </div> <div>Would it be better on the plugins page if all authors could add an update date so it's obvious if/when a plugin has been updated?</div> <div> </div> <div>Currently I'm browsing all the plugins that I use on a regular basis to see if they have changed.</div> <div> </div> <div>Regards,</div> <div> </div> <div>Gerry</div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Where's the limitQueue plugin gone?
<div>Anyone know where the limitQueue plugin has gone? I keep getting a 404.</div> <div> </div> <div>Regards,</div> <div> </div> <div>Gerry</div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Figure out which img in a div was clicked?
Glen and Matt, thanks for your responses! I've spent a bunch of time on this tonight and managed to get a working solution, though I'm hoping to tweak it a little now. (url for a refresher... note, i've been working off a different page now, so these new changes aren't up. At least this will show you the div structure: http://anime-planet.com/newsite/anirec/5.html ) Expected behavior: -click any button while no dropdowns are visible: dropdown associated with button lowers. -click the SAME button
[jQuery] How would I change this?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>How would I change this?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">How would I change this code so that only the</FONT></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">details immediate</FONT></SPAN><SPAN
[jQuery] New plugin: jQuick Tag Creator
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-15" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#333300"> Yes. Differently from other quick tag generators, jQuick is jQuery specific. This is an advantage because anything you can do with jQuery is possible with jQuick methods.
[jQuery] Display hidden elements in print layout
Hi, I'm using a JQuery-based script which displays a number of elements of a slideshow (namely, <dd> tags containing images). The script then shows them. Now, while it looks nice when printing with JS turned off, I can't get the hidden images to display when printing. Unfortunately, no such thing as the onbeforeprint event exists in Firefox and Opera which I could use to display the images in the print layout. I have a <style media="print"..> definition, but even trying to check for a css property
[jQuery] Why do these two behave like this?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Why do these two behave like this?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"><FONT
[jQuery] Figure out which img in a div was clicked?
I have a series of divs, each has a "dropdown" type div that remains hidden, until you click an image in another div (these buttons are for things like screenshots, info, etc). Here's the page I'm working on: http://www.anime-planet.com/newsite/anirec/45.html By default, these dropdown divs should be hidden (they aren't now, so I can test). When you click the reviews image, a currently exposed dropdown for that series entry should slidetoggle (to hide itself), and the clicked image's div should slidetoggle
[jQuery] Bug in Interface Autocomplete SVN
Around line 310 of iautocompleter.js there is a line like this: if (/13|27|35|36|38|40|9/.test(pressedKey) && jQuery.iAuto.items) { While keycode 9 is the enter key, the regex there also matches for any other keycode with a 9 in it. I know there's a nice looking regex way to fix this but it's Saturday night and I'm fixing it now with this: if ((/13|27|35|36|38|40/.test(pressedKey) || pressedKey == 9) && jQuery.iAuto.items) { Peter http://www.vulgarisoip.com _______________________________________________
[jQuery] div slider
hi guys, i am trying to do the following: imagine you have a jquery powered slider as in here (look at the top horizontal slider please): http://interface.eyecon.ro/demos/slider.html how can it be accomplished that when moving the slider in a horizontal direction (right or left), in a another div (iframe?) a certain content could be scrolled (back and forth). see it as a small navigation strip that scrolls the content of a bigger, wider div. and each "sliding step" (let's say 10 step in total) would
Next Page