General question regarding a webpage

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

General question regarding a webpage

Post by minds_gifts »

Hello,

I've idea about PHP and mysql to some extent.I would like to make it myself clear with HTML and then proceed further.Here is the question.

I want to divide the page into 3 parts.On the left side, I'll put up the navigation.The middle one is the area where I show when I click on the navigation panel.On the right side, I show some images.

STRICTLY I DONT WANT TO USE FRAMES.

For example:

On the navigation I have a link for books.When I click on books, I would like to show in the middle the list of books under two types: Technology and Programming.
Now I click on a book title, some information about the book is shown.Is that Possible when I click on a book title only the middle part is changed and the left and right panels remain un-changed.
I would be glad if somebody can explain me if there is a way.

Many thanks
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

without frames, you can use imbedded tables. When you click on a link in the left panel, just use PHP to dynamically change the data in the center panel. This will require either page reloads or storing all the data in a list/array. How you go about it is up to you. Example table stuff is below

Code: Select all

<table width="600" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200">
      <table width="100%">
        Content goes here
      </table>
    </td>
    <td width="200">
      <table width="100%">
        Content goes here
      </table>
    </td>
    <td width="200">
      <table width="100%">
        Content goes here
      </table>
    </td>
  </tr>
</table>
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

Post by minds_gifts »

Thanks daven.

When i click on a link which i show on the centre page, only the centre page has to be re-loaded and the left and right panels should not be re-loaded.Is it possible??

Many thanks
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

minds_gifts wrote:only the centre page has to be re-loaded and the left and right panels should not be re-loaded.Is it possible??
Only with frames or as daven said by storing all the information for all the pages in clientside arrays (which could mean a massive load time for the page initially).

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

it is possible with IE. Take a look at the tree on the left side of http://msdn.microsoft.com/library/default.asp
The first time a tree element expands the (childrens's) content is loaded via XMLDocument.load(...), formated via XSLT and inserted into the list.
Only works with windows/IE
Post Reply