$ is not defined

$ is not defined

Hi All,

I have a link that uses jquery and thickbox to create an ajax thickbox. In the thickbox there is a form that has the ability to upload an image. If the form is filled out and no image supplied (which is fine), ajax sends the information and there are no js errors. If the user supplies an image, I am using http://www.webtoolkit.info (which uses an iframe for the image/file upload) to upload the file.

When I click on the submit button of the form, the information goes to the same place as if no image was there, but the image upload occurs via an ajax call.

The return script uses Jcrop to crop the image to fit the dimensions for the site. This is the where the error occurs. As the site submits and then loads that page, I get the following error:
Inline script thread
Error:
name: ReferenceError
message: Statement on line 9: Reference to undefined variable: $
Backtrace:
  Line 9 of inline#1 script in [page_url]
    $((function ()
{
  $("#jcrop_target").Jcrop({onChange : showPreview, onSelect : showPreview, aspectRatio : 3 / 5});
}
));

[page_url] is actually the url of the page that has been submitted but the code that it is complaining about is on the page that has the Jcrop usage.

Note: everything shows up on the page, I just can't use Jcrop.
Note: all the ajax calls return and write over whatever was in a specific id in the original thickbox call.

I ran this code on a local machine, w/out all the thickbox stuff, and just did the Jcrop (thinking there was a problem there) and it worked find. No errors! I am a novice at this stuff, so there has been a lot of hours beating my head w/out much success - nothing is sinking in!

Thank you for your time and assistance,
oach