Re: [jquery-dev] Re: WebSockets is very faster than xhr. I hope to support of jQuery for WebSockets.

2010-01-19 Thread Daniel Friesen
HTTP/1.1 ...', only once. WS is so friendly for network and servers. Moreover, faster on HTTP. With Best regards, for into the good future On 1月19日, 午前2:27, Daniel Friesen nadir.seen.f...@gmail.com wrote: I don't like the idea. At this point there is no reason to believe that any browser

Re: [jquery-dev] WebSockets is very faster than xhr. I hope to support of jQuery for WebSockets.

2010-01-18 Thread Daniel Friesen
between the browser and the server that doesn't close after every message. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] tato wrote: WebSockets is very faster than xhr. I think jQuery had better support WebSockets in Core. The following Samples of text mining are speed

Re: [jquery-dev] aborting Ajax calls the success callback

2010-01-16 Thread Daniel Friesen
would be the more intuitive way of handling this. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: It's not really clear what it should call - maybe it should only call the complete request and neither the error or success. When I looked into it recently

[jquery-dev] Activate event

2010-01-09 Thread Daniel Friesen
developers just stick with onclick events and don't bother to replicate the actual range of interactivity with links which is click, enter, and accesskey. -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] -- You received this message because you are subscribed to the Google

Re: [jquery-dev] Re: Activate event

2010-01-09 Thread Daniel Friesen
(); and $a.activate(function(e) { foo(); }); will basically behave the same. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email to jquery

Re: [jquery-dev] Re: Activate event

2010-01-09 Thread Daniel Friesen
Ugh... I was under the impression that click events only fire when you click on something. Aye, activate is supposed to fire in all those cases as well. Click's current behavior now seams to really be activate in a confusingly named guise. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http

Re: [jquery-dev] Any thought on Event filter?

2010-01-01 Thread Daniel Friesen
I believe something like keypress[shift+e] was proposed in one discussion, : conflicts with namespacing. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Jeremy Chone wrote: Hi, Any thought has been given on adding filter on event. For example a) Called when enter

Re: [jquery-dev] Re: Change this when binding element

2009-12-28 Thread Daniel Friesen
in just one function though. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Rick Waldron wrote: John, While I'm glad to see a scope arg available, i still think this is negligent to the future of jQuery and ES standards. I really think a fn.bind() implementation

Re: [jquery-dev] Re: Change this when binding element

2009-12-28 Thread Daniel Friesen
On Mon, Dec 28, 2009 at 7:43 PM, Daniel Friesen nadir.seen.f...@gmail.com mailto:nadir.seen.f...@gmail.com wrote: I made a post about how confusing people may find the name bind some time ago. Suggested renaming bind to something like event, and keeping bind as an alias of course

Re: [jquery-dev] Change this when binding element

2009-12-23 Thread Daniel Friesen
() { that.myScroll(); }); or if you add a prototype to match ES5. this.a = '1'; $(document).bind('scroll', this.myScroll.bind(this)); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Amina wrote: Cross-posted Jquery-group: I am suggestion for new small feaute in jQuery. add

Re: [jquery-dev] A closet IE abuser

2009-12-15 Thread Daniel Friesen
with users that only use standards browsers, but have mothers and sisters that go and click the IE icon when they want to use the Internet. Hmm... IE reminds me of global warming. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] DBJDBJ wrote: http://www.infoworld.com/d/windows

Re: [jquery-dev] Four feature proposals

2009-12-09 Thread Daniel Friesen
. Not really a fan of third. Fourth, I don't think jQuery is the place for that, write a plugin. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Tobias Hoffmann wrote: Attached are four extensions to jquery. One is a $.text('Test text') utility function, that simplifies cases

Re: [jquery-dev] Re: What's wrong in my code?

2009-12-08 Thread Daniel Friesen
More like Google Groups strikes again. John already noted how bad Google Groups is in dealing with address spoofing. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] DBJDBJ wrote: This made me to immediately change my google password ... And to do a deep-scan on my

Re: [jquery-dev] Re: Ant build

2009-11-26 Thread Daniel Friesen
!? Now that I think about it. Did I set my auto-props right when I setup my new laptop ages ago? I retired from major MediaWiki development before then so I don't remember if I set it up right when I decided to checkout the repo to do some small commits. ~Daniel Friesen (Dantman, Nadir-Seen

Re: [jquery-dev] Re: jQuery forward compatibility issues

