View Full Version : Frames or Without
I need a little clarification. Right now I understand that the main difference between setting up a site with frames or without is that if it is without, then each time a page is loaded into the target frame, the script will not need to be reloaded (reread?) which makes using a frames setup quicker for the broswer. Am I right? If so what does it mean on the example page that for Ex9 "All code in linked .js file" How does linking it help?
Externally linking the code for the menus allows you to change one file and have the changes show on every page without having to update each page.
function Mike(name, mail) {
*****this.name = "Xanth";
*****this.mail = [url:enfcqsf35a]belgedin@earthlink.net[/url:enfcqsf35a];
*****return this;
}
Ok, That sounds like it would make life a litle easier, but what about the time loading issue, with frames it would be a whole lot fsster because without them you'd be loading the entire menu setup each time you click a link, right?
Actually unless I'm mistaken the browser should cache the code so that it will only really have to be Downloaded once. Much like when you have the same image on two different it only loads once.
function Mike(name, mail) {
*****this.name = "Xanth";
*****this.mail = [url:qe79rnvoni]belgedin@earthlink.net[/url:qe79rnvoni];
*****return this;
}
My design will be resting on the "Actually unless I'm mistaken" part of what you wote. Anyone know for sure?
Unless there is some code that tells the browser not to cache, it should remember. I have not had a problem doing my sites that way, it always seems to cache everything.
I think you will be safe. :)
ShAnE
Yup I was pretty sure I think sometimes you get problems when the js file isn't in the same directory but I may be thinking of something else.
function Mike(name, mail) {
*****this.name = "Xanth";
*****this.mail = [url:u2n2afp64d]belgedin@earthlink.net[/url:u2n2afp64d];
*****return this;
}
I *think* I have taken care of that problem with the links in this version.
I am using that on this site and all the links seem to work :)
-Thomas Brattli-
http://www.bratta.com/
http://www.dhtmlcentral.com/
Ahh yes I do remember you saying something about making a fix for that? Anyways yeah DHTMLCentrals menus work fine for me.
function Mike(name, mail) {
*****this.name = "Xanth";
*****this.mail = [url:guumlzet6p]belgedin@earthlink.net[/url:guumlzet6p];
*****return this;
}
vBulletin® v3.6.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.