[jQuery] unbind all events for an object? (Fix issue with AJAXloaded content and leaked elements, ie drip)
<!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.2963" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left> </DIV> <DIV></DIV> <DIV><SPAN class=656553717-15082006><FONT face=Arial color=#0000ff size=2> > </FONT></SPAN>Do events need to be unbound from dom objects? <SPAN class=656553717-15082006><FONT face=Arial color=#0000ff size=2> </FONT></SPAN></DIV> <DIV><SPAN class=656553717-15082006></SPAN> </DIV>
[jQuery] Closures
>> http://laurens.vd.oever.nl/weblog/items2005/closures/
[jQuery] loading content with load() and having probs with a.test
hi, Im very new to jquery and so I have stil a lot to learn... this is the code I use: ---- <script type="text/javascript"> $(document).ready(function(){ $("a.menu").click(function(){ $("body").append("<div class='over_content'>< img src='content/loading.gif' /></div>"); $("div.content").load(this.href,function(){ $("div.over_content").remove(); }); return false; }); }); </script> --- everything is fine, untill I load some content with a link inside like news.html click If I click
[jQuery] unbind all events for an object? (Fix issue with AJAX loaded content and leaked elements, ie drip)
Do events need to be unbound from dom objects? For example, I load in some content via ajax and attach a few events to some of these elements. Then I refresh this via another ajax call and load in more content attaching additional events. IE Drip has these elements listed as being leaked. Is there a way that I say loop through my content and unattach all events before replacing the content? (Essentially a $(object).unbind(); that removes all events) -js _______________________________________________
[jQuery] date picker plugin update
Good job Kelvin...this looks really nice. I believe that one of the requests was to allow selection of previous years. Currently the next/prev buttons would tedious to wade through if you're going back or forward more than a few months. <!----------------//------ 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
[jQuery] In-situ editing (Editable, etc.) disturbs layout
Hi, I'm trying to use jQuery and the Editable plugin to implement in-situ editing (ala Flickr) and it disturbs the layout, which I don't quite understand. I have something like this: <div> <label>Some label</label>: <span id="editme">Some text</span> ... some other text. </div> I set up the span as editable: $(document).ready(function() { $("#editme").editable("foo.adp"); }); On load, it renders like this: Some label: some text ... some other text. Once I click to edit, it renders like this: Some
[jQuery] how to bring new form to the top of the page
> I tried to use "location.href" right after the $().show() If the animation isn't done then the form isn't showing yet and you probably can't scroll to an anchor in it. Maybe something like this? $("p").show("slow",function(){ location.href = "#whatever"; }); The completion function is supported in the latest SVN but if you're using something older you'd need to make sure it works; put an alert in the function to be sure. _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Naming plugin files
I've looked at quite afew plugins lately. Some of them I want to include in the PHP framework for Waarneming.nl I'm working on. What strikes me, is that all of them have a different naming system for files. I suggest we set a naming standard for jQuery plugin files that clearly marks them as dependant on jquery.js, and easily recognizable for what they are: jquery.<plugin>.js So editable would be in jquery.editable.js, DOM would be in jquery.dom.js. _______________________________________________
[jQuery] how to bring new form to the top of the page
Hello, I open a new form via $().show(). Unfortunately the button to open the form is already at the bottom of the page, so the user needs to scroll to see the complete form. I tried to use "location.href" right after the $().show(), with an anchor in the form and also with an anchor under the form, but this does not work. If the anchor is in the form I get side-effects of a partly hidden form, at least under firefox. Any hints how to solve this? TIA, __Janko Hauser _______________________________________________
[jQuery] Textarea: redux
I'm new to jQuery, and I'm having a problem grabbing the value from a textbox or textarea. I searched the past discussions and found this issue: <a href="http://jquery.com/discuss/2006-July/008603/">http://jquery.com/discuss/2006-July/008603/ </a> This is basically what's happening to me, but I couldn't find the resolution I was hoping for in the past discussions. The interesting thing is that the same thing happens if I try to use "document.getElementById ('elemid').value;" - so... it may or may
[jQuery] Custom Borders Plugin
Hi all, I'm using the Custom Borders Plugin made by Sorin Ionescu: http://www.studioindustryllc.com/misc/border/border.html http://www.studioindustryllc.com/misc/border/jquery.js My problem: I assign a custom border to an element: $("#myDiv").border("selected-"); Now depending on the the user interaction I need to assign another kind of border to the same element: $("#myDiv").border("newborder-"); The issue is that the result is that I have the second border nested into the first. I'd like to find
[jQuery] Dom creation
Hello List, I'm struggeling with with the Easy DOM Creation found at <a href="http://www.aloyzas.lt/javascript/jquery/dom.js">http://www.aloyzas.lt/javascript/jquery/dom.js</a> When I load the library I get a jQuery is undefined execption... I really don't know why that is happening, nor what I can do to prevend this.. probely something really simple I suppose. I've someone can point it out.... thanks Peter PS. Is it also possible to parse HTML with the DOM creation so I can dynamicly build add input
[jQuery] Javascript HTML WYSIWYG editor
I am looking for Javascript HTML WYSIWYG editor JQUERY style? Not a fancy one but a very basic one. Anyone create such a plugin? -- View this message in context: http://www.nabble.com/Javascript-HTML-WYSIWYG-editor-tf2099160.html#a5785306 Sent from the JQuery forum at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] set enabled/disabled
> To disable the buttons i use $("#myid").set({disabled:"disabled"});
[jQuery] set enabled/disabled
I'm trying to disable some buttons as long as there are missing values in the form and I don't want to simply hide them, first from a usability point of view and second because of the design of the page. To disable the buttons i use $("#myid").set({disabled:"disabled"}); This part works perfectly fine, but how do I remove the "disabled" tag again from "#myid" to enable it? p. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problems with download
Hello, First let me say that jQuery looks great. Thanks for such an excellent tool. Now the problem: When I clicked the download link and tried to scoll right to view more of the page Firefox actually crashed --and I mean bad. It locked up my whole system. The one super long line is appearently a bit much for some apps. After a hard reboot I save the file and pulled it up in Kate, and yea Kate was struggling with it too, jittering as it scrolled back and forth. Can I ask why you put everything on
[jQuery] Problems with download
> Now the problem: When I clicked the download link and tried
[jQuery] Problems with download
Isn't the one line thing, the result of the code being compacted? It makes the resulting library *less heavy* around 10k with all the spacing and formatting (typical in programming) removed. Dan -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of TRANS Sent: Monday, August 14, 2006 12:30 PM To: discuss@jquery.com Subject: [jQuery] Problems with download Hello, First let me say that jQuery looks great. Thanks for such an excellent tool. Now the
[jQuery] Accessing Input Attributes
> > > alert($("#btn_save").disabled);
[jQuery] Accessing Input Attributes
So it does. Must be a problem with my code then. Thanks for your help anyway Fil. Looks like I've gotta dig through my code for the problem! Cheers, Si -----Original Message----- From: Fil <fil@rezo.net> Sent: Mon, 14 August 2006 12:33:50 To: Simon Jobling <mail@simonjobling.com> Cc: discuss@jquery.com Subject: Re: [jQuery] Accessing Input Attributes @ Simon Jobling :
[jQuery] Accessing Input Attributes
That doesn't seem to help. I'd have thought by using the ID selector there should only be one object returned anyway. Any other suggestions? Cheers, Si -----Original Message----- From: Fil Sent: Mon, 14 Aug 2006 12:16:02 +0200 To: mail@simonjobling.com, "jQuery Discussion." Subject: Re: [jQuery] Accessing Input Attributes
[jQuery] Accessing Input Attributes
<html><title>Accessing Input Attributes</title><body><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> I'm having issues trying to access input element attributes using the jQuery "$" function. By using the following script, I can't access the input's value or disabled attributes: <input type="button" value="Save" id="btn_save" /> <script> alert($("#btn_save").disabled); </script> Has anyone else encountered these problems and/or found a solution that doesn't require using document.getElementById?
[jQuery] ajaxStart and ajaxStop
Hi, $().ajaxStart( function ) and $().ajaxStop() are great to show/hide a global Ajax activity image/message. But sometimes it would be nice to temporarily inactivate this functions. E.g when you have a very short Ajax request, showing an image for a second or so is more annoying then really helping the user. So I'm wondering if there is an easy way to inactivate ajaxStart and ajaxStop for certain Ajay request temporarily. If not, maybe this would be something to include in a future version of jQuery...
[jQuery] elements order
Hi! I have the folowing HTML code: <span style="font-family: monospace;"> </span><<span class="start-tag">h1</span><span class="attribute-name"></span><span class="attribute-value"></span>>heading 1</ <span class="end-tag">h1</span>> <<span class="start-tag">h2</span><span class="attribute-name"></span><span class="attribute-value"></span>>heading 1.2 a </<span class="end-tag">h2</span>> <<span class="start-tag"> h3</span><span class="attribute-name"></span>>heading 1.2.3 a </<span class="end-tag">h3</span>>
[jQuery] Trailing spaces with add/removeClass
Hi, I just found a weird bug in some browsers, like for example, Safari: <a href="http://dump.kkaefer.com/jquery-testcase/02-class-safari.html">http://dump.kkaefer.com/jquery-testcase/02-class-safari.html</a> If the class name of an element contains trailing (or leading) spaces, removeClass() doesn't work correctly. I experienced this also with dynamically added/removed classes (thus no leading spaces *directly* in the html code). Is that bug already documentated? Konstantin _______________________________________________
[jQuery] ajaxStart and ajaxStop
> $().ajaxStart( function ) and $().ajaxStop() are great to
[jQuery] AJAX + IE
<HTML> <BODY> <!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.2800.1543" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=934512319-15062006><FONT face=Arial size=2>I am trying to use the AJAX functionality of jquery but I am having problems. </FONT></SPAN></DIV> <DIV><SPAN class=934512319-15062006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=934512319-15062006><FONT
[jQuery] Set focus on a text field (newbie question)
Sorry for the newbie question, but I want to get rid of my old javascript that I used to set field focus on the first form field, but haven't been able to do it in jquery. How do I do it? -- **** Ivan Quintero _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery, prototype and $.fn()
Hi, I'm using jquery (Build: Fri May 12 13:01:23 2006) and prototype (1.5.0_rc0) and extended the jquery part by the $.fn.editable function (http://www.dyve.net/jquery/?editable). There seems to be some collision between the two scripts, because I get this error when just loading the site: $("td #td_1_name") has no properties I create a table and wnat some of the td elements to be editable. This is the code: -- $('td #td_1_name').editable('ajax/save.php', { "url": 'ajax/save.php', "callback": cbSave,
[jQuery] Patch that corrects error when compressing it
I united SVN rev.174 with build.sh. And, the error occurs when it is compressed with jsPacker.pl. I send the patch that corrects this problem. The patch contains the correction of the memory leak. (I had sent it to ML before. ) http://pepper.sherry.jp/jquery/svn174.patch [uncompress with patch] http://pepper.sherry.jp/jquery/jquery-svn174.js [ compress with patch] http://pepper.sherry.jp/jquery/jquery-svn174-compress.js ---- Taku Sano _______________________________________________ jQuery mailing
[jQuery] ajax and scope
i'm trying to access "this"/object from ajax callback function, any idea/approach on how to achieve this? replace "this._items" in callback function with working code, any tips appreciated.
[jQuery] Look for parent with $.findParent(Expr)
Hi, I am sharing my function that finds a parent by expression. Note that this is different from parent() and parents() as it loops up until it finds a node that corresponds to the expression. jQuery.fn.findParent = function(c) { return this.pushStack(jQuery.map(this, function(a) { while (a = a.parentNode) { if (jQuery.filter(c,[a]).r.length) return a; } })); }; Regards, Konstantin _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Questions concerning the form plugin - submit button, integrate validation
Hi folks, after looking at the form plugin demo ( http://www.malsup.com/jquery/form/ ), I have some questions. The first concerns the serializing function. In a normal browser form submit, the name and value of the submit button that was clicked are submitted. This is not the case within the form plugin. Is this intended behaviour? Having more than one submit button with different names is a nice way to avoid copying values into hidden fields. I see no reason why this should not be avaiable with
[jQuery] removeClass: Bug, feature, or just too wierd?
Let's say I have some elements with similar-looking classes on them, like .HiliteUp and .HiliteDown, and I want to remove them. This works: $("input").removeClass("Hilite(Up|Down)"); Should jQuery be documented to make this kind of usage official? It is depending on implementation details (that is, removeClass uses a RegExp) but it sure is handy so I would vote "feature". One level of backslashes is removed when the string is processed so you need to double them up. For example this would remove
[jQuery] jQuery form handling
Ah.... Thank you John. <!----------------//------ 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 John Resig Sent: Friday, August 11, 2006 12:49 PM To: jQuery Discussion. Subject: Re: [jQuery] jQuery form handling
[jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup)
Okay... It's working in FF. Very nice! This should get melded in with the form plugin posted earlier. <!----------------//------ 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 George Adamson Sent: Friday, August 11, 2006 10:34 AM To: discuss@jquery.com Subject: [jQuery] JQuery Plugin: SpinBox /
[jQuery] Scrolling
Hi All, Just working on some form based stuff and was just wondering: Is there a way to use the effects to do something like $(element).scrollTo(function(){$(this).focus()); and have it ease to the scroll point then focus the element? Thanks, George. This e-mail is confidential to the addressee and may contain privileged information. If you are not the addressee you are not permitted to use or copy this e-mail or its attachments nor disclose same to any third party. If this has been sent to you in
[jQuery] Moving up the DOM
Another question that I've not found a solution to in the Docs yet. The jQuery object, in combination with .find(), offers a zillion ways to seek to a given element or elements and then traverse the tree down from there. What about going up? Say I want to attach an event handler to an element, then in the event handler I want to seek *up* the DOM to the next, say, tr tag and then from there scan back down to elements with certain classes? (Actual example I had to do recently in a straight-JS project.)
[jQuery] jQuery form handling
I believe that would be this: $('input[@name="myfield"]')get[0].val(); Where 0 relates to the order of the items? <!----------------//------ 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 Larry Garfield Sent: Friday, August 11, 2006 10:35 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery form
[jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup)
Page not found. <!----------------//------ 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 George Adamson Sent: Friday, August 11, 2006 10:34 AM To: discuss@jquery.com Subject: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup) Hi everyone, I've been working on a Spin Control
Next Page