views:

50

answers:

1

Hi,

I'm learning ASP.NET MVC 1.0 and need to implement an asynchronous/dynamic page update. I'm new to MVC and jQuery so I'm not sure what to look for.

What I want to do is to allow a user to start a monitoring a domain layer function (similar to a news ticker) and then do a partial page update based on the continously changing results.

In ASP.NET I'd do this with a javascript timer to cause a postback, and an AJAX update panel..... but this seems a bit "hacky" for ASP.NET MVC. Is there a better way?

+1  A: 

Get the jQuery Timers plugin, which will make it much simpler to set up timers, and do a regular $.get(url, data, callback) or $('#myupdatepanel").load(url, data).

You can recreate an "update panel" easily by using these jQuery methods.

blockhead