View Full Version : open/edit/update javascript file
scroots
12-04-2002, 08:02 PM
how can i open a javascript file which is in a directory on my website and have the contents shown in a text field where i can alter it and then click update and when i click update i would like the text in my text field to be written to the file so it replaces the original text.
anyone understand?
any ideas?
cheers
scroots
whammy
12-05-2002, 01:00 AM
http://www.w3schools.com/asp
Look for "FileSystemObject". :)
whammy
12-05-2002, 01:35 AM
Here's an example...
whammy
12-05-2002, 01:40 AM
FYI for anyone who is curious about Server.CreateObject vs. CreateObject...
http://www.4guysfromrolla.com/webtech/043099-1.shtml
P.S. Scroots, take special note of Server.HTMLEncode and where it's used in the script example I posted - it's your best friend. ;)
scroots
12-06-2002, 08:45 PM
thanks whammy i`ll check out thouse resources.
you sure do learn a lot from this place.
cheers
scroots
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.