2009-11-19 Thread Daniel Friesen
shadow to my list. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send

[jquery-dev] Extending selectors to support custom objects

2009-11-13 Thread Daniel Friesen
is used in init, and wherever else necessary to allow for this feature to work. -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email

Re: [jquery-dev] suggestion: $.support.expression $.support.borderRadius...

2009-11-13 Thread Daniel Friesen
at that point. The thing about border radius to be careful of though is -moz's alternate method of specifying corners. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Enrique Meléndez Estrada wrote: Hi, Sorry if I'm completely wrong but I'd suggest to add to the core

[jquery-dev] Re: Beans = Rubygems for Javascript

2009-09-16 Thread Daniel Friesen
to the browser. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] weepy wrote: Hi, I've been working an attempt to bring a packaging system to javascript, similar to Rubygems et al Source is here = http://github.com/weepy/bean-server It's very straight foward. You can

[jquery-dev] Re: $.ajax's error callback: Confusion with status codes and dataType

2009-09-07 Thread Daniel Friesen
(like have a second status code share the handler of another) with easev(like adding a new case line into a switch). ~Daniel Friesen (DanTMan, Nadir Seen Fire) [http://daniel.friesen.name] On 7-Sep-09, at 3:24 PM, Nathan Bubna nbu...@gmail.com wrote: On Mon, Sep 7, 2009 at 12:08 PM, John

[jquery-dev] Re: Add Cookie support

2009-08-20 Thread Daniel Friesen
And I've worked on projects that don't need ajax or fx. I think this falls under the category of wanting a buildable jQuery where you can disable things you don't need, and enable extra features that you might want. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name

[jquery-dev] Re: JSON reviver option

2009-08-17 Thread Daniel Friesen
IIRC json2 supports it... We could get around to fixing that old piece of missing functionality in jQuery and kill two birds with one stone. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: I'd be wary of adding that - especially since it wouldn't work

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
Samer Ziadeh wrote: On Fri, Aug 14, 2009 at 00:00, Daniel Friesen nadir.seen.f...@gmail.com mailto:nadir.seen.f...@gmail.com wrote: function Person() { return Object.create(Person.prototype, { first: { value: '' } last: { value

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
undefined.first = ''; Thus rather than setting a global property which depending on your code may not throw for awhile and leak into the global object, it'll throw right away because it can't access/set properties on undefined. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
not-usable stuff that only few developers will get instantly right. It is just my opinion. Regards On Fri, Aug 14, 2009 at 11:19 AM, Daniel Friesen nadir.seen.f...@gmail.com mailto:nadir.seen.f...@gmail.com wrote: new Person() ES3 style: create object, set prototype, run user code

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
Ya sorry. Shame it's going away, I wanted to use it for my module inclusion pattern server-side. with( banana('io') ) with( banana('markup.visual.markdown') ) { var html = MarkDown.parse(File('./foo.txt').content) } ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
unless you use eval. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Andrea Giammarchi wrote: Daniel, I do not think the global object as default this is an error at all, this is my point. What does not make sense at all is to use a this referred to an undefined value

[jquery-dev] Re: about iterators, closures and scope

2009-08-14 Thread Daniel Friesen
with fetching nodes and setting attributes that may not be defined. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Andrea Giammarchi wrote: with is another misunderstood feature of JS, imho, you have to be truly a junior to make mistakes with that (and we all did common

[jquery-dev] Re: about iterators, closures and scope

2009-08-13 Thread Daniel Friesen
{ [parent: Foo.prototype], foo: I'm a value, const _bar: You can't set or delete me after this, }; } ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Samer Ziadeh wrote: Isn't the 'new' a needed keyword? On Thu, Aug 13, 2009 at 08:04, Andrea

[jquery-dev] Re: about iterators, closures and scope

2009-08-13 Thread Daniel Friesen
function Person() { return Object.create(Person.prototype, { first: { value: '' } last: { value: '' } }); } You could even chose to make those non-enumerable or lock them with values. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Samer Ziadeh

[jquery-dev] Re: about iterators, closures and scope

2009-08-11 Thread Daniel Friesen
it folds arrays into the list rather than adding them as items. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Pauan wrote: And how is it inferior to set the current item as an argument to the callback? This is how Array.prototype.forEach works. It causes less problems

[jquery-dev] Re: Recursive $.extend should manage loops

2009-08-11 Thread Daniel Friesen
to ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] ludovic wrote: Hi, I've got loops in my objects relations. Example : var father = { child : {} } father.child.father = father; $.extends( true, {}, father ) causes a infinite loop. Jquery should reproduce loops

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-08-11 Thread Daniel Friesen
= new F; } for ( var k in props ) o[k] = props[k]; return o; }; })(jQuery); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Andrea Giammarchi wrote: Dunno how many times that bedge has been optimized ;-) (function(){ var F

[jquery-dev] Re: about iterators, closures and scope

2009-08-10 Thread Daniel Friesen
it, in fact it's closer to real prototype-based programming than the `new Class` you see inside of JavaScript. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Tarini wrote: thanks guys for you answer but I know how to use $.each in OO context... I would like to understand why

[jquery-dev] Re: jquery events binding

2009-08-06 Thread Daniel Friesen
(), 'example.stop': new Function() }); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] ludovic wrote: Hi all, I propose to add the following new feature in events binding : var o = { start : new Function(), stop : new Function() } // Will be the same as // $(target

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-08-05 Thread Daniel Friesen
purposes. Like how I started my Wrench.js project as a library providing a stdlib of array and string manipulation methods. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Már wrote: So, would jQuery and jQuery plugin developmers benefit from having some sort of (highly

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-08-05 Thread Daniel Friesen
There was another discussion on the mailing list about a plugin authoring plugin. It actually allowed plugins that did things like $(...).plugin().myPluginFunction().myOtherPluginFunctionWhichReturnsJQ().find(...); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] tres

