Need help with Dynamic Page
- Started
- Last post
- 7 Responses
- redant
I have one page that pulls in a menu, a header image and text onto the page from my database all in same table. I do this by setting the URL parameter to Type=1
When a link on that page is clicked (SubType=2) I want to get rid of the header image and the text and just KEEP the menu and add my new content.
Is this possible? Any help is appreciated.
- jsaul0
err.. new page ?
- redant0
ok fine is that the best solution?
- neverblink0
it is possible.. with a backend language like php..
simplified:if(!$_GET['SubType']){
// show header
}else{
// do ajax to load new data
}
- redant0
i can figure it out later if there is a better way. I'm making a new page for now.
- jsaul0
depends on what it is really, could be done with AJAX either by switching content or manipulating the layout, but why do you only want one page? If there is a reason for that then you could look into other methods but Im struggling to understand what you are trying to achieve/build..
- redant0
im using asp, yes classic. My first time doing a dynamic type site. I wanted to keep the pages to a minimum since I thought that's the right way to do it.
- acescence0
switch(subType) {
case: subType = 1: do stuff; break;
case : subType = 2: do stuff; break;
default: do stuff; break;
}