Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
content without a scrollbar
Old 06-04-2006, 02:02 AM content without a scrollbar
Skilled Talker

Posts: 94
Trades: 0
hey i was wondering how do you make only the content change when you click a link, so the page doesnt reload or anything, but only the content changes, and not have it in a frame with a scrollbar.

a friend said use php include? but i have no idea how to do that. so if anyone could help that be great.

i have tryed <? included ('home.php') ?> and the file is in the same folder etc and still nothing, nothing shows up even when i try link it it doesnt work, i have tryed over 30 php sites and i still cant do it, so im hoping someone here can help.

Last edited by 0beron; 06-04-2006 at 08:45 AM..
hellhound121 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2006, 08:01 AM Re: problem, not totally CSS
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
A PHP include will be included at the server, so you will have to reload the page for any changes to take effect.

If you want to do it without re-loading, you'll either have to use an iframe or AJAX. AJAX is Asynchronous Javascript And Xml, and basically uses javascript to create an XMLHTTP object to make a call to the server to get the data behind the scenes, and update the page.

Stick AJAX into Google to learn more.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 06-04-2006, 09:30 AM Re: content without a scrollbar
Skilled Talker

Posts: 94
Trades: 0
no it must be reload the hole page then, as i want it in php include
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 06-04-2006, 02:52 PM Re: content without a scrollbar
Average Talker

Posts: 18
Name: Phil
Location: Scotland
Trades: 0
there were good tuts for that on techtuts.com but the site broke lol.. i was gonna make a tut for it but there wasnt really any demand
Bozebo is offline
Reply With Quote
View Public Profile Visit Bozebo's homepage!
 
Old 06-04-2006, 02:57 PM Re: content without a scrollbar
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It can be done with a Javascript, although the scrollbar will depend on how much content you have.

Something like this.
Code:
<div id="changing_div">
Some content.
</div>
 
...
 
<script type="text/javascript">
<!--
document.getElementById("changing_div").innerHTML = "Some other content."
-->
</script>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-05-2006, 08:17 PM Re: content without a scrollbar
Skilled Talker

Posts: 94
Trades: 0
i want it in php, and every tut i have tryed it just doesnt work :S i have no idea.
hellhound121 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to content without a scrollbar
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.20133 seconds with 12 queries