Click to See Complete Forum and Search --> : Click on link, Data will dynamically be updated on the same page..need suggestions
Wallykid
07-30-2003, 02:23 PM
I am trying to create a webpage, when we click on the a link, it will pull up maybe another html page, that shows static data into the bottom of the page(same page).
I know we can do frames, but in our case, we are using templetes, and i can't change anything thats on the templetes, but just the data space available. So if i don't use frames, what can i use? Any suggestions are appreciated.
You could use PHP to include the content in the desired space. Take a look at this example: http://www.infinitypages.com/research/divinclude.php
Wallykid
07-30-2003, 03:51 PM
Thanks for the reply, but i'm leaning towards more javascript solution. I have no knowledge of any other programming languages.
Javascript will not work for 13% of uses, so PHP is a far better alternative, but you can see how to do it with javascript at http://www.infinitypages.com/research/clientsidedivinclude.htm
Wallykid
07-31-2003, 01:59 PM
Your example for the javascript is a good one, however, will you explain to me how i can put the link of a html page to assign it to
document.getElementById("mydiv").innerHTML = "Page One Here";
Instead of "Page One Here", i would like to assign a URL, with contents that would like update on the same page.
Charles
07-31-2003, 02:01 PM
JavaScript cannot communicate with the outside world, thus foiling your attempt to make a JavaScript dependant site.
Javascript does not have file input/output capabilities, so you will not be able to do that...
PeOfEo
07-31-2003, 02:13 PM
Time to start considering a server side language.
Already recommended that one: http://forums.webdeveloper.com/showthread.php?s=&threadid=14319#post76009
PeOfEo
07-31-2003, 02:18 PM
You and your php, silly rabbit tricks are for kids :D I reccomend asp.net myself :)
ASP: Actively Support PHP :D
Charles
07-31-2003, 02:30 PM
But nothing beats Perl.
Wallykid
07-31-2003, 02:34 PM
Well, if updating that particular page will not work, how about doing a pop up window.
like
document.getElementById("mydiv").innerHTML = window.open("www.hotmail.com")
will that work?
is getElementById a property of document?
oh my god did i just started a war?