Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2008, 01:02 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 112
Thanks: 12
Thanked 0 Times in 0 Posts
Default Append to text file???

Hi to all...

I would some help on how i can append or open a new text file and write some text to a file.
then i will open the file and print it....

Thanking you advance

Rino


 
Old June 16th, 2008, 01:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

HTML can't do that. You're better off asking in the forum for the scripting language you want to use. You have a better chance to get an answer there. ;)
http://p2p.wrox.com/default.asp

--
http://yupapa.com
 
Old June 16th, 2008, 01:29 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 112
Thanks: 12
Thanked 0 Times in 0 Posts
Default

how can i more it to javascript section

 
Old June 16th, 2008, 02:21 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

JavaScript can't do it either, in general.

JavaScript, in the browser, could change a file on the client machine (that is, the machine where the HTML is being displayed). But ONLY if (a) your site is marked as "trusted" by the browser user and (b) if the browser user allows it, even so!

And remember, that file, on the same machine as the browser user, is not visible to your code on the server.

As for printing that file, again it will only get printed if the user allows it.

If you don't understand the differences between servers and clients, then that would be a place to start your learning process. If you do, then you need to define this task to us better, in terms of what is supposed to happen on the client and what on the server.

If this is supposed to be entirely client-side code, then I don't think that you should be using a browser, at all. You should be looking at "stand alone" programs, instead.





Similar Threads
Thread Thread Starter Forum Replies Last Post
append a xml node from one file to another pravind XSLT 5 August 22nd, 2009 09:15 AM
append in xml file rapraj XML 3 October 11th, 2007 02:58 AM
Append Information to a XML file YoungLuke C# 2 July 26th, 2007 02:15 PM
BACKUP file append Colonel Angus SQL Server 2000 0 June 17th, 2005 07:44 AM
APPEND TO ALREADY EXSISTING HTML OR ASP FILE? ALEX_GRIM Classic ASP Basics 11 February 2nd, 2005 05:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.