Bear Bibeault wrote:Well Ajax and JavaScript isn't going to know anything about Java objects.
Sounds more like something you need to do on the server-side with JSP.
David Newton wrote:You're not really providing enough information to allow us to help much--can you be more specific?
Bear Bibeault wrote:You can have Ajax call back to the server in order to obtain the field info so that no page refreshing is needed, but any Java inspection of the beans needs to be handled on the server.
Is that heading in the right direction?
Bai Shen wrote:How would I make the list refresh whenever an item is added on the server?
Bear Bibeault wrote:
Bai Shen wrote:How would I make the list refresh whenever an item is added on the server?
Well, you can't push the change.
The action must be initiated from the client.
Bear Bibeault wrote:From your description, I'm still not understanding what you are trying to do.
Bear Bibeault wrote:See the Servlet FAQ.
Bai Shen wrote:I wasn't sure as the .load documentation mentions using a random get parameter to prevent the caching issue. But the response settings are a much better way.
As a side note, is anyone else experiencing weirdness with the jQuery docs? The .load page I pulled up is different from the one I was looking at yesterday. And the Ajax doc page keeps timing out on me.
Bear Bibeault wrote:That's a trick that's often used in environments where setting the headers isn't possible.
I think that they're being updated. (But not too efficiently...)
Bear Bibeault wrote:P.S. A servlet filter is a great way to set the cache headers on every request.
Eric Pascarello wrote:Change only fires if the user changes the value.
You may be better off using blur.
Eric
The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation. It may be used with the same elements as onfocus.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |