Hi Brian!

your idea was great! Thanks! It works all very well expect one little
piece

On 11 Dez., 18:50, brian <bally.z...@gmail.com> wrote:

> Something like this:
>
> $(document).ready(function(){
>         $('div.statusimg').click(function() {
>                 var status = this;
>                 var her_id = status.id;
>
>                 /* remove all 2nd classes to reveal default state (eg. 
> animation)
>                  */
>                 $(status).removeClass('active', 'inactive', 'no_login');
>
>                 $.ajax({
>                         type: "POST",
>                         url: "/admin/ajax_toogle_manufacturer_status.php",
>                         data: "her_id=" +her_id,
>                         success: function(msg){
>                                 /* get the new status from the returned data
>                                 */
>                                 status.addClass(the_new_status);
>                         }
>                 });
>         })
>
> });
>

This:  status.addClass(the_new_status);
prints the new status, but the browser does not show the image which
is connected with the new status class?
Can I somehow refresh the div only? Is that possible?

Thanks
Heidi

Reply via email to