[jquery-dev] Re: Ticket #4946, jQuery.isObject

2009-07-27 Thread Daniel Friesen
typeof fn === 'function'; // Some things like document.createElement('object'); return wonky results fn instanceof Function; // Breaks across iFrames toString.call(fn) === [object Function]; // Works the same across iFrames and returns more reliable results ~Daniel Friesen (Dantman, Nadir-Seen

[jquery-dev] Re: enhancing closest delegation

2009-07-23 Thread Daniel Friesen
don't like the context idea, to me a second ‘restrict’ argument makes the most sense. keep options relevant to X method in X method's arguments ~Daniel Friesen (DanTMan, Nadir Seen Fire) [http://daniel.friesen.name] On 23-Jul-09, at 8:08 AM, John Resig jere...@gmail.com wrote: A big

[jquery-dev] Re: Having valueOf() reflect length of collection - a good idea?

2009-07-23 Thread Daniel Friesen
rather than something more useful (like a list of elements). What about type hinting? ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] --John On Thu, Jul 23, 2009 at 2:06 PM, James Padolsey jamespadol...@googlemail.com mailto:jamespadol...@googlemail.com wrote

[jquery-dev] Re: $.ajax's error callback: Confusion with status codes and dataType

2009-07-23 Thread Daniel Friesen
For what it's worth, `undefined` is an illegal JSON value. You could pass undefined rather than null or an empty object because json === undefined would mean that the json failed since `undefined` is not a legal json value like `null` and `{}` are. On Jul 23, 6:33 am, Dave Methvin

[jquery-dev] Re: Having valueOf() reflect length of collection - a good idea?

2009-07-23 Thread Daniel Friesen
) return this.length; return this.get(); // on a second note, it would be nice to use a toArray() instead. }; ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: Nope. var obj = { valueOf: function(){ return 0; } }; !!obj true obj.valueOf

[jquery-dev] Re: My solution for legacy web applications demanding IE6

2009-07-22 Thread Daniel Friesen
jQuery isn't only for web apps. It's also for smaller websites. And it'd be a shame for show/hide to stop working in older browsers when it has no reason to. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] DBJDBJ wrote: @tres Voice of reason. Thanks @all

[jquery-dev] Re: enhancing closest delegation

2009-07-22 Thread Daniel Friesen
http://dev.jquery.com/ticket/4072 I believe John liked it to when I mentioned it in the mailing list. It was one of those things on my list of things missing in jQuery compared to the bad local framework I wrote for an app at work. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http

[jquery-dev] Re: enhancing closest delegation

2009-07-22 Thread Daniel Friesen
Not to mention it would either be broken, or be a complete hack. $(selector, context); is actually an alias for $(context).find(selector); And this.context isn't what was passed to context. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Jörn Zaefferer wrote: Working

[jquery-dev] Re: Rename bind/unbind?

