PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 3rd, 2002, 11:27 AM
liquidchild liquidchild is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 liquidchild User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Keeping the nav bar

Does anyone know how to keep the nav bar from reloading all the time, I am not using frames and have designed my site using css and php, but i am not sure if it is possible to have just the new body page load when a link on the navigation menu is pressed. Also have seen many sites that have for example gallery.php?content=1, is this just a switch statement in gallery.php which point to different .php, or .html files, or a link to a database table, or is there something more elegant going on here.

Thanks in advance for any help or advice.

Reply With Quote
  #2  
Old November 3rd, 2002, 12:19 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Keeping the nav bar

Well, your problem with your nav bar is a bit strange...
Is the nav bar created with JavaScript?

By the way, those "URL-parameters" no switch statements. Those parameters are variables...

I.E

link: example.php?name=CodeWalkers

Code for example.php
php Code:
Original - php Code
  1.  
  2. if (isSet($_GET["name"]))
  3. {
  4.   echo $_GET["name"]; // displays CodeWalkers
  5. }


Reply With Quote
  #3  
Old November 3rd, 2002, 12:25 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Keeping the nav bar

I see three ways:

* using frames
no commnets, everything is clear

* make nav bar in JavaScript and place all its code in a separate js-file. It will be cached by browser.

* make page content upload in JavaScript. I.e. you open first page and it uploads in JS all other pages on demand. But url will never be changed (I assume it as disadvantage).

As for "gallery.php?content=1". I think you are right - usually this is switch which uploads another phphtml page.

============
Mike Tsapenko
Chief of Web-development Dept.
AlarIT
http://www.AlarIT.com



Reply With Quote
  #4  
Old November 3rd, 2002, 06:56 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Keeping the nav bar

there are alos <iframe>s

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Keeping the nav bar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT