Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-22-2005, 01:43 AM   PM User | #1
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Opening a File

This seems like it ought to be really simple but I can't find it anywhere. I just want to be able to open a simple text file and write its contents to the document. I would also like to pass the filename to a JavaScript function.

function DescriptionPopUp(FileName)
{
DescriptionWindow= window.open ("",
"DescriptionWindow","status=1,width=350,height=150");
DescriptionWindow.document.write('<html><head><title>Popup</title>');
DescriptionWindow.document.write('<link rel="stylesheet" type="text/css" href="../html/VolFormStyles.css" />');
DescriptionWindow.document.write('</head><body><P></BR></P>');

DescriptionWindow.document.write(>>contents of text file here<<);

DescriptionWidnow.documet.write('<P></BR></P><P></BR></P></BODY></HTML>');
}

Can anyone point me in the right direction?

Thanks.
cweaver is offline   Reply With Quote
Old 08-22-2005, 06:59 AM   PM User | #2
jscheuer1
Regular Coder

 
Join Date: Mar 2005
Location: SE PA USA
Posts: 373
Thanks: 0
Thanked 0 Times in 0 Posts
jscheuer1 is an unknown quantity at this point
http://www.codingforums.com/showthre...912#post178912
jscheuer1 is offline   Reply With Quote
Old 08-22-2005, 05:43 PM   PM User | #3
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Thanks!
cweaver is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:01 PM.


Advertisement
Log in to turn off these ads.