2009-07-17 Thread Daniel Friesen
Renamed are best done by creating the new name and leaving the old name around for compatibility. This isn't a rename bind to something else and force everyone to change it's a give a new standard name for bind leaving the old name in place for old code so that new projects have a name

[jquery-dev] Re: Enhancement to the trim method

2009-07-10 Thread Daniel Friesen
://wrench.monkeyscript.org/. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] George wrote: Yep, I'm inclined to agree that trim() is for trimming! The only little enhancement that I and several colleagues have often considered is the ability to specify what character to trim off

[jquery-dev] Re: Status of $.browser

2009-07-07 Thread Daniel Friesen
don't know how to use one of JavaScript's core features, closures. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Andrea Giammarchi wrote: I think a generic $.browser.IE could always be useful ... sometimes we have to deal with pixel perfection and I cannot imagine how

[jquery-dev] Re: Locale support in jquery

2009-07-03 Thread Daniel Friesen
jQuery.ui's datepicker has parse/format support and options can be used to localize both the datepicker and parsing/formatting. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Ricardo wrote: Not a jQ plugin but worth a good look: http://www.datejs.com/ On Jul 2, 6:45

[jquery-dev] Re: Join several JS scripts into one big file to lower http request

2009-07-03 Thread Daniel Friesen
and check to see if it's newer than the allinone file's timestamp and regenerate it if it is. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Samer wrote: I found it tricky to use an automated combiner thingy in that it doesn't know the order of the javascripts

[jquery-dev] Re: IE issue with .append?

2009-06-23 Thread Daniel Friesen
being mixed into jQuery. I for one have been thinking of $('...') as tag creation rather than raw html, or thinking that jQuery did it's own quick parsing for ages. Now I'll have to go back through 6 months of code to track down all the code using that pattern. ~Daniel Friesen (Dantman, Nadir-Seen

[jquery-dev] Re: IE issue with .append?

2009-06-23 Thread Daniel Friesen
Can we update the documentation to also note that unclosed tags aren't supported. Malformed html is obvious, but people don't always think of a single tag as malformed html. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: To be clear: jQuery supports

[jquery-dev] IE issue with .append?

2009-06-22 Thread Daniel Friesen
one. -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email to jquery-dev

[jquery-dev] Re: IE issue with .append?

2009-06-22 Thread Daniel Friesen
. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: You say that you still have problems if you split apart the query. So in this case $button.append( [ ) fails - correct? What happens if you do: $button.append( document.createTextNode([) ) --John

[jquery-dev] Re: IE issue with .append?

2009-06-22 Thread Daniel Friesen
http://dev.jquery.com/ticket/4805 ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: This is very helpful analysis. I've added it to my todo list. Could you file a ticket with your test cases, as well? Thanks! http://dev.jquery.com/newticket --John

[jquery-dev] Re: IE issue with .append?

2009-06-22 Thread Daniel Friesen
, ie8, opera, firefox, and midori. However: span class=foo span class=foo Fail in ie7 and ie8 while they work in firefox, midori, and opera. Filed as: http://dev.jquery.com/ticket/4806 ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: This is very helpful

[jquery-dev] Re: IE issue with .append?

2009-06-22 Thread Daniel Friesen
across browsers be accepted? That should be something simple like checking if it starts with and ends with , contains no other 's and doesn't have a / before the then insert a single / before the last before continuing. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name

[jquery-dev] Re: A element click event, event.target.pathname

2009-06-18 Thread Daniel Friesen
Regexes aren't slow. Regex stuff on strings is actually quite fast, and from the standpoint of practical speed there is no significant difference. An example of what you're trying to do that I could fix up would be handy. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name

[jquery-dev] Re: Adding a change event on a hidden field

2009-06-17 Thread Daniel Friesen
triggered the change event your onchange would be fired again... And perhaps again... and so on. An onchange would become an easy way to accidentally create an infinite loop within the dom that isn't desired. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] BaBna wrote: Thanks

[jquery-dev] Re: $('#Test').val(null); IE vs. the rest

2009-06-17 Thread Daniel Friesen
, etc... which work as both getters and setters. I was under the impression that this was on the todo list, rather than already fixed, cause I could swear I ran into this while working with the 1.3 series. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote

[jquery-dev] Re: $('#Test').val(null); IE vs. the rest

2009-06-16 Thread Daniel Friesen
try using null or undefined, it's a known issue. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] vdhant wrote: Not really, because I have simplified my case a little and it actually looks a little more like this: input type=text id=TextBox10of20

[jquery-dev] Re: $('#Test').val(null); IE vs. the rest

2009-06-16 Thread Daniel Friesen
Hmmm? Clarifying, has $(el).css('width', undefined).someOtherFnMethod(); been fixed? ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] John Resig wrote: It's always a good idea to either use a ||'' or cast your data to a string or other proper datatype when using

[jquery-dev] Re: Prepare for IE6's death

2009-06-06 Thread Daniel Friesen
. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Sam Collett wrote: IE7 does have native XMLHttpRequest, but even then jQuery does not use it... I think because it does not work with file:// URIs. --Sam 2009/6/6 diogobaeder diogobae...@gmail.com mailto:diogobae

[jquery-dev] Re: Creation of elements not working

2009-06-05 Thread Daniel Friesen
) .appendTo('#resultspaging'); else $('span class=page').text(i + 1).appendTo('#resultspaging'); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] androcles wrote: Hi. I'm having some issues on jquery, specifically with safari. I need to create dynamic

