Code On Dreamweaver CSS, Maybe PHP is needed?

Jon H

New member
Hi, i am working on a new site just now and have just learned how to basically code a layout in xhtml and css, and sometimes add some php or java script that i have copied of the web.
But there has been something annoying me to do with css it is when you go to the next page the layout fully refreshes usually (unlike if u used an ifream) so was thinking is there like a php code or something that u add that makes your layout only refresh in the part of the layout it needs to ?

Thanks :D
 
I so wanted to just say "no." But that wouldn't be a reasonable response. Well, not in my opinion at least.
Whenever you go to a new webpage, the layout will be refreshed, unless, like you said, an iFrame was used. But unless it wasn't, you will have to deal with those unfortunate events. =D
BUT... yes a BUT, you can use AJAX/jQuery to synchronously load a new page without having to refresh the layout. For example, when you use VB's forum's shoutbox, when you submit the form, you don't actually have to reload the page. You can do something similar to that if you are TRUELY REALLY sick of having to wait .5-10seconds (depending on computer speed) to wait for the load of the page.
To learn AJAX, visit http://www.w3schools.com/ajax
To learn jQuery, which i recomment 100% over AJAX anyday, visit: http://www.jquery.com
Good Luck!
If you have any other questions, feel free to email me.
 
If you have certain parts of your pages that are repeated from page to page, you might be able to use them in a file that is imported via a server side include, assuming that those portions of the html code are contiguous. This way, the included file would only need to be downloaded once. See
http://webdesign.about.com/od/ssi/a/aa052002a.htm
for details.
 
Back
Top