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


window on webpage

Reply
  #1 (permalink)  
Old 05-06-04, 09:13 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-15-04, 10:39 PM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
ur gonn need php or asp for the text file idea but for the window in the window an example is at:

http://codelifter.com/main/javascrip...ablelayer.html
__________________
henerz
Reply With Quote
  #3 (permalink)  
Old 05-16-04, 08:33 PM
Lost Lost is offline
Wannabe Coder
 
Join Date: Mar 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Simple enough:

Code:
<iframe src="somefilename.txt" width="400" height="200"></iframe>
Reply With Quote
  #4 (permalink)  
Old 05-16-04, 10:18 PM
MadCoder MadCoder is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Your REAL options...

As for the "EASY" suggestions giving earlier...

Code:
<iframe src="somefilename.txt" width="400" height="200"></iframe>
this would be a very poor solution. The IFRAME tag is being dropped by the W3C very soon and the only supporting browser will be IE and that's questionable at this point.

1. [bold]PHP [/bold]
This is a very simple solution to accomplish this task. Simply insert
the following code in to a webpage.php file. Example...

PHP Code:

     <?php

      
//  If file is located within same directory use 
      //  include ("./file.txt");

      //  Otherwise... 
          
include ("/pathtofile/file.txt");
     
?>

2. [bold]Use SSI[/bold]
If your webhost supports SSI (Server Side Includes) you can
simply use the following line to insert a global text file...
Code:
     <!--#include virtual="text.file" -->
Most webhost require you to rename any file or weebpage that
contains a SSI tag to a file extension of ".shtml". A way around
this is to open the .HTACCESS file within your account's public
web directory and add the following to a new line within the file...

Code:
     # Run SSI on all files with these extenstions
     AddType text/x-server-parsed-html .html .htm
Once you've added and configured your htaccess file to your
preferences you can then add the SSI tag (above) to any file with
with the extensions you configured.


Hope that helped!!
Reply With Quote
  #5 (permalink)  
Old 05-16-04, 11:30 PM
KingSky's Avatar
KingSky KingSky is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
The IFRAME tag is being dropped by the W3C very soon and the only supporting browser will be IE and that's questionable at this point.
Just curious if you have any evidence to support this?

The W3C supports the IFRAME tag in both their HTML and XHTML specifications. Not only that but besides IE, the newest versions of Mozilla, Firefox, AND Opera all support IFRAME. I seriously doubt that it is going to be dropped, at least anytime soon.
Reply With Quote
  #6 (permalink)  
Old 05-17-04, 01:59 AM
MadCoder MadCoder is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
W3c

Just read the W3C new HTML / XHTML specifications of the up and coming revision.

Plus there was a big article in a recent sitepoint newsletter regarding this subject and other updates and exclusions to the W3C standard.

As for Opera, yes Opera does currently support IFRAME tags, but they have stated that they will update the browsers engine to be 100% compliant to the standard, quoting... "WE'LL REMOVE ANY OUTDATED TAGS DEFINED BY W3C" and this would include the IFRAME tag.

When I have a few minutes I'll locate the links to the sources I'm refering to.

Last edited by MadCoder; 05-17-04 at 02:09 AM.
Reply With Quote
  #7 (permalink)  
Old 05-17-04, 03:25 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
bugga

i hope they dont cause allthoguh iframes have serious down falls they can still be usefull
__________________
henerz
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
rsizing window ramez JavaScript 3 05-17-04 02:12 AM
window on webpage nick1 JavaScript 3 05-09-04 02:12 PM
window on page that displays announcement nick1 HTML/XHTML/XML 1 05-09-04 11:02 AM
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


All times are GMT -5. The time now is 04:50 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.