[jQuery] What can we use in place of $.browser?
Having just upgraded to 1.3.2, I've realised that the $.browser utility has been deprecated. Does this mean it is no longer possible to identify which browser is being used?
[jQuery] How to animate opacity on Internet Explorer
Using animate({opacity:}) jQuery provides an excellent way of fading elements in and out of view. However, opacity does not work on IE (which demands the use of silly filters). With that in mind, how do we animate the opacity of an element in IE? Thanks
[jQuery] Re: How can executable jquery/jscript be returned in an Ajax response
Ricardo, What you are suggesting is what we're already doing. But I would like to feed that command through the response. Is that possible? F. On Dec 19, 8:58 pm, Ricardo Tomasi wrote: > $('contents').appendTo('table.ofmine').click(function > (){ > ... > > }) > > Or use the LiveQuery plugin, then you can register handlers only once > for all similar elements (http://brandonaaron.net/jquery/plugins/ > livequery) > > - ricardo > > On Dec 19, 3:36 am, fambi wrote: > > > Let's say filling a form should add a row to a table. > > > Responding with the html row is not a problem, but how do you include > > the event to add the row and any listeners which might follow after > > it? > > > Thanks
[jQuery] How can executable jquery/jscript be returned in an Ajax response
Let's say filling a form should add a row to a table. Responding with the html row is not a problem, but how do you include the event to add the row and any listeners which might follow after it? Thanks
[jQuery] Event listener optimisation advice
Hi All, Is there some kind of performance cost in setting up lots of event listeners? For example, rather than setting up lots of click event listeners, would it be better to set up a single one which then uses if/else to decide how to process it? Obviously, it might not always be practical, but I'm just after the theory side of things right now. Thanks. F.
[jQuery] Can you recommend a drag & drop tree-view script?
Hi all, I need a drag & drop treeview script which uses ajax to save its structure to a mysql database. Does it exist and can anyone recommend it? Thanks
[jQuery] Re: "Uncompressed", "Minified and Gzipped" and "Packed"
Jeffrey said, "The server-side gzip code I used looks for IE6 SP1 to determine whether or not it should gzip it. " Can you please share the logic (if not the code)? Thanks On Jul 20, 12:02 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Actually, IE 6.0 SP1 has some issues with GZipping. The problem is that it > occasionally doesn't read the entire stream and is unable to properly unpack > the file. > > It was fixed in IE 6.0 SP2. > > The server-side gzip code I used looks for IE6 SP1 to determine whether or > not it should gzip it. > > JK > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Richard D. Worth > Sent: Saturday, July 19, 2008 3:17 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: "Uncompressed", "Minified and Gzipped" and "Packed" > > On Sat, Jul 19, 2008 at 12:55 AM, fambi <[EMAIL PROTECTED]> wrote: > > 1. How is browser support for un-gzipping javascript (and css for that > matter)? I heard, once upon a time, that there were issues... is that > once upon a time? > > Modern browsers support gzip across the board. Even not-at-all modern > browsers support it. IE4+, FF, Safari, Opera 5.12+. > Seehttp://www.http-compression.com/for more info. One bonus here is that the > browser and server communicate about what they support, so there's never a > concern that a server will send a g'zipped file and then the browser (that > doesn't understand gzip) will choke on it. If someone out there is still > using IE3, well... getting a non-gzipped version of jQuery will be the least > of their concerns. > > - Richard > > 2. Also, Richard, what do you mean by "If you don't want to worry > about ***correctly** gzipping your source files"? > > Thanks > > On Jul 17, 5:05 pm, Richard W <[EMAIL PROTECTED]> wrote:> It is suggested you > used the "minified and gzipp'd" version, as the > > packed version will require additional processing to unpack or > > decompress it, as mentioned on the jQuery > > site:http://docs.jquery.com/Downloading_jQuery > > > > > If you don't want to worry about correctly gzipping your source files, > > or if yo ur server does not have the ability, you can link directly to > > google's minifed+gzipped source files. > > EG:http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js@ > > 16.7K is not bad :) > > > On Jul 16, 6:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > > > > Thanks for clarifying Mika...please note Mika's comments. > > > > -Original Message- > > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > > > Behalf Of Mika Tuupola > > > Sent: Wednesday, July 16, 2008 11:59 AM > > > To: jquery-en@googlegroups.com > > > Subject: [jQuery] Re: "Uncompressed", "Minified and Gzipped" and > "Packed" > > > > On Jul 16, 2008, at 7:48 PM, Andy Matthews wrote: > > > > > Packed takes the source code and runs it through an algorithmn which > > > > compresses variable names, methods, code, etc into one big line of > > > > javascript. You can find more information about it, and pack your own > > > > code, > > > > here: > > > >http://dean.edwards.name/packer/ > > > > > Minified uses server side compression to further reduce the file size. > > > > Drawback of this method is that your server needs to be equipped to > > > > offer this version, and the file needs to be de-compressed on the > > > > client side. > > > > Minifying does not use server side compression. Minifying means removing > all > > > unnecessary characters from source code, without changing its > functionality. > > > > Minified JavaScript files are usually further packed by gzipping them. > > > This is done on the fly by server. Apache comes with mod_deflate module > by > > > default. This handles gzipping. > > > > Packed files have to be uncompressed on client side too. While gzipped > files > > > are uncompressed by browser natively, packed files are "uncompressed" > > > calling JavaScript eval() everytime page loads. > > > > -- > > > Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: "Uncompressed", "Minified and Gzipped" and "Packed"
1. How is browser support for un-gzipping javascript (and css for that matter)? I heard, once upon a time, that there were issues... is that once upon a time? 2. Also, Richard, what do you mean by "If you don't want to worry about ***correctly** gzipping your source files"? Thanks On Jul 17, 5:05 pm, Richard W <[EMAIL PROTECTED]> wrote: > It is suggested you used the "minified and gzipp'd" version, as the > packed version will require additional processing to unpack or > decompress it, as mentioned on the jQuery > site:http://docs.jquery.com/Downloading_jQuery > > If you don't want to worry about correctly gzipping your source files, > or if yo ur server does not have the ability, you can link directly to > google's minifed+gzipped source files. > EG:http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js@ > 16.7K is not bad :) > > On Jul 16, 6:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > > > Thanks for clarifying Mika...please note Mika's comments. > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > > Behalf Of Mika Tuupola > > Sent: Wednesday, July 16, 2008 11:59 AM > > To: jquery-en@googlegroups.com > > Subject: [jQuery] Re: "Uncompressed", "Minified and Gzipped" and "Packed" > > > On Jul 16, 2008, at 7:48 PM, Andy Matthews wrote: > > > > Packed takes the source code and runs it through an algorithmn which > > > compresses variable names, methods, code, etc into one big line of > > > javascript. You can find more information about it, and pack your own > > > code, > > > here: > > >http://dean.edwards.name/packer/ > > > > Minified uses server side compression to further reduce the file size. > > > Drawback of this method is that your server needs to be equipped to > > > offer this version, and the file needs to be de-compressed on the > > > client side. > > > Minifying does not use server side compression. Minifying means removing all > > unnecessary characters from source code, without changing its functionality. > > > Minified JavaScript files are usually further packed by gzipping them. > > This is done on the fly by server. Apache comes with mod_deflate module by > > default. This handles gzipping. > > > Packed files have to be uncompressed on client side too. While gzipped files > > are uncompressed by browser natively, packed files are "uncompressed" > > calling JavaScript eval() everytime page loads. > > > -- > > Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: Quickie: Knowing if a scroll bar is there or not.
Thanks again Karl. On Jul 14, 11:12 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hmmm. Off the top of my head ... if the div has id="foo", something > like this: > > if ($('#foo')[0].scrollWidth < $('#foo').width()) { >// the scroll bar is showing. > > } > > --Karl > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jul 14, 2008, at 12:03 PM, fambi wrote: > > > > > Hi all. Assuming a div has overflow: auto, how can I know whether the > > scroll bar is showing or not? > > Thanks
[jQuery] Quickie: Knowing if a scroll bar is there or not.
Hi all. Assuming a div has overflow: auto, how can I know whether the scroll bar is showing or not? Thanks
[jQuery] Re: How to know when you can't scroll any further
Thanks guys! Special thanks Karl, it works pefectly! On Jul 10, 7:36 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > I don't think that is going to work as is, since scrollTop and > scrollHeight are DOM properties. > > You could try it this way instead: > > $('element').scroll(function() { > if (this.scrollTop + $(this).height() == this.scrollHeight) { > // console.log('finished'); > } > > }); > > --Karl > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jul 10, 2008, at 10:43 AM, Ryura wrote: > > > > > $("element").scroll(function() { > >if($("element").scrollTop == $("element").scrollHeight;) { > >//do something > >} > > }); > > > Untested, but should work. > > On Jul 10, 9:18 am, fambi <[EMAIL PROTECTED]> wrote: > >> Thanking you guys in advance for any help/advice... > > >> How can I know that I've reached the bottom of a scrollable area in a > >> div with an overflow? > > >> Thanks
[jQuery] How to know when you can't scroll any further
Thanking you guys in advance for any help/advice... How can I know that I've reached the bottom of a scrollable area in a div with an overflow? Thanks
[jQuery] Replicating frame interface with jquery?
We're looking to replicate the traditional email client interface without using frames, much the same way that Yahoo Mail beta has done. Has anyone written a plugin or tutorial for this? If not, can anyone give me a rough idea of how the resizing part of it all works? Thanks
[jQuery] Animating table rows produce *very* strange results. Any work around?
Hi all, I'm having serious problems trying to animate a table row and have tried loads of work arounds In short, I'm trying to do a self healing transation following the deletion of table content using an Ajax call. So, after the user presses delete, the row shrinks in height and is then removed from the dom. Unfortunately, though, trying to do that produces some incredibily strange results. I've put together a bare bones example on http://favouritethings.com/Scrap/RowTest.html Anyone have any idea why this is happening and what we can do to achieve the desired objective? THanks
[jQuery] Re: Finding all inputs with name X?
Sorry, please ignore this. I was looking in the wrong places... i found the answer. On Jun 20, 8:56 pm, fambi <[EMAIL PROTECTED]> wrote: > How can we find all inputs with name X? > > Thanks
[jQuery] Finding all inputs with name X?
How can we find all inputs with name X? Thanks
[jQuery] Re: Does jquery's ajax method's identify requests as being ajaxed
Excellent. Thanks. On Jun 18, 9:18 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > jQuery (and many other libraries) adds a custom header to the HTTP request: > X-Requested-With: XMLHttpRequest > > Your server-side scripts can look for this header to determine if the > request was sent via Ajax or not. > > On Wed, Jun 18, 2008 at 9:21 AM, fambi <[EMAIL PROTECTED]> wrote: > > > What I mean to say is, do the native jquery ajax methods append any > > parameters that can inform our server side scripts that the request > > was submitted using ajax? (e.g. ajax=1) > > > If not, what could be done to implement this so that we don't need to > > repeat ourselves on each and every form? > > > Thanks > > -- > Aaron Heimlich > Web Developer > [EMAIL PROTECTED]
[jQuery] Does jquery's ajax method's identify requests as being ajaxed
What I mean to say is, do the native jquery ajax methods append any parameters that can inform our server side scripts that the request was submitted using ajax? (e.g. ajax=1) If not, what could be done to implement this so that we don't need to repeat ourselves on each and every form? Thanks
[jQuery] Difficult to describe issue relating to selects!!!
We nest our form inputs into unordered lists and use jquery to highlight the parent list item of the active input: $(function() { $("ul.form").find("input,select,textarea,option,.file") .focus ( function() { $(this).parents('li').addClass('ShowGuidelines'); } ) .blur ( function() { $(this).parents('li').removeClass('ShowGuidelines'); } ); }); One interesting problem which we're facing is that, when selecting a select box, rather than bring down the list of options, it simply focuses on the select box and we then need to click again to bring the list down (i.e. 2 clicks needed instead of one!) If the addClass is replace with css(etc.), it works fine. Anyone have any idea what's going on??? Thanks
[jQuery] Re: Delaying remaining actions until animation is complete
Thanks. I wish the documentation was clearer! On Jun 8, 8:18 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > Use the completion callback: > > $this.animate({opacity: "0.5"}, { complete: function() { > Action 1 > Action 2 > Action 3 > $this.animate({opacity: "1.5"}); > > }}); > > -Mike > > > We have a string of actions which run on a click event, but > > before they run, we want to animate down the opacity of > > certain elements to show the user that something is happening > > and then animated the opacity back to normal to show that the > > process is finished: > > > $this.animate({opacity: "0.5"}); > > Action 1 > > Action 2 > > Action 3 > > $this.animate({opacity: "1.5"}); > > > How can we set things so that the actions only begin when the > > first animation has finished and how can set the last > > animation to only run when the previous actions are finished.? > > > Thanks
[jQuery] Delaying remaining actions until animation is complete
We have a string of actions which run on a click event, but before they run, we want to animate down the opacity of certain elements to show the user that something is happening and then animated the opacity back to normal to show that the process is finished: $this.animate({opacity: "0.5"}); Action 1 Action 2 Action 3 $this.animate({opacity: "1.5"}); How can we set things so that the actions only begin when the first animation has finished and how can set the last animation to only run when the previous actions are finished.? Thanks
[jQuery] Re: Animate() background colours
Thanks for that. I've got it working now. One question, though, and this applies to all animations... how can the animation be made smoother? I've seen pretty slick animations in other libraries and wondering how jquery can be tweaked to make the animations smoother. Any ideas? On May 29, 12:00 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > sure, use the color plugin:http://plugins.jquery.com/project/color > > regards, > > Alexandre Plennevaux > > *LAb[au]* *lab*oratory for *a*rchitecture and *u*rbanismhttp://www.lab-au.com > Ph: +32 2 219 65 55 > 104 rue de Laeken > 1000 Brussels > Belgium > > On Wed, May 28, 2008 at 6:45 PM, fambi <[EMAIL PROTECTED]> wrote: > > > It looks like animate() doesn't take too well to background colours. > > > Does anyone know a way of animating an objects colour from one to > > another? > > -- > Alexandre Plennevaux > LAb[au] > > http://www.lab-au.com
[jQuery] Re: Animate() background colours
Thanks for that. I've got it working now. One question, though, and this applies to all animations... how can the animation be made smoother? I've seen pretty slick animations in other libraries and wondering how jquery can be tweaked to make the animations smoother. Any ideas? Alexandre Plennevaux wrote: > sure, use the color plugin: http://plugins.jquery.com/project/color > > regards, > > Alexandre Plennevaux > > *LAb[au]* *lab*oratory for *a*rchitecture and *u*rbanism > http://www.lab-au.com > Ph: +32 2 219 65 55 > 104 rue de Laeken > 1000 Brussels > Belgium > > > On Wed, May 28, 2008 at 6:45 PM, fambi <[EMAIL PROTECTED]> wrote: > > > > > It looks like animate() doesn't take too well to background colours. > > > > Does anyone know a way of animating an objects colour from one to > > another? > > > > > > -- > Alexandre Plennevaux > LAb[au] > > http://www.lab-au.com
[jQuery] Animate() background colours
It looks like animate() doesn't take too well to background colours. Does anyone know a way of animating an objects colour from one to another?
[jQuery] Achieving smoother animate()
We've recently implement an option in which our site's users can hide and show the left hand menu to make more space for the main content when necessary (e.g. huge tables). We've done this through the following code: $("#ScreenChange").toggle( function() { $("#MenuOuter").animate({width: 0}, 750); $("#MainOuter").animate({width: "100%"}, 750); }, function () { $("#MainOuter").animate({width: "75.6%"}, 750); $("#MenuOuter").animate({width: "22.4%"}, 750); } ); The only issue is that, when compared to certain other javascript libraries, the animation seems to be very joggy. We are very loyal to jquery (as you'll see when our new site goes live) and we're very hopeful that there is some way of making the animation smoother. Is there? Thanks