Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Originally posted by Jaikiran Pai:
I have been seing some sample examples of using AJAX and all of them show how to send back data from the server in the form of text or xml. I havent seen any example which shows how to send back binary data. Can AJAX be used to send back binary data?
Originally posted by Peter Chase:
However, if what you are trying to do is to dynamically update images
Originally posted by Peter Chase:
If the IMG element is already part of the displayed HTML document, you can find it in the DOM and change its "src" attribute. This will cause the client to request the new binary image data from the server. That will be a background request which will not make the whole page refresh.
If you are wanting to add a new IMG to the displayed HTML document, you can add a new IMG element using DOM API and set its "src" appropriately. Again, this will cause the browser to request the binary image data from the server.
Originally posted by Rahul Bhattacharjee:
AJAX can send binary data , but the question is what will you do with the binary data at client side.
Originally posted by Jaikiran Pai:
I agree plain binary data does not make sense for the client. I should have been more clear in my question, by binary data i meant images which i wanted to update without reloading the entire page.
Don't get me started about those stupid light bulbs. |