473,756 Members | 6,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2300


sy****@gmail.co m 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.docum entElement.oute rHTML
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.co m 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
2433
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: http://www.csupomona.edu/~jrfisher/www/logic_topics/visualize/p2.gif The data is stored in a Mysql dtabase. Any suggestions?
0
1222
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 to get the parser error and how to validate the model…etc… Any help is welcome. Thanks
10
1787
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 cuurently 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
0
3115
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. However, the DataGrid begins to get very cumbersome as the number of columns of data you present increases. Anything more than half a dozen columns or so and you probably induce horizontal scrolling - a real no-no for me. If you put such a...
4
3718
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 file via some editable controls such as text boxes , option boxes etc. how can i implment this , should i use another xslt file with <INPUT> controls . if so how can i save the result back using the asp.net
5
1296
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 opens up a different EditItems.aspx page with the edit template so the user can edit the exact item they have selected. I have seen how to do it on one page but I would really like to keep the Edit Template on a seperate page.
3
1453
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 aspx pages to be editable by a user. This saves me having to doing any of the changes. Should I give them access to a public folder for an HTML page that I then include in the website. What are the best ways to tackle this kind of
9
2727
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 code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not (Page.IsPostBack) Then FillDataGrid()
1
2291
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 combine the "Edit" and "Display" funtions into this page. (It means if user want to edit the customer information, this page would provided editing page to the user; If the user want to display the customer information, this page would providev the...
1
3330
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 (ContactGateway.cfc) - index.cfm - Deals with the business logic - display/form.cfm - Produces the form for both add and edit behaviour
0
9487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9884
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.