L
llama.named.sue
hey,
Can someone please tell me is it possible to append to a text file
using javascript?I've read that you can and that you can't and I'm
lost now!I heard you can get around it by using xml?I need to read in
information from a prompt box and append it to an existing text file
which is currently called helloworld.txt. any ideas on what is the
most appropriate way to do this?Any help is appreciated.
thanks!
<img onclick="showCoords(event)" src="http://www.tuam-guide.com/
images/galway-city-map.gif" alt="Galway Map" />
<script type="text/javascript">
var destination
var coords = new Array(4)
var email
function showCoords(event){
if (destination==0) {
coords[2] = event.clientX
coords[3] = event.clientY
destination=1
if(confirm("would you like to view matches?"))
{
email = prompt("Please enter your email address","")
}
else
{
alert("Thank you for visiting")
}
}
else {
coords[0] = event.clientX
coords[1] = event.clientY
destination=0
alert("Click on destination.")
}
}
</script>
Can someone please tell me is it possible to append to a text file
using javascript?I've read that you can and that you can't and I'm
lost now!I heard you can get around it by using xml?I need to read in
information from a prompt box and append it to an existing text file
which is currently called helloworld.txt. any ideas on what is the
most appropriate way to do this?Any help is appreciated.
thanks!
<img onclick="showCoords(event)" src="http://www.tuam-guide.com/
images/galway-city-map.gif" alt="Galway Map" />
<script type="text/javascript">
var destination
var coords = new Array(4)
var email
function showCoords(event){
if (destination==0) {
coords[2] = event.clientX
coords[3] = event.clientY
destination=1
if(confirm("would you like to view matches?"))
{
email = prompt("Please enter your email address","")
}
else
{
alert("Thank you for visiting")
}
}
else {
coords[0] = event.clientX
coords[1] = event.clientY
destination=0
alert("Click on destination.")
}
}
</script>