I then use a function to display the image. This also works fine. The code is
function imageProcessing()
{
//alert("You Have Reached The imageProcessing() Function");
//alert("Image Name = " + document.getElementById("image_name").value);
Now I want to use a jquery plugin, jcrop, to crop the image. In a very simplified form the code is
$(function(){ $('#target').Jcrop(); });
and yes I am loading the requesite js and css files.
I can make the thing work if I use a htm file already containing the image and a script for the jcorp functionality, but I cannot get it to work if I use the script to do the downloading.
I have tried using
<script language='javascript'>
jQuery(document).ready(function($) {
$(function(){ $('#target').Jcrop(); });
});
</script>
and other variations but I fail. I suspect that I may have a problem in that the image id does not yet exist when the file is first opened.
Am I sort of approaching this in the right way or am I barking up the wrong tree.
Bookmarks