Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>write to an html file dynamically?

write to an html file dynamically?

anonsu
02-04-2005, 02:08 AM
hi,
I am a newbie to javascript....and I wanted to know whether it could be possible to do the following:

I have a jsp page with some javascript. The javascript gets some text data form user at run time. I want to know if it possible to create an html file (dynamically) such that the data received in the javscript will be added to the BODY tags of the html. This file does not need to displayed to the user right away it just needs to be created and saved on his PC. Also I am writing timestamps to the file (currently a text file) how I can make those timestamps look like links and provide links to different pages depending on the value of the timestamp.

This is urgent ...someone pls help!!
-AU.

_Aerospace_Eng_
02-04-2005, 03:35 AM
security issue here, u are not going to be able to save the file DIRECTLY to the users pc, u must get them to download the created file

jbot
02-04-2005, 10:16 AM
sounds like you're going about this the wrong way. why on earth do you need to create files on the users' machines?

anonsu
02-04-2005, 07:15 PM
Is it possible to create the file and save it onn a webserver form javascript?
Anyways that is not an imp issue...what I am relly concerned about is creating and html file dynamically and write the data that user enters into the BODY tag. Any solution/pointers?
thanks,
Au.

jbot
02-04-2005, 07:28 PM
you need to post the form data to a serverside language which then parses it into a DB or file, HTMl or otherwise.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

FireFox doesn't recognize history.go(-1)
Changing e.keyCode (e.which)
Clearing a range created by element.createTextRange()
UPDATE: My mouse over pop up question
I am having problem with this script!!!
Creating Handlers
"Login ID" pass over to subsequent pages visited
Checkbox to manipulate Form Field

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics