twinklerip Posted January 2, 2006 Share Posted January 2, 2006 i'm new to HTML, CSS and JavaScript. currently i'm working on a personal webpage. facing few problems. here's one of'em. there is this huge HTML file. i want to split it into a HTML and several other code files (that will contain some HTML code, may be some headings, paragrapgs and anchors) and when i'll click a link/button in the main page, the content of one of those files will be displayed between a certain tag, say <div id="d1"></div>. when i'll click another link content of another code file will be loaded between those <div id="d1"></div> tags, replacing the previous content. i want to do this without an inline frame, without refreshing the whole page and withouth loading the whole file & hiding some of its content. preferably with simple javascript (i don't know asp/jsp). is this possible? if so, then how? can any one help me?thanx in advance. Link to comment Share on other sites More sharing options...
Chocolate570 Posted January 2, 2006 Share Posted January 2, 2006 You can't do this without frames of some sort, as there's no way to load HTML content through src. Link to comment Share on other sites More sharing options...
twinklerip Posted January 2, 2006 Author Share Posted January 2, 2006 bummer Link to comment Share on other sites More sharing options...
Jonas Posted January 2, 2006 Share Posted January 2, 2006 You'd need a scripting language, like PHP, ColdFusion, ASP.Net or JSP, and make site queries... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now