Jump to content

[SOLVED] How do I go about making a site without frames???


Andy-H

Recommended Posts

I am making a text based game and have been advised(in HTML help) not to use frames, I have only ever made a website with frames before and was wondering how to go about this. I already know I will have a header file with the banner and menu then program the main page before requiring a footer.

 

Is the best way to go about this to make a page-sized table dividing the page into banner, menu, main page and footer between the require files or does anyone know of a better/more efficient way?

 

Thank you for any replies.

Link to comment
Share on other sites

LOL - I almost forgot about non-iframes.

 

Some people like to break it into header, footer and menu - I like to make a central index page and load in the content based on the request url. My way I can make 100% sure the auth gets called, %100 sure the files are protected from direct access, and I never have to use header('location:');

Link to comment
Share on other sites

By that do you mean make the basic page layout in tables, then have a central index like:

 

<?php

 

$page = htmlspecialchars($_GET['page']);

 

if ($page == "Online"){

require("online.php");

}elseif ($page == "Kill"){

require("kill.php");

}etc{

 

}

?>

???

Link to comment
Share on other sites

Since you are talking about making a game and needing to simulate the effect of frames by an action taken in one area sending an action to the server and requesting a response, you will want to look at making your game use AJAX for the updates. It really sounds more complex than it is, but you need to come up with your basic CSS layout and define a structure of where your responses will be updated.

 

You will need a fairly solid understanding of JavaScript and a concept of HTTP requests to get a good handle on this technique.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.