comets

Tomcat Comets application returns .jsp page instead of weather data

I have implemented the Comets tutorial at http://www.ibm.com/developerworks/web/library/wa-cometjava/#N100CC It seems like I am getting data returned from the server using the Comets technique - i.e. being pushed to the browser. However I am getting the .jsp page that I use to trigger the Comet event returned, rather than the weather da...

How to dynamically change the height of a div

How do I dynamically change the height of a div. Why does this not work: var priceBarElement = $("priceBar"); priceBarElement.style.height = request.responseText+"px"; Which I hope to use to change the priceBar div which is given by this line further down. <div id="priceBar" style="width:28px;margin-top:20px;background:#F00"></di...