473,671 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1476
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.goo gle.com...
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
2394
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 here http://www.pbrown.com/research/test1.php to see the formatting issues Formatting Issues
0
1783
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 contents. I've already created a screen whereby the person can create new content with a PHP program that inserts into a MySQL table. But, I'm having a little trouble in creating the edit/update functionality. Can somebody help me out? Thanks. ...
3
2430
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 markup. Our view is: Not users have to align to XML, but XML has to align to users. X2U allows users tp fill out simple web forms, which are automatically derived from XML models. The XML model provides the XML structure and an interface...
1
1522
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 it's not strictly requested by users. It is my first datagrid editing in HTML+JS so I need to plan a common implementation strategy for all datagrids in my app.
3
13958
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 field in the subform default its value so that the next record created uses the value from the box on the main form. So far so good - works fine. What I also need to do at the same time is change all *existing* records on the subform to that same...
2
7745
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 editing/updating code with the debug.print to keep it simple. Function EditTableDescriptions() On Error GoTo Err_EditTableDescriptions Dim db As DAO.Database Dim tbl As DAO.TableDef
2
1732
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 when I'm editing a new record, but disabled when editable an existing record. Any ideas Mark
3
1788
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
3916
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
4039
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 iframe. CODE ===== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US"
0
8485
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
8930
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...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8605
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
8677
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4227
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
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.