This definately sounds like you are looking for Ajax. Have a look at http://www.xajaxproject.or
Hope this helps.
Main Topics
Browse All TopicsI have a javascript link as:
<A onclick="Home();" style="cursor:pointer; cursor:hand;">Home</a>
And I have html content on the Home.php
I would like to know if it is possible to have the html contents from Home.php to show in the MainText using innerhtml or something else?
ex: <td Id="MainText"> ::Html Show here on Home link click::</td>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This definately sounds like you are looking for Ajax. Have a look at http://www.xajaxproject.or
Hope this helps.
There's a technique called HIJAX that is the current buzzword for what you want.
http://www.cherny.com/webd
http://domscripting.com/bl
http://domscripting.com/pr
If you can hold tight (or if the docs above aren't making sense) I will try to do some hijaxing soon.
BTW, just to be safe, I would avoid spaces and upper cases in names and call that "maintext"
what you look gfor is something like
document.getElementById('m
if (document.getElementById)
{
document.getElementById("m
}
else if (document.all)
{
document.all["maintext"].i
}
Yes and no.
1 - You can populate the value for 'the text' when the php script runs on the server and prepares the charcaters that will be sent to the client (ie, the html code and the javascript). And then on the client/ browser, when the javascript will run, it will put where you want any text you have planned to.
2 - But the value cannot be evaluated by php (ie, on the server) if what you want is to stay on the client.
So:
- php runs on the server and creates the page that is THEN sent to the client
- javascript on the client using only the values already present on the client.
BUT:
- Ajax is in fact using javascript on the client to get values from the server (eg, in php), these values being transferred back to the client thru a "common area", in fact an xml file that is updated and read by both client and the server (provided, of course, that what is needed is in place)
Business Accounts
Answer for Membership
by: ryancysPosted on 2007-01-02 at 19:35:56ID: 18233065
You may try use Iframe?
ags/tag_if rame.asp
more info, please refer to:
http://www.w3schools.com/t