473,405 Members | 2,185 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,405 software developers and data experts.

Graphically edit a page?

Hello all.

I am a Java programmer who sometimes dabbles in simple PHP stuff, and
had a question that's way over my head, for you DHTML experts.

I would like to know how to dynamically edit a currently static HTML
page which contains a map of a stands at a convention center. The
static version of the page can be found here:

http://www.ibertoldo.com/plano.htm

I would like to be able to *visually* edit this page -- create, modify
(re-shape and move boxes, assign data, etc.), and delete boxes on the
page, and then click on a "Save" button to save the changes in my
database, using PHP.

The server-side aspect I have no problem with, it's the client-side
that I have no idea how to do (if it's even possible ...) I have a
feeling what I am asking for is something much more suited to Flash but
I need to do it in DHTML / PHP.

Does anyone know of a graphic editor out there, something that allows
drag-and-drop and stretching of HTML (DHTML) elements?

Thanks for any tips,
syg

Sep 12 '05 #1
3 2277


sy****@gmail.com wrote:
I would like to know how to dynamically edit a currently static HTML
page which contains a map of a stands at a convention center. The
static version of the page can be found here:

http://www.ibertoldo.com/plano.htm

I would like to be able to *visually* edit this page -- create, modify
(re-shape and move boxes, assign data, etc.), and delete boxes on the
page, and then click on a "Save" button to save the changes in my
database, using PHP.


So you want a kind of wysiwyg editor for HTML documents?

Or you even expect the browser to allow such editing?
IE 5 and later on Windows and Mozilla 1.4 and later allow editable
iframes so you would need to load a document in an iframe and when the
document is loaded you can set the designMode property of the document
to 'on' to allow the browser user to edit the document. Whether those
editing capabilities do then fit your expectations of "shaping and
moving boxes" I am not sure.

IE docs are here:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/designmode.asp>

Mozilla docs are here:
<http://www.mozilla.org/editor/midas-spec.html>

Saving back to your server is possible where for instance with IE you
could access
iframeDoc.documentElement.outerHTML
and send that to the server. However you need to realize that outerHTML
is IE's serialization of the DOM tree and does not necessarily match
your expectations of HTML source formatting. Don't expect IE to preserve
your source code with that approach.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 12 '05 #2
No, I don't really want to edit an HTML page per se. Yes I would be
editing the page but I don't want to be able to dynamically add
anything except DIVs, I don't need a full-blown HTML editor.

What I would like to do is simply present the user with a grid of
boxes. Each one would be a DIV I guess. On that grid he creates stands
made up of x grid boxes by clicking on a given box then stretching it
so it is made up of 1, 2 or x more boxes. He then assigns some data
(name of company, status) and saves.

All I would be saving here are some x,y coordinates and the company
info. With that info saved when the user returns to the page I simply
spit out a DIV with given coordinates for each entry in the database.

I think I am dreaming though. I could do this kind of thing myself with
the DynDuo DHTML library or something but I think it would take me
quite a long time. I was interested in knowing if something like this
already exists.

I guess not?

syg

Sep 13 '05 #3
sy****@gmail.com wrote:
No, I don't really want to edit an HTML page per se. Yes I would be
editing the page but I don't want to be able to dynamically add
anything except DIVs, I don't need a full-blown HTML editor.

What I would like to do is simply present the user with a grid of
boxes. Each one would be a DIV I guess. On that grid he creates stands
made up of x grid boxes by clicking on a given box then stretching it
so it is made up of 1, 2 or x more boxes. He then assigns some data
(name of company, status) and saves.

All I would be saving here are some x,y coordinates and the company
info. With that info saved when the user returns to the page I simply
spit out a DIV with given coordinates for each entry in the database.

I think I am dreaming though. I could do this kind of thing myself with
the DynDuo DHTML library or something but I think it would take me
quite a long time. I was interested in knowing if something like this
already exists.

I guess not?

syg

I doubt you can find a "turn-key" solution, but programming of your
application is straight-forward (even if time consuming).
There are plenty of demo scripts that show how to do drag and drop as
well as resize. Saving data can be accomplished by polling the divs and
getting their offset[Top/Left/Width/Height] for coordinates and then
getting it to the server in a hidden form field or using AJAX methods
--
Vladdy
http://www.klproductions.com
Sep 14 '05 #4

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

Similar topics

0
by: Dorthe Luebbert | last post by:
Hi, I am looking for a class to display trees graphically (SVG, Gdlib, whatever). It should look somehowlike this java driven example: ...
0
by: Enis | last post by:
hi i have to generate an xml file graphically and according to a dtd. The user have not to know XML and the DTD I have no idea of how this can be possible…which models of data i have to code…how...
10
by: sygsix | last post by:
Hello all. I am a Java programmer who sometimes dabbles in simple PHP stuff, and had a question that's way over my head, for you PHP experts. I would like to know how to dynamically edit a...
0
by: Alex | last post by:
Interested in more .NET stuff visit www.dedicatedsolutions.co.uk The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format....
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
5
by: MasterChief | last post by:
I am using Visual Web Developer to create a basic database app. I put in a grid view and Enabled Selecting on the gridview. What I would like to happen though is when the person clicks select it...
3
by: Neil Steventon | last post by:
Hi, Im after some advise on how to go about this problem. I have a master page with nice header and side bar setup. I then have various aspx pages that use this master page. I want one of the...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
1
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.