Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 23rd, 2003, 04:13 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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


Reply With Quote
  #2 (permalink)  
Old September 23rd, 2003, 10:35 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old November 1st, 2003, 07:22 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.