473,395 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to save object positions?

Ok, so I'm using javascript to allow users to move image objects around my web-page, I have built my own usersystem for it, basically a little like piczo.

How do I get the object positions (after I've moved them) to save when I click the "save" button?

Need it to save into a database...
Oct 10 '10 #1
1 1294
kovik
1,044 Expert 1GB
You need to have a hidden form to work with. Whenever something is moved, update the values in the form. For example, for every item that can be positioned, you need an <input> element to store the X position and an <input> element to store the Y position. Then, when they are done, submit the form and you'll have those values.

This is the way many dynamic elements are accomplished on the web. We use advanced items to represent basic items.
Oct 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: TM | last post by:
Is there any way to save the positions of the windows in the IDe, such as server explorer, properties and stuff ? I accidentally moved one of the windows the other day and it took me a while to...
5
by: JIM.H. | last post by:
Hello, I am new in asp.net application. In my application I have a few dropdown list and a RS2000 report viewer object. When I launch the application, in IE they they do not keep their position...
4
by: jamesb457 | last post by:
I'm getting this error a lot, it was working reasonably well, but then for no apparant reason, it stopped. I have a class, basically: public class ShoppingBasket { int count; String Items;...
1
by: Mike D | last post by:
Windows XP Access 2003 G'Day I am using the built in create object macro to save a query to file in an excel format. I have left the "Output File" field blank so that the user can specify...
4
by: Studlyami | last post by:
Okay i create a class object in my "main" class. I want to pass this object by reference to another class. I am able to pass the ref of the object to the constructor, but i don't know how i am able...
9
by: Peter Webb | last post by:
I want to animate one object moving in front of another. I cannot re-render the background as the object moves, as it would be extremely time consuming. This is what I would like to do. I draw...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
2
by: hypermonkey2 | last post by:
Hi there! I am using the "shelve" module in a script to save information in between runtime sessions of the program. (its a sort of data collector, so its important to hold on to anything computed...
0
by: Edwin.Madari | last post by:
since choice of dbm used by shelve http://docs.python.org/lib/node327.html depends on os, and whats available on it, shevle files saved on one os, most likely do not work on another os, sometimes on...
1
by: =?Utf-8?B?S2ltIFM=?= | last post by:
I have a word document I only want to printout ( not save as file ) and I use Word printout method in backgrund but my XP operativ i so slow that a "dummy" dociment also get stored. which...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.