How can I refresh one code without refreshing the hole site?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tsalexey544
Forum Commoner
Posts: 41
Joined: Thu Jun 22, 2006 11:19 am

How can I refresh one code without refreshing the hole site?

Post by tsalexey544 »

How can I refresh one code without refreshing the hole site?

and is it posible to create frames using php? and how to make tham in one size( so no one could move within the frames)?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

How can I refresh one code without refreshing the hole site?
Pardon me... one what?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Your question makes no sense but I'll stab a guess that you need AJAX.

Frames are HTML.... PHP doesn't care about them.... if you google on how to make frames you'll find a jungle of information out there ;) Look at IFrames too.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Also remember you don't necessarily need frames for AJAX to work.

You can use the attribute 'innerhtml' to populate a div, span, td, etc. with the response from the xmlhttprequest object.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Jenk wrote:Also remember you don't necessarily need frames for AJAX to work.

You can use the attribute 'innerhtml' to populate a div, span, td, etc. with the response from the xmlhttprequest object.
Agreed, if you're going to use AJAX you might as well use the DOM extensively.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Look in the tutorial sections... XMLHttp tutorial (who's online example) for one possible technique.
Post Reply