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!
6 1698 Dormilich 8,658
Recognized Expert Moderator Expert
I’m not sure this is a good idea. I’d rather have the convenience of a solid IDE.
I'm sorry, what would be a "solid IDE"? I don't know what does IDE mean. Thanks again sir.
Dormilich 8,658
Recognized Expert Moderator Expert
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.
acoder 16,027
Recognized Expert Moderator MVP
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).
"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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 error (seems to be happening when I try
creating a directory)
If dirmgr.Exists("s:\blah\" & txt_name.Text) Then
lblerror.Text = lblerror.Text &...
|
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 www.sub.mydomain.com using host header
in IIS.
|
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 to create it in the Default We Site mapped to
C:\Inetpub\wwwroot
Can anybody guide me how to do that ?
|
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 ) cannot
be found. The local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer.
...
|
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 class.
What am I missing?
Code, Error and Stack info are as follows:
Code:
Dim xlApp As Microsoft.Office.Interop.Excel.Application
| |
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 Photo. Any suggestions on how to
solve this? i can't do much at the moment.
Server Error in '/PhotoGallery' Application....
|
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 Photo. Any suggestions on how to
solve this? i can't do much at the moment.
Server Error in '/PhotoGallery' Application....
|
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 show - text boxes, input boxes, buttons,
hyperlinks ie the usual.
The data is not obtained directly from a database.
|
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 development PC also joined to the domain. On the
server I created a new website on port 99 called "dev", and then on the
development PC I tried to...
|
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 now VS2008 comes up with the message
"unable to create website... you must install IIS, ASP.NET, ..."
I check in Control Panel\Installed programs...
|
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...
| |
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...
|
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |