David Spurr create a very nice _javascript_ to crop an image using an interface with the same features and styling as found in commercial image editing software. A demo is at: http://www.defusion.org.uk/code/_javascript_-image-cropper-ui-using-prototype-scriptaculous/
Is it possible to integrate this in webobject? It is based on Prototype & script.aculo.us
I'd try to integrate cropper.js, prototype.js, scriptaculous.js and cropper.css in a xcode project. I'd make sure that those was in the copy Bundle Resources of Web Server Target. After the Build, i'd copy the .woa to /Library/WebServer/Documents/WebObjects/ProjectJle.woa But it's not working...(no live cropping UI on image) ok there is the xhtml problem, but it can be fix... My web Component: choixCrop.wo integrate a WOJavaScript in the header specifying the <script src to <script src="">"/WebObjects/ProjectJle.woa/Contents/WebserverResources/prototype.js" type="text/_javascript_"></script> <script src="">"/WebObjects/ProjectJle.woa/Contents/WebserverResources/scriptaculous.js?load=builder,dragdrop" type="text/_javascript_"></script> <script src="">"/WebObjects/ProjectJle.woa/Contents/WebserverResources/cropper.js" type="text/_javascript_"></script>
I'd tried to save the page.html that Webobject generate and edit it to point those .js file to local folder path with this page.html and it work if I change those script "src=""khtml-block-placeholder"> Thanks, Jean |