Current location: Hot Scripts Forums » General Web Coding » JavaScript » window on webpage


window on webpage

Reply
  #1 (permalink)  
Old 05-06-04, 09:12 AM
nick1 nick1 is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
window on webpage

Greetings,

this is what i want to implement:

1.) create a window on a web page that displays a message inside of it.

2.) have this window link to a text file that, when i update this text file, displays the contents of the text file in the window on the webpage.

HELP WANTED! =)

Thank you for your time,

*Nick*
Reply With Quote
  #2 (permalink)  
Old 05-06-04, 01:15 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
The easiest way to do that would be to make an IFrame and set it's src-value to the textfile's path. But you'd only get the contents of the file in the window, nothing else...
Reply With Quote
  #3 (permalink)  
Old 05-08-04, 11:00 PM
breeze76 breeze76 is offline
Newbie Coder
 
Join Date: May 2004
Location: New Orleans, La
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nick1
Greetings,

this is what i want to implement:

1.) create a window on a web page that displays a message inside of it.

2.) have this window link to a text file that, when i update this text file, displays the contents of the text file in the window on the webpage.

HELP WANTED! =)

Thank you for your time,

*Nick*
You can just use a Database connection and everytime you change the DB it will change in the window...

breeze76
Reply With Quote
  #4 (permalink)  
Old 05-09-04, 02:12 PM
TemplatesForAll TemplatesForAll is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Tucson, Arizona
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I did something similar once. I used this tutorial to make a css Iframe: http://www.beforethedog.com/tutoriali/tut1.htm
Then instead of content I put:
Code:
<script language="JavaScript" type="text/javascript" src="content.js"></script>
And in content.js:
Code:
document.write("Stuff Here<br />Stuff Here<br />Stuff Here<br />Stuff Here<br />Stuff Here<br />Stuff Here<br />Stuff Here<br />Stuff Here<br />");
__________________
-Scott
Templates For All - Free website templates.
FastBanner - Free PHP banner generator for your website.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
window on page that displays announcement nick1 HTML/XHTML/XML 1 05-09-04 11:02 AM
parsing links to new window mavoric PHP 2 03-31-04 12:52 PM
need help with viewing uploaded image on webpage? mikewooten PHP 0 03-16-04 07:39 PM
window size==text ramez JavaScript 0 12-23-03 05:08 PM
Popup window on the top of other windows Nia ASP 1 11-05-03 11:35 AM


All times are GMT -5. The time now is 02:16 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.