[jQuery] Sortable Plugin Callback
Hi. I'm trying to use the sortable plugin[1]. I'm setting the "onchange" event but isn't working. The code I'm using: $('#images').Sortable( { fx: 1000, accept : 'sort', activeclass: 'sort', helperclass: 'sorthelper', opacity: 0.5, floats: true, onchange: function(a){ alert(a); } }); The sorting is working, except by the onchange event. Am I doing something wrong? [1] http://interface.eyecon.ro/docs/sort -- Nando Vieira -- View this message in context: http://www.nabble.com/Sortable-Plugin-Callback-tf2312149.html#a6428673
[jQuery] $("input[@name$='FieldName']") does not work in Firefox
When attempting to get an element with the name (the same happens when I use 'id') ends with 'FieldName' I get an error 'z has no properties'. I am doing this as the page is an ASP.NET one (so the name is generated server side, but always contains 'FieldName'). Seems to work fine in IE though. I am doing this to give 'FieldName' focus when the page loads. $("input[@name$='FieldName']")[0].focus(); Using * (contains) instead of $ causes the same error. _______________________________________________
[jQuery] highlightFade Plugin
Well given the recent discussion regarding css color parsing revealed to me the rgb(100%,5%,85%) style (which my plugin did not support) I figured I'd add it to mine... And we're done. That's been added, I also (think I) fixed a weird (practically unrepeatable) bug regarding high speed fading with both an element and its ancestors. Finally, I put all my helper functions into the $.highlightFade namespace to keep the jQuery object a little cleaner. Comments are welcome. Have fun. -blair _______________________________________________
[jQuery] datePicker is gone when 2nd time loading a form
<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)"> <!--[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] AJAX Comments?
Just a quick question, has anyone on the list done any work on a AJAX comments plugin for jQuery? If not, then I'm probably going to start working on one to work with my Wordpress theme (which I have started converting all the JS from Prototype to JQuery), but rather than go ahead and re-invent the wheel if someone has already started, I thought I'd ask. Thanks, Tane http://www.digitalspaghetti.me.uk _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] highlightFade Plugin
This might be interesting: http://www.squarefree.com/2006/05/06/finding-the-textarea-selection/ -----Original Message----- From: Mark Harwood [mailto:mark@phunky.co.uk] Sent: Thursday, September 21, 2006 2:29 PM To: jQuery Discussion. Subject: Re: [jQuery] highlightFade Plugin I am loving this Plugin... but im a bit stuck, how could i go about making a elemnt fade in on focus and then fade out when its out of focus? Sorry really basic question but then so my knowledge of JS and jQuery! _______________________________________________
[jQuery] JQuery selector to detect focus
Hi there, I have a page in which I need to detect which element has the focus. The JQuery documentation states that the http://jquery.com/docs/Base/Expression/CSS/ :focus selector is not supported, so this would not be possible: $("DIV INPUT:focus") It is easy enough to add a selector definition like this `focus: "a==document.activeElement" ` to the JQuery code (just below "// Form elements" where :enabled and :checked etc are defined). It works fine in IE but apparently in other browsers we have
[jQuery] Bug in .color() / Firefox
Hi All, I'm building a new site using jQuery (obviously) and sIFR (2.0.2) for replacement of Heading text. sIFR forces you to specify your text color in the replaceElement function but since I have different style sheets for different parts of the site I prefer not to hard code color values into the JS, and that's where jQuery comes in ;) The sIFR function call looks like this: sIFR.replaceElement("#content h1", named({sFlashSrc: "sifr/helveticacondensed.swf", sColor: $("#content h1").color(),
[jQuery] proposal for help fighting comment spams on Trac
Comment spams are the worst to manage in Trac. I've written two small shell scripts which enable to detect comment spams and clear them easily. Here are these scripts : :~$ cat ./check_comments.sh #!/bin/bash echo "select * from ticket_change where time in (select time from ticket_change where newvalue like '%http:%');" | ./sqlite3 trac/$1/db/trac.db :~$ cat ./erase_bad_comments.sh #!/bin/bash # auteur: Gilles Vincent : <a href="mailto:gilles.vincent@gmail.com">gilles.vincent@gmail.com</a>" # simple
[jQuery] Loading images dynamically with JQuery InnerFade
Hello All, I am using the JQuery InnerFade plugin [1] but I have a problem. We are using approximately 20 images and InnerFade requires that the markup exist before hand, which means all the images have to be loaded first, if I am not mistaken. What I would like to know is if there is a method for me to avoid loading all the images initially and still have InnerFade work as expected. Any help would be appreciated. Thanks. [1] http://medienfreunde.com/lab/innerfade/ -- Nesta Campbell _______________________________________________
[jQuery] Structuring jQuery code in large projects
I have slowly started to implement jQuery into my company's applications. Previously we have heavily relied on prototype's $ function and Dean Edwards (et al) addEvent. An issue I stumbled upon is when our clients use Norton Internet Security with the popupblocker feature enabled. NIS injects some nasty javascript ( <a href="http://www.aestheticbliss.com/nis.txt">http://www.aestheticbliss.com/nis.txt</a>) before the first encounter of the script tag and after the </html> that causes Dean's addEvent
[jQuery] center function - is there a plugin I need?
Theres no information about the center function on visual jquery. when I call the function I get the following error $("#imageContainer").center is not a function Does center() require a plugin?? thx - S _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Determine which button was just clicked
Hey all! Ok, right to the point here! I have a page in ASP.NET which has two sets of username and password boxes and two sets of submit buttons. Because it is ASP.NET, there can only be one form in a page. The problem in a normal page is that, when the user presses enter on the keyboard, the first submit control is triggered. What if someone enters info in the second username and password boxes? Well, the page simply doesn't know which control the user was in when they hit enter. So... I wrote something
[jQuery] Suckerfish conversion
I know there is a lovely suckerfish plugin already. I took it upon myself as a learning exercise to convert some dom manipulation / css manipipulation scripts from around the web. the son of suckerfish dropdown code here http://www.htmldog.com/articles/suckerfish/dropdowns/example/ uses the following javascript <script type="text/javascript"><!--//--><![CDATA[//><!-- sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length;
[jQuery] jQuery spokesmodel
Nice hat! http://static.flickr.com/52/114431569_4c0c4e1763.jpg?v=0 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery spokesmodel
That's nauseating. Except for the hat. Is there NOTHING that Paris Hilton won't pimp herself out for? <!----------------//------ 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 Dave Methvin Sent: Monday, September 18, 2006 4:54 PM To: discuss@jquery.com Subject: [jQuery] jQuery spokesmodel Nice
[jQuery] dimensions in jquery src
hi, there's a dimensions folder been added recently to jquery's src. is that intended to be included in the build soon? or is it more like a plugin? Would it be easy to build a jquery file with plugins (like the cookie plugin) already added? I could add the folders and create my own custom build file with a target including these folders, right? would be a little messy though... better ideas? -- klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] JQuery version ???
What is the version of the currently downloadable latest version of jquery ???? In the code only a revision tag and date is specified !!! How about adding a version method which would print an implemented version specification which could matched against e specified interface version in the documentation page(s). This would benefit the user of the jquery library, to find out which of the documented methods or functions are implemented in his downloaded version of the library. (cfr: java reference
[jQuery] How to calulate the real height of an element
I have some elements dynamicly created, but I found the height is not the displayed height, and it's larger. I don't sepcify the height of the elements which dynamicly created, so the height attribute should be default. Is there a way to get the display height but not the default height? And it seems that the height returned by element.height() in MSIE is correct, but not correct in FF. And the element has many children element in it. -- I like python! My Blog: http://www.donews.net/limodou UliPad
[jQuery] innerStyle and .css
Hallo, I have problems with using jquery and innerstyle-definitions. I create a dynamic page with such code: <div id="node40" class="leaf" style="font-size: 0.1em;position:absolute;top:417px;left:299px;width:51px;height:33px;border: 1px solid black;background-image: url(index.php?action=getImage&node=node40)"> </div> Now, I have to get the top and left values. Unfortunatelly $('node40').css("top") and $('node40').top() returns "0px". I think, the reason is the innerstyle definition. Because
[jQuery] New Plugin: AutoScroll
I developed a new plugin for large web pages that scroll. Hold down the control key and move your mouse to the edge to scroll the page. No fussing with scrollbars. View the demo. Feedback appreciated! <a href="http://jdsharp.us/code/AutoScroll/"> http://jdsharp.us/code/AutoScroll/</a> -js _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] % width / animation combo problem
I've got a horizontal bar that represents a percentage of completion of a certain task. I can use jquery to set the width as follows: $('#bar').width("<?=$progress_percent?>%"); (yes, that's php) I can also do the following: $('#bar').width('<?=$progress_percent?>%').show(); What I can't do is animate it with any success. All of the following don't work: $('#bar').width('<?=$progress_percent?>%').show('slow'); $('#bar').show('slow'); $('#bar').animate({ width: 'show'}, 500); and even using the Interface
[jQuery] Wildcards
> Here is another approach which actually detects all td clicks... > > $("td").click(function(){ > > //If the td ID length is greater than 12... > if ($(this).id().length >12){ > > //If the first 12 chars of the ID = td_comments_... > if ($(this).id().substring(0,12) == "td_comments_") > { > /* Your onclick event for td_comments_ goes here */ > } > } >}); Depending on how many td_comments_* elements were in the table, that could create a lot of unneeded handlers though. It would definitely be better
[jQuery] datePicker is gone when 2nd time loading a form
and now for the solution :/ $_SESSION['count'] ++; and every form input gets a raising id, so that its unique everytime -> datepicker works :< _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Possible to In/Decrease element with jQuery
Im currently working on a nice simple personal CMS, and jQuery is the basis of everything JS related. Im wanting to know how easy it would be to create a custom function that will allow a user to resize a textarea box verticaly so that they can view more of the text. Im sure it quite simple, but im poor with JS at the best of times so if someone can point me in the right direction i should be able to work it out. I was thinking something along the lines of the Drag functions? Many thanks Mark 'Phunky'
[jQuery] Request from a newbie
<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] Help Appending HTML
Hi everyone. I'm a little stuck trying to append a row to an existing table. I do a simple ajax call that returns the HTML row to insert into the table: $.get("product.cfm", { productid: thisID }, function( msg ){ /* Add the new row to the cart table */ $("#cartTable").append( msg ); } ); Firebug is telling me that the value of msg (the return value from the ajax call) is: <tr id='cartRow_897'> <td><input type='text' size='3' name='qty_897'></td> <td>2
[jQuery] $.ajax mistake
Hello, strange problem, jQuery can't extract the xml data after an ajax query... see below for the code: my XHTML file contains a simple form: <form method="post" name="cityForm" id="cityForm"> <input type="text" name="city" id="city" size="40" /> <input type="submit" value="Localité" id="submit" /> <img src="images/ajax-loader.gif" alt="ajax loader" id="ajax-loader" /> </form> <div id="feedback"></div> jquery script: <script type="text/javascript"> $(document).ready(function(){ $("#ajax-loader").ajaxStart(function(){
[jQuery] tweenbox - image gallery
http://www.willjessup.com/sandbox/jquery/tweenbox/tweenbox.htm bottom link is Image Gallery. Takes a URL (gallery.php?params...) and returns the result in JSON for evaluation. Then you can view the images returned within a tweenBox that resizes to each picture. It waits for the image to complete downloading, and also checks to see if the picture is bigger than the screen. the JSON object allows for alot of extra's like captions easily. There are some issues w/ the image.complete as-is and I need
[jQuery] Request from a newbie
<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:x="urn:schemas-microsoft-com:office:excel" 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"
[jQuery] Packing jquery code
I have made some modifications to the jquery code and would like to pack it back down. What command is used to generate the official 'packed' version? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] .css("property", "value") -left -right -top -bottom broken in IE
That's it! That worked perfectly. Perhaps I missed it somewhere, but I didn't see it in the documentation. Thank you very much. - Christian Gove On 9/18/06, Shawn Tumey <shawn@mtwebproduction.com> wrote:>
[jQuery] IE choking on children()
IE is choking on the following line: $( "#searchResults" ).children().remove(); I'm getting an Object Required error. This works fine in FF. Seems like the children() method is causing IE to choke in this case. Any ideas? Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery spokesmodel
Where'd you get that picture of my girlfriend? :P -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Dave Methvin Sent: 18 September 2006 22:54 To: discuss@jquery.com Subject: [jQuery] jQuery spokesmodel Nice hat! http://static.flickr.com/52/114431569_4c0c4e1763.jpg?v=0 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ _______________________________________________ jQuery mailing
[jQuery] TreeMenu height problem (curCSS issue)
--- Mark Sams <msams992000@yahoo.com.au>
[jQuery] events in plugins
hi I'm starting with jquery and I want i a plugin to be bound to an event : $(document).ready(function(){ $("input[@type='submit']").checkform(); }); my plugin: $.fn.checkform = function() { $(this).bind("click", function(){alert("it works");} ); }; I tried to imitate code from other plugins, but I don't get it. What am I doing wrong ? olivvv _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Processing JSON with jquery
> > From: Sam Sherlock
[jQuery] .css("property", "value") -left -right -top -bottom broken in IE
This is the code I am working with: $("div.labelOff") .css("padding-left","23px") .prepend('<a href="#" class="openBoxButton" title="Open section"></a>') .find("../div:last",this) .hide() .end() .find("a.openBoxButton") .toggle(function(){ // do stuff }); This code fails to execute padding-left in IE. This worked before in jQuery versions prior to 1.0. Also, it still does not work in 1.0.1. I also tried to use -right -top and -bottom, but none affected the rendered
[jQuery] Setting header for local files
> From: Jörn Zaefferer
[jQuery] Odd response from .ajax()
I'm getting an odd response back via .ajax. Firebug is showing the reply as: <h1>Length Required</h1> Anyone seen this before? Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page