OK, so I think its a simple question but since I am extremely new to ajax and really trying to figure it out I'm not sure how/where to really start with this.

What I want is a piece of code that reads a table and inserts new entries into a listbox on the user side. I dont want to have to "refresh" the page to get new entries into the listbox.

Essentially, the table will get updated by an app on one side and I want users to be able to view the updates as they occur.

Is this possible? if so, how?

Thanks,

Pete

Recommended Answers

All 2 Replies

This isn't as easy as you might think. What you are describing here is requires an active HTTP connect between the client and server. You might want to look up info on streaming technologies. Some searchable terms include: Server Client Push, Comet, Long Polling, and HTTP Streaming. A good starting point is : http://ajaxpatterns.org/HTTP_Streaming.

This isn't as easy as you might think. What you are describing here is requires an active HTTP connect between the client and server. You might want to look up info on streaming technologies. Some searchable terms include: Server Client Push, Comet, Long Polling, and HTTP Streaming. A good starting point is : http://ajaxpatterns.org/HTTP_Streaming.

I was afraid of that... in the mean time I have implemented it as a iFrame with a meta refresh. The entire page doesn't refresh, just the iFrame...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.