Steve,
You ultimately don't need to send params to the server side page, you will
just need to account for the returned information.

$.ajax({
  type: "POST",
  url: "some.php",
  success: function(msg){
    alert( "Data Saved: " + msg );
  }
});

the success is where you would put your function to handle your return
information.

Now, if this is something you want to do every X amount of minutes or
seconds, just put that in a setInterval function.

Let me know if I understood you correctly.

On 8/10/07, Steve Finkelstein <[EMAIL PROTECTED]> wrote:
>
>
> Hi all
>
> I'm looking to populate a div with information from a database ...
> don't want to pass any parameters to the serverside script, just want
> the div updated according to my query if the db record sets are
> modified, is .ajaxStart() the appropriate function for this?
>
> I'm basically looking to have the jquery poll the server every X
> seconds. Since HTTP is a connectionless protocol, I'm not entirely
> sure what the proper way would be to stop/start the request using good
> practices.
>
> In pseudo-type code it should work like this:
>
> User visits site.
>
> a request is made from the client to the server to invoke a function.
> a function on the server-side queries my mysql database with a simple
> query.
> the result set is returned as an array to the javascript object.
> the javascript object gets injected into the DOM.
>
> No parameters are passed in the ajax request to the server.
>
> thanks again for any insight folks.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to