Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Hide and Show the cropper selection
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael B  
View profile  
 More options Jun 9 2008, 11:44 am
From: Michael B <michael...@gmail.com>
Date: Mon, 9 Jun 2008 08:44:35 -0700 (PDT)
Local: Mon, Jun 9 2008 11:44 am
Subject: Hide and Show the cropper selection
Wonderful work Dave!

I am using displayOnInit: and onloadCoords: when I want to pass in
pre-
set crop values when the cropper loads.

However, once the page loads, I have a situation where I want a
toggle
to show or hide the cropper depending on the state of a checkbox on
my
form.

When I hide the cropper, I want to store the last coordinates so if
the cropper is made visible again, then the previous selection is
visible.

I think I want to use some combination of removeCropper and
resetCropper, but with coordinate values on the reset.

I have been unable to call attacattachCropper(); again after the form
has initially loaded.

Thanks  in advance for any assisstance.

Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Spurr  
View profile  
 More options Jun 9 2008, 11:56 am
From: David Spurr <david.sp...@gmail.com>
Date: Mon, 9 Jun 2008 08:56:51 -0700 (PDT)
Local: Mon, Jun 9 2008 11:56 am
Subject: Re: Hide and Show the cropper selection
If you've got the co-ordinates stored then you could call the
setAreaCoords() method when you want to re-display it (after calling
resetCropper). This method is meant to be private, but that's the only
way of doing what you want at the moment.

-D

On Jun 9, 4:44 pm, Michael B <michael...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael B  
View profile  
 More options Jun 10 2008, 12:38 am
From: Michael B <michael...@gmail.com>
Date: Mon, 9 Jun 2008 21:38:24 -0700 (PDT)
Local: Tues, Jun 10 2008 12:38 am
Subject: Re: Hide and Show the cropper selection
I can't seem to get that suggestion to work and I am not exactly sure
how I should be calling this... Here is what I am doing:

this.curCrop.reset();
this.setAreaCoords( {x1: 10, y1: 10, x2: 100, y2: 300},true,false);

Michael

On Jun 9, 11:56 am, David Spurr <david.sp...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael B  
View profile  
 More options Jun 10 2008, 12:19 pm
From: Michael B <michael...@gmail.com>
Date: Tue, 10 Jun 2008 09:19:28 -0700 (PDT)
Local: Tues, Jun 10 2008 12:19 pm
Subject: Re: Hide and Show the cropper selection
Ok. I figured it out.

It works fine when I call it like this:

this.curCrop.reset();

var previousCoords = { x1: prevX1, y1: prevY1, x2: prevX2, y2:
prevY2 };

this.curCrop.setAreaCoords( previousCoords );
this.curCrop.selArea.show();
this.curCrop.drawArea();
this.curCrop.endCrop();

On Jun 10, 12:38 am, Michael B <michael...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »