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

2009-08-03 Thread DBJDBJ
There are two "main points" here: terminology and reliability. http://dbj.org/dbj/?p=270 (sorry for a blog plug ) typeof( window.alert ) === 'object' is going head-on towards browser (+OS) differences so, same as ECMA comitee, I have no resources to "solve" that one ... --DBJ On Aug 1, 3:16 p

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

2009-08-03 Thread Andrea Giammarchi
I solved it already, have you tried my snippet to understand native IE functions? Native IE functions have these "features" - they are not instanteof Function - they are not instanceof Object - accordingly, they have not a toString method, decompilation is in this case safe enough - you cannot

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

2009-08-03 Thread Andrea Giammarchi
As summary return !!obj && typeof obj.toString === "undefined" && /^\s*\bfunction\b/.test(obj); with a given IE function, it should not fail. Other browsers can use the good old "[object Function]" trick. On Mon, Aug 3, 2009 at 11:38 AM, Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: >

[jquery-dev] isFunction() that works in IE too

2009-08-03 Thread DBJDBJ
I think we all know that In IE, typeof window.alert , returns “object” Here is my portable isFunction() , IMHO it might be ine of the simplest solutions that I have seen? // GPL (c) 2009 by DBJ.ORG var isFunction = typeof (top.alert) == "object" ? function(x) {

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Andrea Giammarchi
your proposal in IE var s = "this is a string with function word"; isFunction(s) // true cool!!! now, re-consider that we all like reliable code and your code as is is the less reliable ever for its purpose in IE. I gonna probably create a post in WR 'cause where you think "small and simple is

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Azat Razetdinov
jQuery had that sort of checks and fairly dumped them in 1.3: http://docs.jquery.com/Release:jQuery_1.3#Changes > .isFunction is simpler now, it no longer handles some strange edge cases (in > favor of simplicity and performance). By the way, ‘x instanceof Function’ leaks for window and DOM obj

[jquery-dev] Re: JQuery Fx Unit Test

2009-08-03 Thread Clint Talbert (Mozilla Address)
Thanks for your reply, John. Do you have any idea on an ETA for 1.3.3? If it is soonish, I'd prefer to wait for that release and then update our test system to that version so that we the most current version of jquery. Thanks again, Clint On Jul 31, 6:43 am, John Resig wrote: > I've looked

[jquery-dev] access to restricted uri denied line 3395

2009-08-03 Thread ccha
I'm receiving the error "access to restricted uri denied line 3395" Making an ajax call to a web service using jQuery. The web service resides on a server that also has a javascript file with calls to the various web methods. Each web method has a corresponding javascript function that calls (expo

[jquery-dev] Re: access to restricted uri denied line 3395

2009-08-03 Thread Samer
try changing the datatype to 'jsonp' On Aug 3, 12:10 pm, ccha wrote: > I'm receiving the error "access to restricted uri denied line 3395" > Making an ajax call to a web service using jQuery. The web service > resides on a server that also has a javascript file with calls to the > various web me

[jquery-dev] Re: JQuery Fx Unit Test

2009-08-03 Thread John Resig
We're shooting for something before the end of the month. --John On Mon, Aug 3, 2009 at 2:09 PM, Clint Talbert (Mozilla Address) < ctalb...@mozilla.com> wrote: > > Thanks for your reply, John. > > Do you have any idea on an ETA for 1.3.3? If it is soonish, I'd > prefer to wait for that release

[jquery-dev] Bug in Safari 3.2.1-3.2.2?

2009-08-03 Thread smurkas
Hello. While developing a site for a client I made a page where I hid all the div:s with the class news_container like this $('.news_container:not(:first)').hide(); This works great in Mozilla and Safari 4 (I haven't tried Chrome yet) but both Safari 3.2.1 and 3.2.2 hide all the div:s, including

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Andrea Giammarchi
All Salsa isFunction and isIENativeFunction http://webreflection.blogspot.com/2009/08/isfunction-or-isienativefunction.html Both proposal, you decide ;-) Best Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[jquery-dev] interface fisheye menu and smartmenu issue

2009-08-03 Thread Panosms
Hello.I try to use the fisheye menu downloaded from :http:// interface.eyecon.ro/with the smartmenu from:http:// www.smartmenus.org on the same page.The problem i have is that if the SM is direct above the fisheye menu and has submenus that hover the fisheye menu,than when the mouse is over th

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Ariel Flesler
Indeed, we dropped this consciously and we don't plan to re-add it. -- Ariel Flesler On Aug 3, 2:00 pm, Azat Razetdinov wrote: > jQuery had that sort of checks and fairly dumped them in 1.3: > > http://docs.jquery.com/Release:jQuery_1.3#Changes > > > .isFunction is simpler now, it no longer han

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Andrea Giammarchi
Ariel not sure you read my post already, what I am talking about is an isIECallable function that could be a part from isFunction (I used isIENativeFunction but it does not matter the name, it can be only less than 100 characters and nothing else) Regards --~--~-~--~~~

[jquery-dev] Re: isFunction() that works in IE too

2009-08-03 Thread Ariel Flesler
I was actually replying to Azat but yes, I read your post. Your code is cool, not that different from the one we had back then, written by John. The thing is, how often would you actually call isFunction on alert(, confirm, etc) or a DOM element's method. You certainly won't be passing those as a