For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2008 > Loading a division problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Loading a division problem
richard

2008-01-03, 7:00 pm

http://oldies.littleworldofours.com/home.html

I was thinking that I might be able to work on a simple script perhaps
with "select case" so that I could load the center division when a
link is clicked on.

Would that be feasible? Any examples out there?
richard

2008-01-05, 7:00 pm

On Sat, 05 Jan 2008 14:11:39 +0100, Olaf Schinkel
<blablabla@bluxxxxxxxx.de> wrote:

>richard schrieb:
>Two ways.
>First:
>Reloading the page
>Second:
>Javascript
>
>To First:
>Every link looks like that:
>index.php?item={number of id in database}
>then fill the DIV in the middle with the result of the database content.
>
>To second:
>a) You load all possible pages in JS Arrays an the item has an ONCLICK
>handler.
>This handler changes the content of the DIV
>b) You make an XHTMLREQUEST (ajax) and request the data and than change
>the content of the DIV.
>
>
>Olaf


Ok got a website that would show the scripts?
Olaf Schinkel

2008-01-06, 7:59 am

richard schrieb:
> On Sat, 05 Jan 2008 14:11:39 +0100, Olaf Schinkel
> <blablabla@bluxxxxxxxx.de> wrote:
>
>
> Ok got a website that would show the scripts?

No.
I can programm that without an example :-)


Which method do you prefer?
First is good, when you donīt trust JS on the client.


So that: (the name of the fiel is index.php)


if (isset($_POST['item'])
{
// DO THE SQL STUFF an put it into $result
}
else
{
$result = "Empty page";
// or get the startpage from the database
}


// output your menu here like
// <a href="index.php?item=1">menuitemname</a>
// etc

// output your content here
echo "<div class="mycontent">$result</div>";


Thats all

Olaf














Onideus Mad Hatter

2008-01-08, 7:59 am

On Sun, 06 Jan 2008 14:05:57 +0100, Olaf Schinkel
<blablabla@bluxxxxxxxx.de> wrote:

>richard schrieb:
>No.
>I can programm that without an example :-)
>
>
>Which method do you prefer?
>First is good, when you donīt trust JS on the client.
>
>
>So that: (the name of the fiel is index.php)
>
>
>if (isset($_POST['item'])
>{
> // DO THE SQL STUFF an put it into $result
>}
>else
>{
> $result = "Empty page";
> // or get the startpage from the database
>}
>
>
>// output your menu here like
>// <a href="index.php?item=1">menuitemname</a>
>// etc
>
>// output your content here
>echo "<div class="mycontent">$result</div>";
>
>
>Thats all
>
>Olaf


....why are you doing the work for him after you've already told him
how to do it? He ought to be payin you for that shit if you ask me.

--

Onideus Mad Hatter
mhm đ x đ
http://www.backwater-productions.net
http://www.backwater-productions.net/hatter-blog


Hatter Quotes
-------------
"You're only one of the best if you're striving to become one of the
best."

"I didn't make reality, Sunshine, I just verbally XXXXX slapped you
with it."

"I'm not a professional, I'm an artist."

"Your Usenet blinders are my best friend."

"Usenet Filters - Learn to shut yourself the XXXX up!"

"Drugs killed Jesus you know...oh wait, no, that was the Jews, my
bad."

"There are clingy things in the grass...burrs 'n such...mmmm..."

"The more I learn the more I'm killing my idols."

"Is it wrong to incur and then use the hate ridden, vengeful stupidity
of complete strangers in random Usenet froups to further my art?"

"Freedom is only a concept, like race it's merely a social construct
that doesn't really exist outside of your ability to convince others
of its relevancy."

"Next time slow up a lil, then maybe you won't jump the gun and start
creamin yer panties before it's time to pop the champagne proper."

"Reality is directly proportionate to how creative you are."

"People are pretty XXXXing high on themselves if they think that
they're just born with a soul. *snicker*...yeah, like they're just
givin em out for free."

"Quible, quible said the Hare. Quite a lot of quibling...everywhere.
So the Hare took a long stare and decided at best, to leave the rest,
to their merry little mess."

"There's a difference between 'bad' and 'so earth shatteringly
horrible it makes the angels scream in terror as they violently rip
their heads off, their blood spraying into the faces of a thousand
sweet innocent horrified children, who will forever have the terrible
images burned into their tiny little minds'."

"How that you're such a poor judge of style that you can't even
properly gauge the artistic worth of your own efforts."

"Those who record history are those who control history."

"I am the living embodiment of hell itself in all its tormentive rage,
endless suffering, unfathomable pain and unending horror...but you
don't get sent to me...I come for you."

"Ideally in a fight I'd want a BGM-109A with a W80 250 kiloton
tactical thermonuclear fusion based war head."

"Tell me, would you describe yourself more as a process or a
function?"

"Apparently this group has got the market cornered on stupid.
Intelligence is down 137 points across the board and the forecast
indicates an increase in Webtv users."

"Is my .sig delimiter broken? Really? You're sure? Awww,
gee...that's too bad...for YOU!" `, )
Olaf Schinkel

2008-01-08, 7:59 am

Onideus Mad Hatter schrieb:
>
> ...why are you doing the work for him after you've already told him
> how to do it? He ought to be payin you for that shit if you ask me.

Yes.
But above was only an example.
No chance for a complete Code.

Olaf

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com