Re: Javascript problem [jQuery .ready() method]

Russell Gold <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
On Sep 12, 2007, at 10:48 AM, Rob Desbois wrote:

>
> I've tried adding the following line to protect the 'if':
> if (typeof $(document).ready === "function")
>
> but it executes anyway and causes this issue. I'm guessing the  
> problem is with Rhino, but I know jQuery user's have successfully  
> used it with Rhino, although none with HttpUnit.
> Has anyone any idea what the problem is?
>

Have you tried the "typeof" operator with other functions and  
variables? It may be that the version of Rhino in HttpUnit doesn't  
handle it properly, and a later version would.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.