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

editing existing html-file using js

hi

i've created a html-file containing a frameset. the document in one
frame enables the user to change the content of the other frames. but
i want to modify the current html-files in the frame instead of
loading another html-file.

so, is it possible to change the content of a html-file on the disk?
or create a new html-file, write the code inside and delete another
html-file?

i'm pretty new to this javascript-world and therefor not verry
sofisticated. i hope you understand want i want to say. not only my
javascript-knowledge is verry poor, but also my english...

any help will be greatly appreciated!

george, zurich
Jul 23 '05 #1
2 1466
Georg Andersson wrote:
is it possible to change the content of a html-file on the disk?
or create a new html-file, write the code inside and delete another
html-file?

<snip>

What exactly do you want to change on your page? Do any of these FAQs
accomplish what you want? Can you post your page url?

http://developer.irt.org/script/dhtml.htm

FAQ 1370 What are innerText, outerText, innerHTML and outerHTML?
FAQ 148 How do I change selected parts of the text on the page?
FAQ 149 How do I change selected parts of the HTML on the page?
FAQ 779 Does navigator have a comparable innerHTML property?
FAQ 405 How can I load a page within a page when a button is pushed?
FAQ 666 Is there a way of 'dynamically' changing the content of a
normal text paragraph in a page on an event?

Mike
Jul 23 '05 #2
Hi George

You cannot change anything permanently on the servers harddisk using
javascript. Javascript cannot write any files or change files on the server.
You need a serverside programming method like ASP, ASP.NET, PHP or the like.

Javascript can only read files and change the way they are displayed.

Kind regards - Jakob
"Georg Andersson" <ge*************@swisstopo.ch> skrev i en meddelelse
news:83**************************@posting.google.c om...
hi

i've created a html-file containing a frameset. the document in one
frame enables the user to change the content of the other frames. but
i want to modify the current html-files in the frame instead of
loading another html-file.

so, is it possible to change the content of a html-file on the disk?
or create a new html-file, write the code inside and delete another
html-file?

i'm pretty new to this javascript-world and therefor not verry
sofisticated. i hope you understand want i want to say. not only my
javascript-knowledge is verry poor, but also my english...

any help will be greatly appreciated!

george, zurich

Jul 23 '05 #3

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

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
0
by: Bob Kaku | last post by:
I'm trying to create a text editing and updating capability to help someone who wants to maintain content on a web page without having to know any HTML or use a web authoring tool and FTP'ng the...
3
by: Dirk Rudolf | last post by:
I like to announce you the product X2U, avaible under http://www.lumrix.net/x2. X2U is an acronym for "XML to user". Existing XML editors still ignore the fact that users don't want to read XML...
1
by: Ux | last post by:
ServerSide: PHP+MySql ClientSide: JS (IE5+, Moz1.7) I need to edit an HTML table that contains records from a table in MySQL. A MsAccess datagrid or similar behaviour should be the best, but...
3
by: Anthony Kroes | last post by:
I have a subform on a form and they are not linked. On the main form is a text box where the user types in a number. When that number changes, I have some code to make the corresponding text...
2
by: Dennis Ruppert | last post by:
I created a routine to read and edit the description properties of tables, (the one you see in the database window). It works just fine. This is the basic code behind it, I substituted all my...
2
by: Mark Perona | last post by:
I created an ASP.net form with an editable datagrid on it. I can create new records, and update and delete existing records. The problem I have is that I want a field in the grid to be editible...
3
by: Tina | last post by:
Does anyone know of an asp.net general purpose table editing tool that will allow users to add modify and delete data? Thanks, T
51
by: someone | last post by:
I was just wondering if there is any way of editing anything already printed on the screen with out using the system("cls") command.
9
by: pvsundarram | last post by:
hey, i am trying to cancel the keydown event for certain keycodes( for eg:- enter key ).But the cancelling of this event is not happening in firefox. Is there any way to cancel the event in the...
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: 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
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...
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.