>> Although IE cooperates with Javascript, it seems like MSXML does not. 
>> As a result, Javascript ends up trying to call the method rather than 
>> just seeing if it exists.
>
> Hmm... That's not what Eric's blog post says:
> ...
> "But IE creates a shim object just for this purpose - so you can save a
> reference to document.write and similar methods without calling them."
> ...
> Perhaps this case is different from the document.write example he gave?

I think what's happening with MSXML is the same as what happens with WSH.
The IDispatch in the MSXML ActiveX object is trying to invoke the method
when Javascript really just wants to see if the method exists. The error
message 'Wrong number of arguments or invalid property assignment' seems to
reinforce that. The comments in that blog post have more discussion on the
topic that I think apply here.

IE's non-native implementations of things like MSXML are really annoying but
unfortunately seem to be within the letter of the standards. It's just
annoying that you can't add object references to these objects without
memory leaks, and that they don't have .constructors, and that they aren't
proper Javascript functions so you can't Function.apply() them for example.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to