Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-05-2008, 07:45 PM   PM User | #1
nakins
New Coder

 
Join Date: Apr 2004
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
nakins is an unknown quantity at this point
Need help with initializng cropper (event.observe)

I'm trying to use David Spurr's Cropper JS within an aspx page. The problem I'm having is getting the cropper to attach to the image. I am uploading an image first to the server, then trying to crop. When my page, photo.aspx, first loads, a user can select/browser for an image to upload, and then upload it. The aspx page will turn around after the image has been written to a dir, and write a string to the page for the <img src ---- where the javascript for cropper can pick up the image and attach the cropper to it. But, I can't seem to get the cropper to attach. I believe it has to do with the "event.observe" method with attaches cropper to the image.

Event.observe( window, 'load', function() { CropImageManager.init(); } );

The page first loads without an image to crop. I think this is causing the Event.observe to load something that isn't there, if you know what I mean. Can someone suggest a different way to do this?
nakins is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:45 PM.


Advertisement
Log in to turn off these ads.