[jquery-dev] Re: IE6 rules the roost and shows no signs of leaving anytime soon.

2009-06-04 Thread Daniel Friesen
and still keep IE6 on the machine. And there is no need to covert the old system or test it cause you still have the old browser for that. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Jules wrote: On Jun 5, 3:34 am, Henry rcornf...@raindrop.co.uk wrote: On Jun 4, 5:23 pm

[jquery-dev] Re: [Dumb] find() method normal behavior ?

2009-05-27 Thread Daniel Friesen
Yes, .andSelf() exists specifically for the case where someone wants .find() to also include the previous selection. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] Erik Beeson wrote: I believe that's expected behavior. For your second example, I think you'd want

[jquery-dev] Re: new $

2009-05-15 Thread Daniel Friesen
;) I still see an if statement there, heh. I prefer the conditional comments + build system approach. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] DBJDBJ wrote: ... If a user uses new $ this user simply does not truly understand/ know JavaScript but fortunately

[jquery-dev] Re: Readonly attribute handled differently in IE7 and FF

2009-05-13 Thread Daniel Friesen
, if it is absent the property is false. Thus you use a simple [readonly] to check for the existence of the readonly attribute. And in your case surround that with a :not() to check for things without readonly. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] dmcmeans wrote: Using

[jquery-dev] Re: Exception Thrown When Getting CSS Value

2009-05-07 Thread Daniel Friesen
: left, 0: top, 1: right, 2: bottom, 3: left, toString: function() { return [top, right, bottom, left].join(' '); } }; ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Stephen McKamey wrote: In thinking more about the deeper problem, it seems to me an array of the values is the right answer

[jquery-dev] Re: Exception Thrown When Getting CSS Value

2009-05-06 Thread Daniel Friesen
See bug 4295: http://dev.jquery.com/ticket/4295 Combined css properties like padding and margin are actually inconsistent across browsers when they come from the stylesheet. I sympathize though, I do a huge amount of css cloning myself and this kind of thing gets in the way. ~Daniel Friesen

[jquery-dev] Re: globalEval in high conflict situations.

2009-04-22 Thread Daniel Friesen
iframe.contentWindow.jQuery = jQuery; create script tag and insert jQuery(iframe).remove(); However the issue with the iframe sandbox is that the document and whatnot isn't properly available. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Andrea Giammarchi wrote: I feel called in the cause ... globalEval just

[jquery-dev] Re: globalEval in high conflict situations.

2009-04-22 Thread Daniel Friesen
Ugh, quick, rename! IMHO something like .document() would be better. At some point I had a thought it would be nice to do something like: $('#foo iframe:document body') ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Brandon Aaron wrote: Well for example the changes I've made allow you to get

[jquery-dev] Re: Structure Plugin Authoring

2009-04-21 Thread Daniel Friesen
shugartweb.com is offline. Could we get a github repo or something so the code is always available and open to work with? ~Daniel Friesen (Dantman, Nadir-Seen-Fire) tres wrote: Btw, Daniel, I have changed the API to accomodate this. jQuery.plugin.add('name', func || objectOfFuncs), will now

[jquery-dev] Re: selector on elements like id=name[2]

