How to store/retrive layout

J

john woo

Hi

I'm not sure it's possible that using javascript to locate/get
components X|Y then other language, like java-jsp to save/retrive these
data.

For instance, a GUI presents a layout of tables/chairs for a
exhibition, some small images represent tables/chairs of various
sizes/styles, which considered as movable components in this GUI, and
their positions specified by X|Y.

regardless of how to connect to database (initially javascript should
be able to provide every components' X|Y).

Can any one tell where to find a example, or the idea to implement ?
 
T

Thomas 'PointedEars' Lahn

john said:
I'm not sure it's possible that using javascript to locate/get
components X|Y then other language, like java-jsp to save/retrive
these data.

If I understand you correctly, it is possible.
For instance, a GUI presents a layout of tables/chairs for a
exhibition, some small images represent tables/chairs of various
sizes/styles, which considered as movable components in this GUI,
and their positions specified by X|Y.

regardless of how to connect to database (initially javascript should
be able to provide every components' X|Y).

Can any one tell where to find a example, or the idea to implement ?

Look for the `offsetLeft' and `offsetTop' properties for a start. Examples
and links on obtaining the absolute position of an element (here probably
an `img' or `object' element) have been posted here before. If that does
not help, please elaborate.


PointedEars
 

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

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top