Reply LinkBack (4) Thread Tools Search this Thread
Old 05-02-2004, 08:25   #21 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
So Oli, it isn't so much about using a static page and reloading only a portion of that page (ŕ la iframes), but more about wanting to reduce the amount of code needed to produce multiple pages. Is that right?

If you don't mind reloading the page then SB's earlier method using passed variables is by far the most effective and efficient solution.
  Reply With Quote
Old 05-02-2004, 08:28   #22 (permalink)
oli
Low flying star™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.™
Posts: 10,007
Send a message via ICQ to oli Send a message via AIM to oli Send a message via Yahoo to oli
no, I want to avoid reloading the page - ala iframes
__________________
Linked In :: Last.fm :: Twitter me
..................
  Reply With Quote
Old 05-02-2004, 08:37   #23 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,875
ffs oli i will send you the files.
  Reply With Quote
Old 05-02-2004, 08:39   #24 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
Then you're stuck with js or iframes then. Afaik, there is no other way to do it dynamically post-runtime within a single page.
  Reply With Quote
Old 05-02-2004, 08:42   #25 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,875
if you use this method you pass variables for the pages via the index page. Only the include section reloads. Nothing else.

I am working on an artists gallery site using this very simple method at the moment.

LINK
ie <a href="index.php?doc=image1">Image/Job 1</a>

CODE in Index

<?php

//Test to see if there is any URL variable?

if(isset($HTTP_GET_VARS['doc']))
{
//If so then set $doc with the URL.variable
$doc = $HTTP_GET_VARS['doc'];
//The switch statement begins here
switch($doc)
{
case "image1":

include("dsp_image1.php");

break;

case "image2":

include("dsp_image2.php");

break;

default:

break;

}}

else
include("**Start Page**");

?>

For what you want this is simple.
  Reply With Quote
Old 05-02-2004, 08:47   #26 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
It doesn't matter but doesn't the index page reloads when you click the link?
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 05-02-2004, 08:52   #27 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
Presumably it has to in order to run through the php if condition/checker and load the new variable from the link url.
  Reply With Quote
Old 05-02-2004, 08:53   #28 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,875
nope cos the index aint loading just the include - its called fusebox methodology and it works with PHP versions: 4.06, 4.1.x, 4.2.x, 4.3.x and up

use it for everything and it works fine.

trust me.
  Reply With Quote
Old 05-02-2004, 08:56   #29 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
It sounds quite a bit beyond me at the mo, but I'd be interested to see that in action.
  Reply With Quote
Old 05-02-2004, 08:58   #30 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
hmmm...I'll have a read.

But...(and I got to go out now)...surely when you click a link to index.php, index.php gets loaded/reloaded???
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 05-02-2004, 09:00   #31 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,572
Could have knocked up a page for each in the 3 hours you lot have been fussing.

Women, eh?

  Reply With Quote
Old 05-02-2004, 09:03   #32 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
So could Oli, but he's buried under a pile of self-designed calendars.
  Reply With Quote
Old 05-02-2004, 09:14   #33 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,875
why dont you buy one.
  Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.designerstalk.com/forums/web-design/2547-loading-images-into-page.html
Posted By For Type Date
American Car Insurance - american gieco insurance, american dash This thread Refback 30-06-2007 13:14
Online Car Insurance - insurance car, insurance car geico This thread Refback 25-06-2007 18:22
New Car Insurance - new car lloyds, insurance marcos This thread Refback 21-06-2007 12:20
Debt Consolidation Loan - loan home debt, loan debt maryland This thread Refback 20-06-2007 08:28

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8