473,395 Members | 1,457 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,395 software developers and data experts.

best way to load new page into a table?

8
Hi All,
say i have a table like so

<table>
<tr>
<td>header.jpg</td>
<tr>
<td>><div id="myDiv"> text window </div></td>
<tr>
<td>footer.jpg</td>

with 2 links at the bottom of the page
NEWS
CONTACT

I would like to know what would be the best way to construct is so, when the user clicks on either 'news' or 'contact' , the relating file [news.htm or contact.htm] is opened & displayed in that <TD> text window ?.

i have been told to use the following function:

function changeText(newText){
document.getElementById("test").in* nerHTML=]newText
}

<a href="#" onClick=document.getElementById("m* yDiv").innerHTML="news.htm"> NEWS </a>



however , this function expects a string of text.
What i'd prefer is a function that will open the .html file , & display its contents

Would anyone have some advice on this ?.
Thanks
Oct 21 '06 #1
3 4972
Wolff
5
The best way I've found is using what are called inline frames, or iFrames.
I'm by no means an expert on the subject, but here's the tutorial I learned from.

http://www.yourhtmlsource.com/frames/inlineframes.html
Oct 21 '06 #2
Napalm
8
The best way I've found is using what are called inline frames, or iFrames.
I'm by no means an expert on the subject, but here's the tutorial I learned from.

http://www.yourhtmlsource.com/frames/inlineframes.html
Thanks Wollf,
however , i have already built my site around a table & would like to use JS to implement a files text into a cell.

Thanks though , i've had a flick through that tutorial.
napalm
Oct 21 '06 #3
Napalm
8
Sorry Wollf
after reading a bit more into it [new to it myself] thats exactly what i needed

it shows i didnt know what i was talking about haha
Thanks
napalm
Oct 21 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
8
by: darrel | last post by:
I'm still trying to fully understand how best to pass variables between pages/usercontrols/each other. On a current site I've done, I've had one userControl do the logic and set the variable,...
0
by: Kapil Shah via DotNetMonster.com | last post by:
Hello everybody, I am trying to create a web application to generate Crystal Report with Parameters. However I noticed that ReportDocument.Load is used twice when the parameter page is loaded for...
6
by: aron t | last post by:
Hi, I am good php programmer and want to learn asp.net. Can someone tell me what are the best and the worst features of ASP.NET? thanks
5
by: Konstantin Andreev | last post by:
Recently I became interested, - Are the data, bulk loaded in the table with LOAD utility, consume the same disk space as loaded with IMPORT utility? The answer turned out to be NOT ! Here is a...
5
by: Edward | last post by:
I've been running into issue after issue trying to position text with pure CSS (ie 3-pixel bug, margin bugs, inexplainable side-effects, etc.). I noted that I can just put an HTML table anywhere I...
7
by: Steve | last post by:
I am building an object library for tables in a database. What is the best practice for creating objects like this? For example, say I have the following tables in my database: User: - Id -...
7
by: amishguy | last post by:
Hello, I am having an issue with a site I'm creating right now. I have had this issue before and I would like to figure out what the solution is instead of using workarounds as I have in the...
4
by: trullock | last post by:
Hi, Can anyone suggest the best way to go about the following... I'm tracking clicks (mouse down x,y coordinates) on a web page by using some javascript to create an XHR which sends the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.