Thanks to FANG I got one of my newbie problems (<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=21123">http://forums.webdeveloper.com/showthre ... adid=21123</a><!-- m -->) licked....
Now... I'm using CSS that creates 2 columns with a header and footer.
How can i change the content of the <content> div ONLY without redrawing the whole page when a user clicks a menu link? I usually do this with frameset, but I want this site to be very clean. I'm even going to use PHP to populate pages...
JohnHow can i change the content of the <content> div ONLY without redrawing the whole page when a user clicks a menu link?
You can't unless you use Dynamic HTML to replace the innerHTML. If you truly want to just change the content and nothing else, stick with frames.
Personally, that's not even worth it. This has been debated at GGRREEeeaaat length in the following thread:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=22864Originally">http://forums.webdeveloper.com/showthre ... Originally</a><!-- m --> posted by toicontien
You can't unless you use Dynamic HTML to replace the innerHTML. If you truly want to just change the content and nothing else, stick with frames.
Personally, that's not even worth it. This has been debated at GGRREEeeaaat length in the following thread:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=22864">http://forums.webdeveloper.com/showthre ... adid=22864</a><!-- m -->
?whats not even worth it? Uh, all I'm really going to change is the 'content' div. I want the menu to stay the same, header to stay the same, same scripts to be available, etc...
JohnOriginally posted by Bigjohn
?whats not even worth it? Uh, all I'm really going to change is the 'content' div. I want the menu to stay the same, header to stay the same, same scripts to be available, etc...
John
I believe he means it's not worth it to use frames just to be able to change the content, and only the content.
You could try an Iframe...Originally posted by Paul Jr
I believe he means it's not worth it to use frames just to be able to change the content, and only the content.
You could try an Iframe...
ahh, please point me in the direction of iframe info... I've never used one...
Thanks!
JohnW3C (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5">http://www.w3.org/TR/REC-html40/present ... tml#h-16.5</a><!-- m -->)
W3Schools (<!-- m --><a class="postlink" href="http://www.w3schools.com/tags/tag_iframe.asp">http://www.w3schools.com/tags/tag_iframe.asp</a><!-- m -->)
HTML Help (<!-- m --><a class="postlink" href="http://www.htmlhelp.com/reference/html40/special/iframe.html">http://www.htmlhelp.com/reference/html4 ... frame.html</a><!-- m -->)Isn't this (<!-- m --><a class="postlink" href="http://blab-n-lab.home.comcast.net/news.html">http://blab-n-lab.home.comcast.net/news.html</a><!-- m -->) like what you want to do?
Now... I'm using CSS that creates 2 columns with a header and footer.
How can i change the content of the <content> div ONLY without redrawing the whole page when a user clicks a menu link? I usually do this with frameset, but I want this site to be very clean. I'm even going to use PHP to populate pages...
JohnHow can i change the content of the <content> div ONLY without redrawing the whole page when a user clicks a menu link?
You can't unless you use Dynamic HTML to replace the innerHTML. If you truly want to just change the content and nothing else, stick with frames.
Personally, that's not even worth it. This has been debated at GGRREEeeaaat length in the following thread:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=22864Originally">http://forums.webdeveloper.com/showthre ... Originally</a><!-- m --> posted by toicontien
You can't unless you use Dynamic HTML to replace the innerHTML. If you truly want to just change the content and nothing else, stick with frames.
Personally, that's not even worth it. This has been debated at GGRREEeeaaat length in the following thread:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=22864">http://forums.webdeveloper.com/showthre ... adid=22864</a><!-- m -->
?whats not even worth it? Uh, all I'm really going to change is the 'content' div. I want the menu to stay the same, header to stay the same, same scripts to be available, etc...
JohnOriginally posted by Bigjohn
?whats not even worth it? Uh, all I'm really going to change is the 'content' div. I want the menu to stay the same, header to stay the same, same scripts to be available, etc...
John
I believe he means it's not worth it to use frames just to be able to change the content, and only the content.
You could try an Iframe...Originally posted by Paul Jr
I believe he means it's not worth it to use frames just to be able to change the content, and only the content.
You could try an Iframe...
ahh, please point me in the direction of iframe info... I've never used one...
Thanks!
JohnW3C (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5">http://www.w3.org/TR/REC-html40/present ... tml#h-16.5</a><!-- m -->)
W3Schools (<!-- m --><a class="postlink" href="http://www.w3schools.com/tags/tag_iframe.asp">http://www.w3schools.com/tags/tag_iframe.asp</a><!-- m -->)
HTML Help (<!-- m --><a class="postlink" href="http://www.htmlhelp.com/reference/html40/special/iframe.html">http://www.htmlhelp.com/reference/html4 ... frame.html</a><!-- m -->)Isn't this (<!-- m --><a class="postlink" href="http://blab-n-lab.home.comcast.net/news.html">http://blab-n-lab.home.comcast.net/news.html</a><!-- m -->) like what you want to do?