Okay, I need to know if this is possible using ONLY javascript.
I have a form where I want a user to input announcement information into and then have the form's fields append to another html file (announcements.htm).
Right now I'm updating the site and I want her to handle all the announcements updates but she knows very html so I need a form for her to fill out that will load and append all the necessary info into the announcement page.
I just need help in knowing the syntax to open an existing file and append to it using only javascript.
This is some of the code that I want to use.
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<P class="block">';
str+='<a href="#top"><img border="0" src="images\/top.gif" width="38" height="14" style="float: right"><\/a>';
str+='<SPAN class=newsTitle><img border="0" src="images\/li.gif" width="18" height="12">';
str+='Credit Claims Connection July 2006<\/SPAN><SPAN class=newsDate>11 August 2006<\/span>';
str+='<span class=blue>Audience: Everyone';
str+='<img border="0" src="images\/new.gif" width="27" height="9"><\/span><br>';
str+='Keeping you plugged in to important information!<br><br>';
str+='<a target="_blank" href="docs\/test.doc">Newsletter...<\/a><\/P>';
document.write(str);
}
writeJS();
//-->
</script>
I have a form where I want a user to input announcement information into and then have the form's fields append to another html file (announcements.htm).
Right now I'm updating the site and I want her to handle all the announcements updates but she knows very html so I need a form for her to fill out that will load and append all the necessary info into the announcement page.
I just need help in knowing the syntax to open an existing file and append to it using only javascript.
This is some of the code that I want to use.
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<P class="block">';
str+='<a href="#top"><img border="0" src="images\/top.gif" width="38" height="14" style="float: right"><\/a>';
str+='<SPAN class=newsTitle><img border="0" src="images\/li.gif" width="18" height="12">';
str+='Credit Claims Connection July 2006<\/SPAN><SPAN class=newsDate>11 August 2006<\/span>';
str+='<span class=blue>Audience: Everyone';
str+='<img border="0" src="images\/new.gif" width="27" height="9"><\/span><br>';
str+='Keeping you plugged in to important information!<br><br>';
str+='<a target="_blank" href="docs\/test.doc">Newsletter...<\/a><\/P>';
document.write(str);
}
writeJS();
//-->
</script>