Solved

Load HTML into <DIV>

Posted on 2000-04-03
13
245 Views
Last Modified: 2006-11-17
I know it's possible to load the contents of a HTML file into a DIV; it's just.... how again? :-)

PS: I know the <layer src=""> tag in NS, I am worrying about the IE code.
0
Comment
Question by:nrico
  • 8
  • 2
  • 2
  • +1
13 Comments
 
LVL 1

Expert Comment

by:ManoloMA
ID: 2679464
Try with an include statement:

<!-- #include file="prueba.htm"-->
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 2679467
use this server side javascript:
<script language=javascript runat=server>
<!--
  var fso, f;
  fso = new ActiveXObject("Scripting.FileSystemObject");
  f = fso.OpenTextFile("c:\\myfile.html", 1);
  document.write(f.ReadAll());
//-->
</script>
0
 
LVL 1

Author Comment

by:nrico
ID: 2679481
I want to do it dynamically.
So I have the same div always, but load it with different contents on user demand.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 1

Expert Comment

by:ManoloMA
ID: 2679490
You can use in IE an IFRAME, tyou can chage the src of the IFRAME dynamically, the problem is that NS don't accept IFRAMES
0
 
LVL 1

Author Comment

by:nrico
ID: 2679498
I want to do it dynamically.
So I have the same div always, but load it with different contents on user demand.
0
 
LVL 1

Author Comment

by:nrico
ID: 2679513
Sorry for that post.
----------------------------------
Yes I know about the IFRAME, but an IFRAME cannot be transparent and "floating divs" won't float over a frame edge.
So that's *definately* not what I need.
0
 
LVL 1

Author Comment

by:nrico
ID: 2679520
Sorry for that post.
----------------------------------
Yes I know about the IFRAME, but an IFRAME cannot be transparent and "floating divs" won't float over a frame edge.
So that's *definately* not what I need.
0
 
LVL 1

Author Comment

by:nrico
ID: 2679528
Sorry for that post.
----------------------------------
Yes I know about the IFRAME, but an IFRAME cannot be transparent and "floating divs" won't float over a frame edge.
So that's *definately* not what I need.
0
 
LVL 1

Author Comment

by:nrico
ID: 2679540
Sorry for that post.
----------------------------------
Yes I know about the IFRAME, but an IFRAME cannot be transparent and "floating divs" won't float over a frame edge.
So that's *definately* not what I need.
0
 
LVL 1

Author Comment

by:nrico
ID: 2679547
Wow! My browser is a little @#$#^$$!!ed up it seems!
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 100 total points
ID: 2679566
However use an IFRAME to get the data:

<iframe width=1 height=1 name=myIframe onLoad="document.all.myDiv.innerHTML=this.document.body.innerHTML"></iframe>
<div id=myDiv></div>


Data MUST come from the same server!

Michel
0
 
LVL 1

Author Comment

by:nrico
ID: 2684069
I figured that out myself by now, but I'm gonna give you the points anyway :-).
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2685101
Thanks - decent of you ;-)

Michel
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question