473,388 Members | 1,399 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,388 software developers and data experts.

Dragging your DIVs to other places and remember the positions

M
Could anyone please help me out?
I am working on a new Intranethomepage for our company, and I really,
really would like to make something similar to http://www.google.nl/ig?
hl=nl .
There you can reposition de DIVs and their content and the position is
written in a cookie.
What I like to do is make ons page (no tabs) with several items which
one could reposition and that the positions are written in a
personalised database record.

I can figure out that last part (about writing to a personalised
database record) but the repositioning and what is to be saved in the
record is a comlpete mistery to me.
I have tried to decode the google way of this but it's far too
complicated.
So if anyone could help me out I would be really greatfull. :)

TIA,
Marco Hoefman

PS. BTW. I use Smartsite for CMS

Jan 29 '07 #1
2 2070
M@r(o wrote:
Could anyone please help me out?
I am working on a new Intranethomepage for our company, and I really,
really would like to make something similar to http://www.google.nl/ig?
hl=nl .
There you can reposition de DIVs and their content and the position is
written in a cookie.
What I like to do is make ons page (no tabs) with several items which
one could reposition and that the positions are written in a
personalised database record.

I can figure out that last part (about writing to a personalised
database record) but the repositioning and what is to be saved in the
record is a comlpete mistery to me.
I have tried to decode the google way of this but it's far too
complicated.
So if anyone could help me out I would be really greatfull. :)

TIA,
Marco Hoefman

PS. BTW. I use Smartsite for CMS

A few warnings:

1] This links to my site and one of my articles so it's a shameless plug.

2] It doesn't do exactly what you want because it doesn't attempt to
save the location and it doesn't "snap" into pre-positioned blocks like
google's page does.

3] It makes no attempt to work with every browser in existence -- it was
tested only on FF 2, IE7 and Opera9.

That said, it does break down how to drag and drop a floating division
and you can use that as a springboard and platform to develop the
application you wanted.

Hope this helps you out a bit. Good luck!
http://www.hunlock.com/blogs/Javascript_Drag_and_Drop

--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Jan 29 '07 #2
"pcx99" <x@x.comwrote in message
news:eI*******************@newssvr25.news.prodigy. net...
M@r(o wrote:
>Could anyone please help me out?
I am working on a new Intranethomepage for our company, and I really, really would like
to make something similar to http://www.google.nl/ig?
hl=nl .
There you can reposition de DIVs and their content and the position is written in a
cookie.
What I like to do is make ons page (no tabs) with several items which one could
reposition and that the positions are written in a personalised database record.

I can figure out that last part (about writing to a personalised database record) but
the repositioning and what is to be saved in the record is a comlpete mistery to me.
I have tried to decode the google way of this but it's far too complicated.
So if anyone could help me out I would be really greatfull. :)

TIA,
Marco Hoefman

PS. BTW. I use Smartsite for CMS


A few warnings:

1] This links to my site and one of my articles so it's a shameless plug.

2] It doesn't do exactly what you want because it doesn't attempt to save the location
and it doesn't "snap" into pre-positioned blocks like google's page does.

3] It makes no attempt to work with every browser in existence -- it was tested only on
FF 2, IE7 and Opera9.

That said, it does break down how to drag and drop a floating division and you can use
that as a springboard and platform to develop the application you wanted.

Hope this helps you out a bit. Good luck!
http://www.hunlock.com/blogs/Javascript_Drag_and_Drop
I love your site. I visit it as much as I visit, Richard's, Randy's, Laurent's, John's
and Martin's (among a few others).

Anyway... thanks for a great example.

-Lost
Jan 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Yves PEYSSON | last post by:
Hi, I want to display the same image (from the same file) at different positions in a window. Up to now I used DIV command in the body part of the text, and document.getElementById in order to...
1
by: Daniel | last post by:
ok so lets say i have a string that got passed into a method by ref but i want to see how many other places that string is refered to is this possible?
2
by: sukrit.mehra | last post by:
Hi People, Few of my colleuages were flexing their C muscles and they asked me this question. void Function(void); int main(void) { int x=5;
3
by: Daniel | last post by:
ok so lets say i have a string that got passed into a method by ref but i want to see how many other places that string is refered to is this possible?
44
by: Josh Mcfarlane | last post by:
Just out of curiosity: When would using std::list be more efficient / effective than using other containers such as vector, deque, etc? As far as I'm aware, list doesn't appear to be...
6
by: Jakob Bieling | last post by:
Hi, I recently noticed that my compiler (VC++7.1) allows me to declare variables inside the expression for an if-statement, like so: if (int i = 0) { i = 1; }
2
by: bob | last post by:
sorry to double, triple post but testFile.txt has 28 character (what editor says anyhow): "nothing here, see I'm empty" how can I get the size of this 'buffer': FILE *filestream;...
8
by: Jeff S | last post by:
Please note that this question is NOT about any particular pattern - but about the general objective of separating out presentation logic from everything else. I'm trying to "get a grip" on some...
3
by: laredotornado | last post by:
Hi, I have ten DIVs on my page, with IDs "e1" ... "e10". These DIVs can get moved around on the screen in the course of the page interaction. However, at a certain point, I would like to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.