Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2003, 04:13 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying html link in a cell

I would like to display contents of a html/text page
on some area/cell of my webpage without use of frame or Iframe.
How can I do that?
Appreciate your help.

Shyam


 
Old September 23rd, 2003, 10:35 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

In IE for text files you can use the default donwload behavior which loads a text file into a string. You can set the innerHTML or innerText of a div element to the contents of this string.
Search MSDN for details of default behaviors.
For HTML pages you can use the msxml2.xmlhttp class to open a connection to a server and retrieve the contents of a file again setting the innerText of an element to its value. The details are in the help files for msxml core services.
I think there is a similar technique for Mozilla.

--

Joe
 
Old November 1st, 2003, 07:22 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Joe. I was able to display a static webpage.
But when I tried to display results of database search it did not work. Is that possible? pls explain in the simplest possible way as I am a beginner. shyam






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying last 8 characters in a cell scandalous Excel VBA 1 December 21st, 2007 11:04 PM
Taking the HTML and Displaying it in iFrame NomadMan Javascript How-To 1 August 17th, 2007 12:16 AM
HTML link and gridview olisav ASP.NET 2.0 Basics 2 May 14th, 2007 03:27 PM
displaying html in a .aspx webpage badgolfer ASP.NET 1.0 and 1.1 Basics 0 February 22nd, 2005 10:50 AM
html link alitoday HTML Code Clinic 2 July 14th, 2004 01:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.