Need java script assistnace

  • Thread starter Mangalaganesh Balasubramanian
  • Start date
M

Mangalaganesh Balasubramanian

Hi,

This is my requirement & i woudl arppreciate any assistance on this.

I ahve a scanned form which has data entered by User.

I want to have a web page which woudl display this scanned form as a
top part (a frame) and the second frame (bottom part) woudl be a HTML
Form.

Using JS when i am on a particular text field say account number, i
want the image at the top to show only the account number section of
hte image (which is @ a known co-ordinate)

Appreciate any assistnace and pointers

Manglu
 
E

Erwin Moller

Mangalaganesh said:
Hi,

This is my requirement & i woudl arppreciate any assistance on this.

I ahve a scanned form which has data entered by User.

I want to have a web page which woudl display this scanned form as a
top part (a frame) and the second frame (bottom part) woudl be a HTML
Form.

Using JS when i am on a particular text field say account number, i
want the image at the top to show only the account number section of
hte image (which is @ a known co-ordinate)

Appreciate any assistnace and pointers

Manglu

Hi,

The functions that will help you with scrolling are named scrollBy() and
scrollTo().

But I think what you want is near impossible.

You can move the scrollbars in the above frame by means of Javascript so you
can automate the scrolling, but I think it is very difficult for you to
tell how much pixels it must scroll to display the right part of the image.

Regards,
Erwin Moller
 
A

ASM

pcx99 a écrit :
document.getElementById('scannedImage').style.top=0px;
document.getElementById('scannedImage').style.left=0px;
document.getElementById('scannedImage').style.clip='rect("0px, 1000px,
1000px, 0px")';

in my FF2, Opera, Safari, that works much more better like that :

var ref = document.getElementById('scannedImage').style;

ref.top = '0px'; // '0px' with '
ref.left = '0px';
ref.clip = 'rect(25px, 150px, 80px, 74px)'; // without "
 
P

pcx99

ASM said:
pcx99 a écrit :

in my FF2, Opera, Safari, that works much more better like that :

var ref = document.getElementById('scannedImage').style;

ref.top = '0px'; // '0px' with '
ref.left = '0px';
ref.clip = 'rect(25px, 150px, 80px, 74px)'; // without "


Yes. I really screwed up the quotes in the example. I blame it on the
cold medicine, that's my story and I'm sticking to it :D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top