/    Sign up×
Community /Pin to ProfileBookmark

Help with adding data to file!

I was thinking of creating a blog for myself, so far i have made this function which is work with two textfeilds in my index file.

[CODE]function UpdateBlog(Title,Main) {
var tmp = this.document;
if (Title == “” || Main == “”) window.alert(“One of the feilds is empty.”); else
tmp.write(‘<html><head><link rel=”stylesheet” type=”text/css” href=”style.css”></head><center><body><div id=”Title”><center><b>’+Title+'</b></center></div><div id=”Main”>’+Main+'</div></body></center><br/><br/></html>’);
tmp.close();
}[/CODE]

As you know the “this.document.write()” just overwrites temporary to the current document, but what i want is to have a blog.html where the data that i write just adds on a BlogUpdate everytime i submit permanent.

I have searched google for like 5 hours and tested my own tequnices out, but i am out of ideas. Please respond if you know the solution.
//HaxxBlaster

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayOct 17.2006 — Can't be done with javascript. Look at either ASP/ASP.Net or PHP (or any other server side language you may have).
Copy linkTweet thisAlerts:
@HaxxBlasterauthorOct 17.2006 — Ok, thanks. I don't know ASP or PHP. But i guess i have to learn.
×

Success!

Help @HaxxBlaster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...