Forum Moderators: open
-use JavaScript to change the innerHTML of a div
-not have to have many lengthy strings in my JS
Can I just have the strings be external files included via JSP? For example, something that looks like:
function displayDetails ( topic ) {
document.dynamicDiv.innerHTML = "<%@include file="/include/" + topic + ".jsp %>";
}