Click to See Complete Forum and Search --> : Viewer for Javascript's HTML output


Padrill
07-17-2003, 09:25 AM
Hi,

I'm trying to view the source (from Explorer) of a HTML page with Javascript that has lines similar to the following:

document.span1.innerHTML = '<table><tr><td>dropDownMenu("myMenu");</td></tr></table>';

Note: dropDownMenu("myMenu") creates a select menu with the name myMenu.

Instead of showing the produced HTML shows me the javascript. Is there any software that will allow me to see Javascript's output in unrendered HTML? I need it for debugging reasons.

Khalid Ali
07-17-2003, 10:13 AM
alert(document.span1.innerHTML) put the line below this line
document.span1.innerHTML = '<table><tr><td>dropDownMenu("myMenu");</td></tr></table>';

Padrill
07-22-2003, 05:11 AM
Well, yes, I've already tried this. It displays what's expected. The problem is that the javascript in the following example sems to be completely ignored. That's why I would like to see the HTML output.

document.span1.innerHTML = '<table><tr><td><script language="javascript">dropDownMenu("myMenu");</td></tr></table>';

Padrill
07-22-2003, 05:12 AM
Sorry, there's meant to be an ending </script> before </td>