473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

load external html vs 2005

Hello,

I am trying to load an external HTML page into a DIV tag with .NET 05 and I
can't figure it out. Any suggestions?

My Scenario:
- Gridview populated with list of available files
- I can get the external page to load in a new window just fine
- I would like the detail to show on the same page, below the list.
- I can't use the detail control and dynamically create the page as these
pages are compiled and stored on the server for archive purposes.
Nov 30 '06 #1
2 1483
Hi .. Try with Ajax XMLHTTP Request Browser activeX object for filling
the HTML page into the div tag.
Example :
<script language="javascript" type="text/javascript">
var xmlHttp;
function Button1_onclick() {
if(window.ActiveXObject)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(Window.XmlHttpRequest)
{
xmlHttp=new XMLHttpRequest();
}
xmlHttp.open("GET","http://www.itoncorp.com",true);
xmlHttp.onreadystatechange=doUpdate;
xmlHttp.send();
}
function doUpdate()
{
var t= document.getElementById("divid");
if (xmlHttp.readyState==4) {
t.innerHTML=xmlHttp.responseText;
}
}
</Script>
The above script get the www.itoncorp.com html page using the ajax and
then fill this page into the div named "divid". Iw works good.
But the main desedvantage to use this method's is, it just replace the
InnerHTML with the itoncorp.com HTML page, But it does't get the fill
the images and other resources

U can use IFrames .. this also act's like a webBrowser.. May be it will
be sutable for get native view for the webpage u requested..

all the best ..

On Nov 30, 8:36 am, "Jeff Allan" <bookp...@community.nospamwrote:
Hello,

I am trying to load an external HTML page into a DIV tag with .NET 05 and I
can't figure it out. Any suggestions?

My Scenario:
- Gridview populated with list of available files
- I can get the external page to load in a new window just fine
- I would like the detail to show on the same page, below the list.
- I can't use the detail control and dynamically create the page as these
pages are compiled and stored on the server for archive purposes.
Nov 30 '06 #2
Hello Kodali,
Thanks for your response, I will give this a try!
Jeff

"Kodali Ranganadh" <ko*************@gmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi .. Try with Ajax XMLHTTP Request Browser activeX object for filling
the HTML page into the div tag.
Example :
<script language="javascript" type="text/javascript">
var xmlHttp;
function Button1_onclick() {
if(window.ActiveXObject)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(Window.XmlHttpRequest)
{
xmlHttp=new XMLHttpRequest();
}
xmlHttp.open("GET","http://www.itoncorp.com",true);
xmlHttp.onreadystatechange=doUpdate;
xmlHttp.send();
}
function doUpdate()
{
var t= document.getElementById("divid");
if (xmlHttp.readyState==4) {
t.innerHTML=xmlHttp.responseText;
}
}
</Script>
The above script get the www.itoncorp.com html page using the ajax and
then fill this page into the div named "divid". Iw works good.
But the main desedvantage to use this method's is, it just replace the
InnerHTML with the itoncorp.com HTML page, But it does't get the fill
the images and other resources

U can use IFrames .. this also act's like a webBrowser.. May be it will
be sutable for get native view for the webpage u requested..

all the best ..

On Nov 30, 8:36 am, "Jeff Allan" <bookp...@community.nospamwrote:
>Hello,

I am trying to load an external HTML page into a DIV tag with .NET 05 and
I
can't figure it out. Any suggestions?

My Scenario:
- Gridview populated with list of available files
- I can get the external page to load in a new window just fine
- I would like the detail to show on the same page, below the list.
- I can't use the detail control and dynamically create the page as these
pages are compiled and stored on the server for archive purposes.

Nov 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: blu4899 | last post by:
Hi, The Xerces XML parser is reading external DTD references in DOCTYPEs by default, but is not doing anything with them because validation is turned off by default. This is documented in...
2
by: Mark Anderson | last post by:
Problem in short: user is moving (clicking a link) from my page before some JS code is run (to write a cookie). The code does not run (in Body's onLoad event) until the page loads as there are a...
2
by: jay | last post by:
hi, Question on Load/import command. consider a sample table create table table_name ( col1 timestamp not null default current timestamp, col2 int, col3 int, col4 int, primary key(col1) );...
2
by: Eric Falsken | last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005: > craigkenisston@hotmail.com wrote on 19 Nov 2005: > >> I'm working in the migration of an asp.net application in 1.1 to 2.0. >> I'm new to...
6
by: sylcheung | last post by:
Hi, How can I be notified when the document load is complet in JavaScript? I am referring to the whold document load is complete, mean all images/external files/frame/iframes have been loaded. ...
5
by: amit | last post by:
Hello, the javascript I'm using is not embedded into HTML but included. When I looking at w3schools.com it uses examples with js embedded into html. Anyway, when I use: function load() {...
6
by: Brandon McCombs | last post by:
Hello, Yesterday I just started using Visual C# 2005 Express Edition and I'm trying to load external DLLs. I started out with trying to load just one like so: static extern void...
1
by: charlie imac | last post by:
I have a question on the capability of Ajax. My question is: Is it possible to dynamically load any of the javascript gallery programs such as: Adobe Spry Gallery SmoothGallery others I...
4
daJunkCollector
by: daJunkCollector | last post by:
I am using AJAX to dynamically load content into a <div> layer. As it stands, I am loading .html's into the <div> layer and it works awesome. The problem is that when I try to replace the .html...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.