I am looking for some java script to save a part of my HTML/PHP page.
ther are some things i have bin trying. but the most of it dont work for me.
This is a example of the code i have already.
[QUOTE]
<html>
<head>
<title>Save part of the page to file</title>
</head>
<body>
<div id=”text1″>
Part 1 of te text here
</div><br>
<div id=”text2″>
Part 2 of te text here
</div><br><br>
<button onClick=”Save();”>save part 1</button>
<script type=”text/javascript”>
function Save(){
document.execCommand(“SaveAs”)
}
</script>
</body>
</html>
It works just fine. but it saves the complete page and not only part 1 of my page.
i think i need the folowing code
[QUOTE]
document.getElementById(“text1”);
but i dont realy know how to get this function in, and i did not succeed to find the right code on the WWW.
It would be nice if somone could help me out. ?
//Potzet