Javascript problem [jQuery .ready() method]
"Rob Desbois" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm using HttpUnit for the first time, on a new project.
This project will have a lot of JavaScript in it, mostly based on the jQuery
(1.1.4) library.
Basic functionality seems to work, but anything that uses the .ready()
method yields an error like:
> alert("hi");
> });' failed: TypeError: undefined is not a function. (httpunit; line
> 1456))
>
The JavaScript that caused that was:
> $(document).ready(function() {
> alert("hi");
> });
>
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?
TIA,
--rob
--
Rob Desbois
-------------------------------------------------------------------------
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