Re: [jQuery] Autocomplete Plugin help
My autoplugin does this with option minChars=3 http://www.dyve.net/jquery?autocomplete On 8/24/06, digital spaghetti [EMAIL PROTECTED] wrote: Hi there, Would anyone be able to help me out? I'm trying to code a livesearch widget for Wordpress using G. van den Hoven's Autocomplete plugin. I've tried to look through the source to try find what I need, but can't. I have my widget that I initialises the plugin, and an input for where I accept the user typing in, but what I cannot work out is how to take each keypress and pass that into a PHP file to do the search. I'd prefer to wait until at least the first 3 characters have been put in before firing this off, but this is not essential. code: script type=text/javascript // // Page script $(document).ready(function() { $('input.#livesearch').autoComplete($('#center'), '?php bloginfo('template_url'); ?/search.php'); }); /script div id=search div input type=text name=livesearch id=livesearch value=Live Search / /div /div Can anyone suggest what I do? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface plugin droppable
it´s working with: ondrop: function(zone, drag) { alert(this); alert(zone); }, because this refers to the droppable whereas zone is the draggable. not sure if that´s intended. patrick Am 26.08.2006 um 20:15 schrieb patrickk: that´s good news. just downloaded a new version of interface.js, but it doesn´t seem to work. thanks, patrick Am 26.08.2006 um 19:57 schrieb Stefan Petre: still, it may work. just that I changed something regarding droppables. Onchange applies to the droppable and gets only one parameter, the dragged element. So you should do like this onchanged : function(dragged){ alert(this); //the droppable alert(dragged); //the draggable } I updaed the documentation too. Sorry for this. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
Yehuda Katz wrote: Check it out at: http://screencasts.visualjquery.com/visual/docs-redux.xml Hi Yehuda, looks like the performance issues is solved by removing the animations :-) Something that does not work as expected: I select a category and then an entry under that category. After switchting to another category and back, the entry is still marked as selected, but its content is not shown. I think this worked before. In IE 6 seems to be a layout problem. The header part sticks at the right, even hiding my scrollbar. Very strange. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface plugin droppable
Op 26-aug-2006, om 19:43 heeft Stefan Petre het volgende geschreven: Drag and Drop from interface is not designed to work with table elements. May I ask why not?? Steef ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
Hi Yehuda, It would be handy if you could scroll each column independantly. For example, if you scroll down to the end of events list and select, say, keyup, you have to scroll up to find out the article. Just a thought; very useful anyway :-) Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] un-PanView
Hi Florian, So you would like to have a $(img.imagePan).destoryPanView(); ? /christian Florian wrote: Hi all, I'm using PanView (http://motherrussia.polyester.se/jquery/panview/) like a zoom : function zoom () { var img = $(#divImg img).get(0); var imgSrc = img.src; var oldi = new Image(); oldi.src = imgSrc; var iWidth = oldi.width; var iHeight = oldi.height; var i = new Image(); i.src = inc/do.php?a=imgid=+img.id.substr(4); var imageWidth = i.width; var imageHeight = i.height; i.onload = function() { img.src = i.src; plopImg(iWidth + 12, iHeight + 12); }; } function plopImg (w, h) { panViewEnable = 1; $(img.imagePan).panView(w, h); } But, I want unzoom too ! :D How to desactived panView ? I added a var to unable MouseEvent, but the wrap stay and I can't re-zoom because its create a panview in other panview... Do you understand what I mean ? Sry for language... :) Thx, Florian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] a fix for getAttribute('action') in forms
Hello, there is (apparently) a bug in MSIE if we use getAttribute('action') on a form, because it will give us the action property of the form, instead of the value of its action input. Example : form action=url input type=text name=action value=ok / /form this.getAttribute('action') should be ok, not url. A fix for this is to use: this.getAttributeNode('action').nodeValue (that's Renato's solution to fix form.js at http://zone.spip.org/trac/spip-zone/changeset/4794 Another one is to use: s = this.getAttribute('action'); if (typeof(s)!='string') s = this.attributes.action.value; One of these patches might apply to jquery.js and/or form.js There is definitively a bug here, that doesn't let ajax calls access the action input value of a form. -- Fil ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] a fix for getAttribute('action') in forms
Fil wrote: Hello, there is (apparently) a bug in MSIE if we use getAttribute('action') on a form, because it will give us the action property of the form, instead of the value of its action input. Why do you consider an input element with the name 'action' an attribute of the parent form? I'm not sure how form.js works, but I see no bug here. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] a fix for getAttribute('action') in forms
Fil ha scritto: Hello, there is (apparently) a bug in MSIE if we use getAttribute('action') on a form, because it will give us the action property of the form, instead of the value of its action input. Example : form action=url input type=text name=action value=ok / /form this.getAttribute('action') should be ok, not url. A fix for this is to use: this.getAttributeNode('action').nodeValue (that's Renato's solution to fix form.js at http://zone.spip.org/trac/spip-zone/changeset/4794 Just to make you know I modified further jquery form plugin, to eliminate a huge performance issue on forms with long option lists. It is the case of the document form in SPIP that has 3 select for the date value in single selection mode. Well, the standard serialize function cycles *every* element in the form, all the options and even div, span, not just input,select and textarea , when it is not really needed. My change cycles only those elements and option only if select are in multiple selection mode. My performance test passed from more than 600ms to just 15ms in a standard document form in SPIP. The worst thing if that all this processing is sync, as it is done before the async POST. Renato ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] a fix for getAttribute('action') in forms
Jörn Zaefferer ha scritto: Why do you consider an input element with the name 'action' an attribute of the parent form? I'm not sure how form.js works, but I see no bug here. -- Jörn It's not Fil, it is IE that considers attributes and properties the same thing. If you have an input with name 'action' it will be a property of the form. However IE returns the property value even if you use getAttribute(). As an alternative working in all browsers, getAttributeNode('name').nodeValue or the solution proposed by Fil returns the right value. The same problem should happen with an input with name 'method' as the concept is the same. Renato ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
Unfortunately, there are CSS issues that prevent this. I'm going to be looking at solutions to the underlying problem, but the fact that IE does not support position: fixed is going to make it difficult (my initial solution was to use position: fixed to keep the article at the correct location no matter what). Also, I believe that John may be recategorizing Events so it's not such a long category (i.e. creating subcategories).Thanksforbringingtheissuetomyattention.--Yehuda On 8/27/06, Franck Marcia [EMAIL PROTECTED] wrote: Hi Yehuda,It would be handy if you could scroll each column independantly. Forexample, if you scroll down to the end of events list and select, say,keyup, you have to scroll up to find out the article. Just a thought; very useful anyway :-)Franck.___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
Regarding the layout problem, that's another IE bug. In all but IE, $().css(width) returns the absolute width. IE returns auto. That's how the computed style works in modern browsers. (For now) to do something different, use: jQuery.css( elem, 'width' ) That will give you the max pixel count. I'll probably make this into the method 'maxWidth()'. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
Thanks to John, I have fixed that particular bug in IE (the issue was that IE and Firefox each have proprietary ways of getting the screen size). I also fixed the bug where sections were being shown as open when they are actually closed in all but IE. http://screencasts.visualjquery.com/visual/docs.xmlKeep the comments coming.-- YehudaOn 8/27/06, John Resig [EMAIL PROTECTED] wrote: Regarding the layout problem, that's another IE bug. In all but IE, $().css(width) returns the absolute width. IE returns auto.That's how the computed style works in modern browsers. (For now) to do something different, use:jQuery.css( elem, 'width' )That will give you the max pixel count. I'll probably make this intothe method 'maxWidth()'.--John___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz Web Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Visual jQuery 1.0 -- Redux
It's because of the aformentioned bug with the selector. My code actually forks for IE and does stuff that results in the IE bug. Hopefully John will resolve that particular bug soon and it'll work in IE too. -- YehudaOn 8/27/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Yehuda Katz wrote: Thanks to John, I have fixed that particular bug in IE (the issue was that IE and Firefox each have proprietary ways of getting the screen size). I also fixed the bug where sections were being shown as open when they are actually closed in all but IE.About the open/closed issue: While it works now in Firefox, IE displaysonly empty entries. Weird.-- Jörn___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz Web Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] un-PanView
Something like that.Now, I re-create a new img in DIV without class, etc...FlorianOn 8/27/06, Christian Bach [EMAIL PROTECTED] wrote:Hi Florian,So you would like to have a$( img.imagePan).destoryPanView(); ?/christianFlorian wrote: Hi all, I'm using PanView (http://motherrussia.polyester.se/jquery/panview/ ) like a zoom : function zoom () {var img = $(#divImg img).get(0);var imgSrc = img.src;var oldi = new Image();oldi.src = "" var iWidth = oldi.width;var iHeight = oldi.height;var i = new Image();i.src = "">var imageWidth = i.width ;var imageHeight = i.height; i. {img.src = "">plopImg(iWidth + 12, iHeight + 12);}; } function plopImg (w, h) { panViewEnable = 1;$(img.imagePan).panView(w, h); } But, I want unzoom too ! :D How to desactived panView ? I added a var to unable MouseEvent, but the wrap stay and I can't re-zoom because its create a panview in other panview... Do you understand what I mean ? Sry for language... :) Thx, Florian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Sortables scrollbar issue
On Thu, 24 Aug 2006, Stefan Petre wrote: Great news. I can finally release the Interface with the new changes, website and plugins. Hi Stefan, I'm trying out your new Sortables demo: http://interface.eyecon.ro/demos/sort.html If you make your browser window smaller than the content and scroll down to the bottom, the drag'n'drop causes the screen to jump around a bit (IE and FF). It also flickers to white in FF. Though the current behavior is much improved over the previous version (where using the scrollbar would almost completely break the sorting ability) I wonder if it would not be too difficult to get rid of the flickering and jumping artefacts as well. Thanks, Dave ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999
Sounds like a float rounding error... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] AJAX Activity Indicators
Hi all. Can you show me a little example using AJAX Activity Indicators? (with jQuery of course). TIA, -- juan pablo aqueveque www.juque.cl ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX Activity Indicators
here is one: http://realazy.org/lab/jquery/j-gallery/ ,thought it is not good, LOL ( not REAL ajax...)2006/8/28, Juan Pablo Aqueveque [EMAIL PROTECTED]:Hi all. Can you show me a little example using AJAX Activity Indicators? (withjQuery of course).TIA,--juan pablo aquevequewww.juque.cl___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- realazy.org ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX Activity Indicators
Can you show me a little example using AJAX Activity Indicators? (with jQuery of course). This page uses the ajaxStart/ajaxStop functions: http://www.malsup.com/jquery/taconite/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] AJAX Activity Indicators
It comes down to using the $.ajaxStart and $.ajaxStop.Basically, a function wrapped in $.ajaxStart will run when any ajax call starts, while a call to $.ajaxStop will run when no more ajax calls are running. So you can do something like:$.ajaxStart(function() { $(#loading).show();});$.ajaxStop(function() { $(#loading).hide(); });You can also use the ajax callback functions in any ajax function to do per-call loading graphics.-- YehudaOn 8/27/06, Mike Alsup [EMAIL PROTECTED] wrote: Can you show me a little example using AJAX Activity Indicators? (with jQuery of course).This page uses the ajaxStart/ajaxStop functions:http://www.malsup.com/jquery/taconite/___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz Web Developer(ph)718.877.1325(fax) 718.686.4288 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Quantum computing in jQuery: $().unload()
The advanced event plugin creates three $() methods for each event: a binding method foo(), a one-shot binding method onefoo(), and an unbinding method unfoo(). Two of the events that this plugin wraps are the load and unload events. Therefore, $().unload() can be either the unbinding method for the load event, or the binding method for the unload event. In fact, it is both of these simultaneously, resolving to one or the other when the wave function collapses. This is the first practical implementation of quantum computing in JavaScript. Proof that jQuery is ahead of its time! -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Quantum computing in jQuery: $().unload()
Michael , So just by looking at the state of the system i change it? The advanced event plugin creates three $() methods for each event: a binding method foo(), a one-shot binding method onefoo(), and an unbinding method unfoo(). Two of the events that this plugin wraps are the load and unload events. Therefore, $().unload() can be either the unbinding method for the load event, or the binding method for the unload event. In fact, it is both of these simultaneously, resolving to one or the other when the wave function collapses. This is the first practical implementation of quantum computing in JavaScript. Proof that jQuery is ahead of its time! -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/