Jquery click link send information to php -


i'm creating system using jquery , php pops small div when private message on website. alert have figured out, i'm not sure how gracefully cancel it.

i've made clicking link "[x]" hides div, how can make link send enough information php script mark alert "read" in database?

all php script need id of alert in database, i've got no idea how make that. there more 1 notice displayed @ time, need way have each link send information necessary php script.

here's jquery loads div , php powers it.

<script type="text/javascript"> var auto_refresh = setinterval( function () { $('#mc').load('/lib/message_center.php').show("slow"); }, 10000); // refresh every 10000 milliseconds </script>   <script type="text/javascript">    $(document).ready(function(){         $('.delete').live('click', function(){           $('#mc').hide('slow');      });   });  </script> 

the easiest solution set message displaying read @ moment display it. not require additional communication between browser , server, @ end of /lib/message_center.php script messages displaying @ moment.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -