/    Sign up×
Community /Pin to ProfileBookmark

reload content without loading nav bars etc

Bassically what the title says, I have a php css web page and want only my content window to change pages when I click on the links in the nav bar.
The nav bar is outside the area I want to reload so I’m not quite sure how to go about doing this.
The main reason for wanting this setup is because I have media in a side panel which can’t be interrupted.

Thanks in advance.

to post a comment
Full-stack Developer

8 Comments(s)

Copy linkTweet thisAlerts:
@scragarFeb 10.2008 — 2 choices, either resort to frames, or use ajax for users with javascript, and simply accept that the remainder will have to reload your page anyway.

personaly I recomend the Ajax method.
Copy linkTweet thisAlerts:
@prongs_386authorFeb 10.2008 — thanks for the reply,

i am however using a uinix web server and don't have asp available.

Does anyone have any other ideas? maybe just pure javascript?
Copy linkTweet thisAlerts:
@bathurst_guyFeb 10.2008 — Um, scragar actually didn't say anything about asp, just AJAX which is JavaScript.
Copy linkTweet thisAlerts:
@prongs_386authorFeb 11.2008 — oh, really?

all my searches came up with asp integrated stuff... I guess because it is a microsoft product thats where the examples were.

I'll have another look at it, I did actually manage to get what i wanted through an iframe and some javascript, but I'll definately give the ajax a go.

Is it automattically supported?? or does the web server have to have some specific classes installed?
Copy linkTweet thisAlerts:
@bathurst_guyFeb 11.2008 — JavaScript is client side scripting so there is nothing special with the server, but the end users browser must have JavaScript turned on.
Copy linkTweet thisAlerts:
@TheRaveFeb 11.2008 — AJAX is more a concept rather than a language. Its just using javascript to reload parts/sections of a page by querying any standard web server that outputs html.

Its more commonly used with php (and asp) to dynamically fill the parts of the page as required. PHP or ASP aren't required though it could just be plain html.

Is there any reason why you want to do this? If there's images in your nav bar(s) then these will be cached and not reloaded. The only thing that's being reloaded is the html text which is really not much data.
Copy linkTweet thisAlerts:
@scragarFeb 11.2008 — I'm assuming that thein a side panel which can't be interrupted.[/quote]must be music, a video or flash etc.
×

Success!

Help @prongs_386 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...