|
Fill <div> with content from server |
Posted by trump4 on Feb-17-2009 20:31 |
|
Hello,
like your example in "Javascript Clickable Chart" I want to update a <div>.
But I would like to get the information from the server.
function showInfo(year, revenue, grossMargin, backLog) {
...
Something like:
var content = http_request.send("/cgi-bin/perldemo_cgi/test2.cgi?&abc=111");
obj.innerHTML = content;
I thought about using JsChartViewer but it seems it always uses an URL from an image, but I do not want to update an image, just a <div>
Any push in the right direction would be appreciated.
Thanks
Tom |
Re: Fill <div> with content from server |
Posted by Peter Kwan on Feb-18-2009 00:21 |
|
Hi trump4,
You can always get any information you like from the server. It should be standard HTML/Javascript. You should not need any ChartDirector code if you just want to get information from the server.
If you are not sure how to get information from the server, I suggest you may try to test it with a web page, like:
<HTML><BODY>
<SCRIPT>
.... try to write some Javascript code to get information from the server ....
</SCRIPT>
</BODY></HTML>
After you have successfully perform the above, you may use the similar code in the "showInfo".
Hope this can help.
Regards
Peter Kwan |
|