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

Create a web-based script that allows user to edit and save a webpage

2
Hello, I've been searching for a solution for this issue everywhere but I couldn't find anything that would work 100% for this.
I'm trying to create a javascript that allows the user to edit and save a simple html file. Editing should be: user can choose where a header text should be placed, place pictures whenever he wants and save this HTML to be printed later.

Does anyone know a good framework or a good javascript example that I could start developing? I really need help here, thanks in advance!
Jan 11 '10 #1
6 1693
Dormilich
8,658 Expert Mod 8TB
I’m not sure this is a good idea. I’d rather have the convenience of a solid IDE.
Jan 11 '10 #2
willnt
2
I'm sorry, what would be a "solid IDE"? I don't know what does IDE mean. Thanks again sir.
Jan 12 '10 #3
Dormilich
8,658 Expert Mod 8TB
it’s this.
Jan 12 '10 #4
Javascript is primarily a client-side scripting language. As such it is not able to save files - you'll need a server-side language such as PHP to do that. An IDE, however, could be done in javascript. Most IDEs out there are fully-fledged HTML editors, but you seem to need nothing more than the ability to move layers around (which contain pictures and text). This shouldn't be too hard to do if you use a drag and drop interface to position everything, store the positions of the layers as variables, and then generate an HTML file. Since you only want it for printing, you should be careful to position everything so that it fits on a page. That would be the framework I would use.
Jan 13 '10 #5
acoder
16,027 Expert Mod 8TB
Some JavaScript editors do allow for templates, so if you want to avoid rewriting something from scratch, that's one option you could consider.

If you want something very simple, look at this (and the linked test page).
Jan 15 '10 #6
"user can choose where a header text should be placed, place pictures whenever he wants..."

The problem with templates is that they usually fix the position of layers, and edit the content (such as in your example). In this situation, we need to fix the content and edit the layers' position. Unless I'm confused about what willnt is exactly looking for, which is likely.
Jan 16 '10 #7

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

Similar topics

6
by: Chad Crowder | last post by:
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the...
4
by: Magnus Blomberg | last post by:
Hello! I have a properly working web server with one web site and several applications like www.mydomain.com www.mydomain.com/app1 www.mydomain.com/app2 Now I have created a new web site as...
2
by: Pranab | last post by:
On my local sandbox , in IIS I created some Websites . Now when I try to create a ASP.NET web application , it tries to create it in the website last created and fails . But my requirement is...
17
by: Chris Podmore | last post by:
When I perform: EventLog.WriteEntry(strSource, strEntry, EventLogEntryType.Error, intEventID) The event viewer reports The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobile )...
4
by: Mark | last post by:
I was able to get procedure to work in a VB.Net Windows application, and want to get it to work within a ASP.Net page. It won't create the instance of Excel. It blows up on the CreateObject...
0
by: Patrick F | last post by:
I keep getting this error message and i don't know whats the problem is and how to solve it. I have a webproject with 2 components (dll) added to it. One is called PhotoGallery and one is called...
1
by: Patrick F | last post by:
I keep getting this error message and i don't know whats the problem is and how to solve it. I have a webproject with 2 components (dll) added to it. One is called PhotoGallery and one is called...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
4
by: John Straumann | last post by:
Hello all: Most of my development for websites has been on test VPC images where VS is installed on the server image. I now have a setup where I have a test server joined to my domain, and a...
2
by: cmrchs | last post by:
Hello, I installed Visual Studio 2008 last week, created a web project and could run it. I had to deinstall it for some problems I had, installed it again, try to create a new web-project but...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.