Quote:
Originally Posted by brandonH
try innerHTML
create a div or span shere you want the results to show up and do as such:
<span id=results></span>
<script type=text/javascript>
function yourfunction(){
//do your equating here
var result=//what you get from equating
document.getElementById('results').innerHTML=result;
}
</script>
|
Thanks for the feedback, Brandon.
However, that technique is only applicable for Internet Explorer, isn't it? I'd like my page to work on all browsers.
I'm starting think I will be stuck with a form. I may get rid of having a separate text box for imaginary components, but I will still have at least one text box for each root (if an imaginary component is present, it would just be concatenated with the real part and output in a single textbox). It doesn't give the seamless appearance I would like for my page, but it is better than what I have now.
David