Loading content within DIV layers
So here's my question... is there any way I can replace the div content with a seperate external html page such that when I click a tab, only the content within the div layer will be refreshed while the rest of the page (i.e. menu bar etc.) remains static?
You can do that with an IFRAME.
However, I suggest you look into server-side includes, which allow you to insert several pieces of your webpage together through one line of code.
I'm running most of the stuff using div layers, so I hope to stick to that if I can.
You don't need to load up hidden content, which I guess is what's causing your initial load problem. Do it on demand with AJAX.
Yeah that's pretty simple to do with Ajax. Here's a helpful link:
Not only that. I have a sub level menu that is able to do that too. So, this means i must have ajax to work with both main level and sub level menu which I have no idea how to as it's really so complex.
Can anyone help me? Or will server side inclue achieve the same thing?
That would require a page refresh.
Or will server side include achieve the same thing?
Basic AJAX isn't really all that complex plus don't think of it as ADDING to your existing script because it's going to REPLACE some of your existing script.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)