2009-04-16 Thread Daniel Friesen
that there are html libaries that do this kind of thing. On Apr 16, 1:03 pm, Richard D. Worth rdwo...@gmail.com wrote: On Wed, Apr 15, 2009 at 12:23 PM, Daniel Friesen nadir.seen.f...@gmail.comwrote: Fact is that jQuery does support using characters like :[] by escaping them

[jquery-dev] Re: What does this error message mean?

2009-04-16 Thread Daniel Friesen
Barely anyone actually bothers to do it + You never said you did = We assume you may not have done it and suggest it ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Pink Pig wrote: On Apr 16, 1:04 am, David Zhou da...@nodnod.net wrote: On Thu, Apr 16, 2009 at 12:48 AM, Pink Pig b

[jquery-dev] Re: selector on elements like id=name[2]

2009-04-15 Thread Daniel Friesen
, April 15, 2009 9:39 am, DBJDBJ wrote: Even better: do not use them at all , as part of an id ... On Apr 14, 6:58 pm, Daniel Friesen nadir.seen.f...@gmail.com wrote: [] is used for attributes. Use the backslash to escape them for use as part of an id. ~Daniel

[jquery-dev] Re: selector on elements like id=name[2]

2009-04-14 Thread Daniel Friesen
[] is used for attributes. Use the backslash to escape them for use as part of an id. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Mat Brennan wrote: Hi all, Not sure if this is even relevant to the development side of the group. I've noticed if i have something such as: input type=text

[jquery-dev] Re: Firefox 3, Chrome issue with table and css(name,value)

2009-04-10 Thread Daniel Friesen
Mind showing all the code you are using? It looks like more of a issue with other code rather than that code. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Rodney wrote: I am having problems using something as simple as: $(.filterable tr:odd).css(background-color, white); table class

[jquery-dev] Re: Color library

2009-04-04 Thread Daniel Friesen
it. Not only that but using github you can get a nice view of all the distributed repos and differences. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Mark Gibson wrote: Nice one Daniel, I'll check it out when I get time - gonna have to do a bit of a crash course in git first :) 2009/4/2 Daniel Friesen

[jquery-dev] Re: Color library

2009-04-02 Thread Daniel Friesen
I started a GitHub repo: http://github.com/dantman/jquery.color/tree/master I also added full rgb support for alpha values. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Mark Gibson wrote: Hi Daniel, Sorry for the delay, been on holiday. The code seems to be accessible at present. I've done

[jquery-dev] Re: Selection problems with multiple elements

2009-03-31 Thread Daniel Friesen
If /this/ is a node as I expect it is in that context, it should actually be $(this).find('.quantite'); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Gilles wrote: Bonjour! Stupid question, but you have made sure to wrap your code inside $ (function(){ /* your code */ }); yes? As otherwise

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-31 Thread Daniel Friesen
Ticket has been opened: http://dev.jquery.com/ticket/4461 On Mar 21, 3:15 am, Daniel Friesen nadir.seen.f...@gmail.com wrote: At work when I was writing my own JavaScript framework (partly inspired in API by jQuery) I ran into a number of times where I needed to grab a series of css values

[jquery-dev] Re: Inserting content with each?

