|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
load external html vs 2005Hello,
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. 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 .. Show quoteHide quote On Nov 30, 8:36 am, "Jeff Allan" <bookp...@community.nospam> wrote: > 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. Hello Kodali,
Thanks for your response, I will give this a try! Jeff Show quoteHide quote "Kodali Ranganadh" <kodalirangan***@gmail.com> wrote in message news:1164870692.373367.119680@14g2000cws.googlegroups.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.nospam> wrote: >> 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. >
VB vs. C# language challenge question
Full Screen connect vb app to sql 2005 express Dropping folder on desk top icon how to make cookies into an array? edit text in file using streamreader and string.replace Can't Figure Out why this array is out of bounds now! Delete Selected Lines from Text File loading treeview dynamically is very slow Add a META line to an existing HTML doc programmatically |
|||||||||||||||||||||||