Hello,
I using JQuery to fill my divs with content from another page. I'm doing this as follows:
My question is: should about_the_book.html be a fully fleshed out web page with all the bells and whistles (like <!DOCTYPE...) or can it work in quirks mode (is it even necessary to have your standard head and body tags or can it be more like an include file)?Code:<script type="text/javascript"> function loadContent(elementSelector, sourceURL) { $(elementSelector).load(sourceURL); } </script> ... <a href="javascript:loadContent('#content', 'about_the_book.html');"> About the Book </a> ... <div id="content" class="standard content"> </div>



Reply With Quote

Bookmarks