2009-03-30 Thread Daniel Friesen
var img = $(.gallery img); $(img).each(function() { $(#bild_spel div ul).append( $('li/').append(this) ); }); ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Gilles wrote: For some reason your answer doesn't show on here. You might have mail me directly, anyway if you want to insert

[jquery-dev] Re: feature request: retrieving :hover css properties

2009-03-27 Thread Daniel Friesen
css rules which is what is required for :hover ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Alexandre Plennevaux wrote: ok submitted http://dev.jquery.com/ticket/4434 it's in the hands of the jquery team to decide now. thanks to you all for an interesting investigation ! On Fri, Mar 27, 2009

[jquery-dev] Re: CONTEXT LOGIC

2009-03-27 Thread Daniel Friesen
is a horrible lie. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) DBJDBJ wrote: Can we just have next jQuery(selector, context) version throw an exception, IF context argument is not jQ instance or dom element exception will be thrown. As simple as that. I would even suggest going even further

[jquery-dev] Re: Need help with an IE issue (of course!)

2009-03-27 Thread Daniel Friesen
~Daniel Friesen (Dantman, Nadir-Seen-Fire) Gilles wrote: Ok, I don't have the bug anymore, but my script is no longer working (and I know why so at least I know where to look) For information purposes all I did was changed this line code += init.join(';')+';'; to this line and the error

[jquery-dev] Re: suggestion: delayed related AJAX requests

2009-03-27 Thread Daniel Friesen
Rather than an entire other function, what about just a {delay: ms} to .ajax ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Miloš Rašić wrote: Here's a suggestion for a feature that I think would be useful to AJAX developers. Sometimes, we need an AJAX feature that could allow a user to cause

[jquery-dev] Re: Color library

2009-03-27 Thread Daniel Friesen
I was thinking of doing some work on the Color library today but it looks like the code isn't accessible anymore. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Daniel Friesen wrote: Just following up with a note. I didn't get around to setting up the repo right away, and on Friday the UI on my

[jquery-dev] Re: CONTEXT LOGIC

2009-03-26 Thread Daniel Friesen
Example 1 is invalid jQuery. Example 2's speed comparison to Example 3 is trivial. In fact Example 2 has an advantage to it. Do remember IE6's bug with getElementById, jQuery's selectors have code to fix that bug. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) DBJ wrote: // jq132-vsdoc.js, line

[jquery-dev] Re: CONTEXT LOGIC

2009-03-25 Thread Daniel Friesen
to not rely on any consistent return for .end() when using it). It's even more useful when you throw widget objects into the mix. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) DBJDBJ wrote: My question/comment : What is a CONTEXT LOGIC in jQ ? I think it should be : dom node inside which

[jquery-dev] Re: CONTEXT LOGIC

2009-03-25 Thread Daniel Friesen
is completely unnecessary anyways, you already have a jQuery object just use .find ~Daniel Friesen (Dantman, Nadir-Seen-Fire) chris thatcher wrote: I'm trying to follow this thread but it's a little loose so apologies if I'm missing the point. The only thing I want to disagree

[jquery-dev] Re: replaceClass

2009-03-25 Thread Daniel Friesen
anything else. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Julian Aubourg wrote: $(node).filter('.color-black').removeClass('color-black').addClass('color-white').end() And you find that more readable than $(node).replaceClass('color-black','color-white') ? ;) The main issue here is that I dunno

[jquery-dev] Re: Extensibility: Extending init selectors to support application objects

2009-03-24 Thread Daniel Friesen
and get both performance and flexibility advantages. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Dave Methvin wrote: I'm working on a patch to jQuery to make it so that initialization can support application specific objects through extensibility. How about if your Widget had a method like

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-22 Thread Daniel Friesen
level 2: Fixes to support css properties in w3 draft like borderRadius and transform in as many browsers as can handle it (^_^ Heck, we could include animation ability) ~Daniel Friesen (Dantman, Nadir-Seen-Fire) --~--~-~--~~~---~--~~ You received this message because

[jquery-dev] Extensibility: Extending init selectors to support application objects

2009-03-22 Thread Daniel Friesen
will this: $('div/').appendTo(myWidget); Because jQuery isolates itself inside of a closure to make sure that overriding the jQuery method will not break jQuery on it's own from working. -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) --~--~-~--~~~---~--~~ You received

[jquery-dev] Re: jQuery - Development Environments?

2009-03-21 Thread Daniel Friesen
idea has much more promise since you can use trunk, your own get clone, individual jquery versions, and even edit in-project versions. -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) --~--~-~--~~~---~--~~ You received this message because you are subscribed

[jquery-dev] Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Daniel Friesen
it to use the array input format to avoid confusion. Any thoughts? This worth opening an enhancement ticket? -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery

[jquery-dev] .unbind(func);

2009-03-21 Thread Daniel Friesen
an enhancement ticket? -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email to jquery-dev@googlegroups.com

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread Daniel Friesen
differences (The framework I wrote was actually inspired by jQuery) and finding various parts that can improve jQuery, and things needing extensibility that get in the way of the ability to cleanly use jQuery inside the app. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) Cloudream wrote: +1 And I

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread Daniel Friesen
. There are dozens of event types, more being added, then there are custom and namespaced events. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) John Resig wrote: I remember someone mentioning something like: .unbind(*, fn) It could also apply to other things like: .unbind(*.foo, fn) .bind(*, fn) --John

[jquery-dev] Re: .animate({prop: 'show'}) to animate set size to natural size

2009-03-21 Thread Daniel Friesen
, );}}); But the idea of natural is that it can be used in more cases. Basically it's a transition from any set property, to what it would be like if it was unset. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) John Resig wrote: We swap the value out to get the value, but don't unset the value

  1   2   >