P
Pablo
Dear all,
I have a website where I need to fill its contents after retrieving
some data from another system (not a DB, but you can think like it).
I know the nature of the data, but the order that it is retrieved is
random, and there is no way to order it. Therefore, it is giving me
some pain to produce the html code.
I was thinking of having the following javascript to place my html
code. Here, "rightImg" is the ID of a DIV tag where I want to position
my code. The code should be the content of the htmlBody variable.
function addTopRightImage() {
var htmlBody = '.';
if (document.all) {
document.all('rightImg').innerHTML = htmlBody;
}
else if (document.getElementById) {
document.getElementById('rightImg').innerHTML = htmlBody;
}
}
However, if I set the variable as it is shown bellow, the page is not
loaded as I want:
var htmlBody = '<jsp:include page="/WEB-INF/Standard.jsp"
flush="true"><jsp
aram name="id" value="${myid}" /></jsp:include>';
Does anyone have a clue of what is going wrong? Maybe an alternative
solution?
Regards,
Pablo
I have a website where I need to fill its contents after retrieving
some data from another system (not a DB, but you can think like it).
I know the nature of the data, but the order that it is retrieved is
random, and there is no way to order it. Therefore, it is giving me
some pain to produce the html code.
I was thinking of having the following javascript to place my html
code. Here, "rightImg" is the ID of a DIV tag where I want to position
my code. The code should be the content of the htmlBody variable.
function addTopRightImage() {
var htmlBody = '.';
if (document.all) {
document.all('rightImg').innerHTML = htmlBody;
}
else if (document.getElementById) {
document.getElementById('rightImg').innerHTML = htmlBody;
}
}
However, if I set the variable as it is shown bellow, the page is not
loaded as I want:
var htmlBody = '<jsp:include page="/WEB-INF/Standard.jsp"
flush="true"><jsp
Does anyone have a clue of what is going wrong? Maybe an alternative
solution?
Regards,
Pablo