for (i=0;i<::PostCount::;i++)
{
postcell.innerHTML+="<table class='table_post'>"+"<tr><td>test</td></tr>"+"<tr><td class='td_post'>"+post[i]+"</td></tr>"+"</table>";
}
While the following doesn't:
for (i=0;i<::PostCount::;i++)
{
postcell.innerHTML+="<table class='table_post'>";
postcell.innerHTML+="<tr><td>test</td></tr>";
postcell.innerHTML+="<tr><td class='td_post'>"+post[i]+"</td></tr>";
postcell.innerHTML+="</table>";
}
I'd like to avoid having all the string modification done in one line for readability purposes. I don't really understand what the problem is.
In case this is related to the problem, this is from a .js file that is being read with PHP, modified (to replace ::PostCount:: with a number), then spat back out with echo. I don't believe this is involved in the issue though, as the viewed source on the end product looks just as it should. Can someone tell me what my problem is? Thanks (:

New Topic/Question
Reply



MultiQuote




|