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

"Rob Desbois" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
I've not tried that, but discovered that HttpUnit's interface to Rhino
doesn't provide either of the attachEvent() / addEventListener() functions
so dynamic binding of event handlers is not possible.
I'm now evaluating jWebUnit (based on HtmlUnit) which doesn't seem to
support this either unfortunately, but does result in much cleaner and more
readable test methods.

Thanks for the input
--rob


On 9/17/07, Russell Gold <[email protected]> wrote:
>
>
> 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/
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
>



-- 
Rob Desbois
Eml: [email protected]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.

-------------------------------------------------------------------------
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/

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
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.