Welcome to Ariel Flesler
Everyone - I'd like to take this opportunity to welcome Ariel Flesler to the jQuery Dev Team. He's put a ton of work in on the upcoming jQuery 1.2.4 release, in addition to releasing numerous plugins. His contributions have been quite valuable and it's an honor to have him aboard. His site: http://flesler.blogspot.com/ His Twitter Account: http://twitter.com/flesler --John (Note: Thanks to Ariel's help, the 1.2.4 release should be arriving within the next day or two - pending any final patches.)
Dimensions pulled into Core including Safari bug!
Hi guys, I've posted this before, but now dimensions is actually pulled into the core it's even more important the bug is solved. As Safari is a supported browser, I think this should really be addressed: The bug occurs with the following code: <style> #contentLayer { position: absolute; margin: auto; overflow: hidden; left: 0; top: 114px; bottom: 41px; width: 100%; text-align: center; } .content{ width: 888px; margin: auto; text-align: left; } Safari would be the only browser giving me a completely
Use jquery before the DOM is ready
Hi all, yesterday I was chatting on the IRC jquery channel and someone asked how to use jQuery before the DOM was ready. Sometime the DOM ready event is a bit late, causing flicker on the page or unresponsive (not still binded) links. So I wrote a proof of concept to implement: - $.elementAvailable(selector,callback,once) - $.elementComplete(selector,callback,once) inspiring my code to YUI, setting a polling interval to search in the not yet complete DOM. $.elementAvailable calls the callback as
Questions about the "extendind jQuery" concept.
Hello, I'm starting developping my own jQuery plugins, and I'm loving the jQUery way to do things, but now I need help to understand certain concepts and standards the jQUery uadopts. I'm trying to make a plugin to extend the jQuery object, to another object... The main idea is to make something like: $('#element').MyPluginName(); And $('#element') becomes ready to respond others methods, like: $('#element').CustomMethod1(); $('#element').CustomMethod2(); But if a try to do $('#element2').CustomMethod1();
Chili 2.0
Hi devs. I've released version 2.0 of Chili. It's an update I started to incubate since version 1.4, but I had no idea that it would take so long!! Now that Chili 2.0 is out I'd say it's better than ever, and almost magically it is much more than Chili 1.9 + 0.1, I mean, the change of the major version number corresponds to a major change of the project. The biggest difference is that old recipes are no longer supported, in favor of a new and more powerful recipe format, which is supposed to allow
Will jquery consider appending selector dialects?
For example, append a jquery-xquery.js plugin to support syntax like: (function ($) { $("//ul/li[class='special']", document.body).each(function () { .... }); }) (jQuery.xQuery); jQuery.xQuery should be just like jQuery except the syntax of selector.... and more dialects could be support as jQuery.css3....
Problem with css("margin")
Hi, it seems that <span style="font-weight: bold;">$(elem).css("margin")</span> works correctly if margin is defined directly via the "style" attribute in the concerned markup. But if margin is defined via a stylesheet, it returns undefined on Firefox (and even js error on IE6, not tested on IE7). Here is an example : <a href="http://zavatta35.free.fr/testMargin.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://zavatta35.free.fr/testMargin.html</a><font size="1"></font>
UI Tabs and Flot issue
Hello, I am developing an application using UI Tabs and Flot. I am seeing hitting an issue that I am not able to resolve. The pages in question are currently static HTML mockups. The main page uses UI tabs to load content pages via ajax. Within the content pages, there is a DIV with a "chart" id and a DIV with a "legend" id. The "chart" and "legend" should be populated with a Flot chart/legend when the tab is loaded. Adding to the complexity of the page, the tabs and a footer are fixed while the
AJAX Ticket
I'm not an url expert, but I think this could be the fix. http://dev.jquery.com/ticket/2816 Thanks -- Ariel Flesler http://flesler.blogspot.com
Ticket #2850 - animate broken in some cases in IE.
Hi, I've run into some problem with ``jQuery.animate()`` and I am actually pretty sure that this is a bug which is occurring in IE. I was able to test it in IE 7, but it might be broken in other browsers as well. At least in Firefox 2.0 it does work. The ticket: <http://dev.jquery.com/ticket/2850> A demo page: <http://media.pointtec.de/animate.html> (then you replace 50% by 50px it starts working properly in IE) It would be cool to get a fix for this in jQuery 1.2.4 as animating stuff from percent
Expression/Selector question...
I sent this message to the Dev list the other day, but perhaps (based on the lack of feedback) that was the wrong list to send the inquiry too. -------------------------------------------------------------------------- One thing that I've noticed is that the "expr" attribute is pretty inconsistent across methods (such as filter, find, parents, parent, etc.) The documentation is very vague about what an "expression" is, other than it just being a selector. However I would assume a valid expression
Extensible filters
One thing I really love about jQuery is the ability to extend it easily. Like adding a new jQuery.expr which I have used to match special attribute to interface usage on my site. After creating a new filter for the subselector I realized that it could not be used with out patching jQuery, making it useless/difficult for less advanced users or people with limited access to servers. I whipped up this patch to add a filters array (jQuery.filters) containing function to check the collection againts filtering
A little problem with multi tab
Hello, I've done a menu with tab wich swich with jQuery. With 1 menu, it's ok, but there're 2 menus: there is a little probleme. You can see it here: http://www.tzameti.powa.fr/ Here is the source: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Test menu</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <script src="scripts/jquery-1.2.3.min.js"></script>
Subselector
I was messing around yesterday and came up with a sub selector addon. It allow to select anything within a node from a regular selector string. It is useful to get things returned in specific orders. The selector works like this. $('li(div.beginning, div.ending)'); This will return only the div.beginning and div.ending nodes under a li. The difference between this and $('li div.beginning, li div.ending') is that they will be return in their 'natural order'. Say we have this. <ul> <li> <div class="beginning"></div>
Feedback for jQuery.fn.index (#2771)
It was proposed, that jQuery.fn.index would accept a jQuery object. We're discussing whether the first element should be taken into account, or all the items in the collection. http://dev.jquery.com/ticket/2771 Grazie -- Ariel Flesler http://flesler.blogspot.com
There are some problems in $(xxx).load() function
You can see the example below, do you know what will be alerted? //////////////////////////////////////// <html> <head> <script type="text/javascript" src="http://code.jquery.com/ nightlies/jquery-nightly.js"></script> <script type="text/javascript"> function callback(args) { alert(typeof args) } function f1() { $('#parent').load('jq.html', null, callback) } </script> </head> <body> <a href="#" onclick="f1()">Go</a> <div id="parent"> </div> </body> </html> ////////////////////////////////////////////////////////////////////////
replaceWith() bugs
I think the replaceWith method has some bugs. I have an application that requires me to replace a DOM node by ID. I have jQuery events tied to elements inside the node that I want to keep after replacing the content. The current behavior of replaceWith() is different in IE, Mozilla, Safari, most exhibiting weirdness. Mozilla acts as I expect - replaces the node and keeps the events, no problem. In IE, the node will replace but I need to re-bind my events to the new content. Safari replaces the node,
OT: licenses in minified JS files
<off-topic> I'd like to add a way for Minify [1] users to retain license notices when serving a combined & minified Javascript file, which could contain multiple libraries, 3rd-party plugins, and user code. Would it be (legally) acceptable to just give links to uncompressed (license intact) versions at the top? Something like: /* This file contains compressed source code from the following files: http://example.com/js/jquery-1.2.3.js http://example.com/js/jquery.plugin.js http://example.com/js/site.js
Failing Test
Hey The 14th test of the ajax module ( test/?ajax ) is failing. The title is "global ajaxSettings" and the specific test "Check extending null". One thing that I wanna add, is that the tests of the ajax module are horribly slow, one reason could be that the 6 AJAX events are triggered GLOBALLY all along, as they were not cleaned up. This is extremmely heavy. I started patching this by reverted $.event.global to its original state, but then I found this failing test so I reverted, but it was still
Feedback for $.ajax: support for dynamic data arguments (#2806)
Hi devs, I'd like to ask you for feedback on this ticket: http://dev.jquery.com/ticket/2806 I've already added some comments to clarify, but would like to hear more opinions about the usefulness of this within core. Depending on your feedback it may be scheduled for 1.2.4 (test and implementation are rather trivial) or deferred to 1.3. Thanks Jörn
Faster map
Hi, I made a ticket with a modification for $.map, that greatly increases its perfomance. Ticket: http://dev.jquery.com/ticket/2803 diff: http://dev.jquery.com/attachment/ticket/2803/faster-map.diff benchmark: http://snurl.com/27b1r The benchmark maps an array of 50 items, many times and the results show that these changes make map around 3 times faster. I ran the test suite on all 4 browsers.. but as $.map is a basic function, I prefer to ask first. If you think it's safe, I can commit right away...
Dimensions vs Core
It looks like the dimensions plugin is now whittled down to the following methods: scrollTop/Left, position and offsetParent. Lets just create a dimensions.js file and throw the dimension related methods in there (width/height, inner/outterWidth/Height) and put the rest of the methods in the offset.js file. Thoughts? -- Brandon Aaron
Core Effects Bugs: IE6 Bold and IE7 ClearType
I'm new to jQuery, coming from YUI, and when I find myself using a lot of effects (animations) like fadeOut(), fadeIn(), hide(), and show(). The nature of IE6 and IE7, from Microsoft, when working with jQuery on effects was found to be very bothersome. I went on a rampage through the internet to find solutions to jQuery with IE6: text or font bolding and IE7: losing ClearType. When I found the solutions, I find implementing the fixes to be very tedious indeed, I had to add the fix to every simple
Unclosed Tickets
Hi, I want to point out some tickets that I replied to with a solution or considered them invalid. This topic could be used by others too. Seem invalid: http://dev.jquery.com/ticket/2164 http://dev.jquery.com/ticket/2268 http://dev.jquery.com/ticket/1524 Proposed a modification http://dev.jquery.com/ticket/2378 http://dev.jquery.com/ticket/2509 http://dev.jquery.com/ticket/2249 http://dev.jquery.com/ticket/944 http://dev.jquery.com/ticket/2522 http://dev.jquery.com/ticket/2543 http://dev.jquery.com/ticket/2537
get && post ajax add option callback function
code: eval('$.extend({ get: '+ $.get.toString().split(", ").join(",").split("url,data,callback,type,ifModified").join("url,data,callback,type,ifModified,callback_add").split(": ").join(":").split("success:callback,").join("success:callback,success_add:callback_add,") +' });'); eval('$.extend({ post: '+ $.post.toString().split(", ").join(",").split("url,data,callback,type").join("url, data, callback, type, callback_add").split(": ").join(":").split("success:callback,").join("success:callback, success_add:callback_add,")
event called two times
Hi, I've just figured out that trigger maps "on"+funcName. I'm using bind/ trigger (jQuery.event) on objects to do some call delegation. i.e.: $({msg:"Hello World!"}).bind("hello", function() { alert(this.msg); }).trigger("hello"); but, it can become magical $({onfoo:function(evt, msg){alert(msg);}}).trigger("foo", ["Hello World!"]); onfoo is called automatically. It seems to be a feature but I my case it was calling the "onfoo" two times because I binded it. Is that possible to not trigger the "on"+...
jQuery, ajax, IE, absolute url, recall after a first replace (second time)
Hi I used the Jquery ajax content plugin ( http://www.andreacfm.com/index.cfm/jquery-plugins ), wich itself use the ajax behaviour of jquery. I use ajax to replace a whole div. As there are some ajax links inside the div, I re-ajaxify them after the div is replaced, using ajaxContent. This works fine with Firefox, Safari, Konqueror, but in IE 6-7 I got a strange behaviour: the first "ajaxification" of the link works well, but the re-ajaxification does not work well. Investigating, I realized that
s.success is not a function
As you can see from the s.success I'm using the compressed jQuery 1.1.4 script. I've got a function that submits a form for me through ajax and it's sending me this message after I exit the function. I'm not going to go into much detail, I'm just hoping someone may have seen this before and may be able to tell me what causes it. Thanks
animated show/hide and UI effects
Hi devs, I think it was Michael Geary who mentioned how jQuery's animated show/hide methods are rather creepy. Simultaneous animation of both height and width leads to the text constantly reflowing - I agree with Mike that thats hardly a desirable effect. As we are going for jQuery 1.3 I'd like to get some discussion going on how this could be improved. The obvious step would be remove the width-animation, and just animate the height. But that would result in animated show/hide being equivalent to
IE document.ready and VML namspaces
Hi I am trying to automatically add in namespaces into IE for my cornerz plugin (http://parkerfox.parkerfox.railsplayground.net/cornerz/) However I am finding that it fails on the first line of the following code in IE (6) if($.browser.msie && document.namespaces["v"] == null) { document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); var ss = document.createStyleSheet(); ss.cssText = "v\\:*{behavior:url(#default#VML);}" } I am using jQuery 1.2.3. Any ideas ? Jonah
ajax from local file.
I am using $ajax to load a local file (its an offline app). The problem is that since the mime type is nheot seen i dont get the parsed dom document (but i get the xml as a string). I have currently modified the api to try to parse and load the document if the datatype is set to xml. is there any other way out?
Meet BindO - Bind Javascript Objects to jQuery events
Hello everyone, I've finally got sometime to publish my first jQuery plugin. It's called BindO - A simple plugin that allows you to bind javascript objects to jQuery events. Check it out here: http://xwisdomhtml.com/bindo.html
Smarter GET variables for the test runner
In reply to myself at this post: http://groups.google.com/group/jquery-dev/msg/92c927d1f89b7ddc Made a ticket: http://dev.jquery.com/ticket/2738 It includes the modifications to the test runner to make that possible, it doesn't break any test or former behavior, but adds an interesting feature. I fully commented on the ticket so no need to repeat myself... Please review it Thanks! -- Ariel Flesler http://flesler.blogspot.com
upgrade the effects system in jquery?
are there any plans to look into upgrading the effect system in jquery? It just seems like it is the main weak point i can see compared to other frameworks. for instance on the mootools home page the side menu effect last time i tied was a lot hard in jquery because it seems a bit more to do that same thing since with jquery, last time i tied I need to first get the current setting then add the animation and also add the stop and then the animation to the original setting, i believe last time i tried
Testrunner enhancement
For anyone using the jQuery testsuite, this could be handy: http://dev.jquery.com/changeset/5283 With that you can use regular expressions to select tests or module, eg. to run the core and selector module: /test/?^core|^selector Hope this helps! Jörn
jQuery.event.handle dilemma
Hi, I proposed some small changes to the event module here: http://dev.jquery.com/ticket/2655 They were reviewed by Brandon (thanks!) and most were applied. There was one though, that he was not sure it'd break something. It's the val/ret "thing" inside jQuery.event.handle, which seemed useless to me. Here you can see the complete diff: http://dev.jquery.com/attachment/ticket/2655/handle-fix.3.diff Here's the code Brandon committed: http://dev.jquery.com/changeset/5276 He then reverted this thing
SVN down?
I'm getting a 302 response from <a href="https://jqueryjs.googlecode.com/svn/trunk/">https://jqueryjs.googlecode.com/svn/trunk/</a> It blows when hosted services drop out ... :/ -- Brandon Aaron
DOM Expandos kill IE8 beta
repost from jquery-en: Hello all, after a tedious debugging-session with IE8 beta crashing with my gridtable impl, i narrowed it down to the following line: var rowEl = document.createElement('tr'); rowEl.gt_data = data; // <- CRASH return rowEl; setting objects as DOM expandos literally kills IE8 beta :( these tries do not work either: var row = $('<tr />').appendTo( this.table.find('> tbody') ); row.data('gt_data', {bar: 'FOO'}); // <- CRASH row.data('gt_data', {}); // <- CRASH row.data('gt_data',
Getting matched attributes
Hi All, I have a html source in which i would like to find all the 'width' attributes and replace their values . This html source can vary , so i cant look for width attribute on a particular tag . How can i achieve this. e.g : examples of sources html source 1 : <object width="510" height="295"><param name="movie" value="http:// www.hulu.com/embed/JK9tdpQPim1o-aujnb9cOA"></param><embed src="http:// www.hulu.com/embed/JK9tdpQPim1o-aujnb9cOA" type="application/x- shockwave-flash" width="510" height="295"></embed></object>
Mouseover/mouseout events in Firefox and textareas
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div>This isn't so much a jQuery issue as it seems to be a Firefox issue, but this is more or less to see if any of you have run across it, if it's something jQuery should compensate for (like it does for safari and IE quirks) or if anyone knows what's going on.</div><div> </div><div>Essentially, when you have a positioned div sitting over a textarea, if the mouse is inside of a textarea
Next Page