Jump to content

reload div / page


fantomel

Recommended Posts

hell o got this code for a profile page add / peding / remove friend options. 

[code
$('#add_friend').live('click', function() {
                $.get("{/literal}{$ISD_URL}members/managesfriends/action/add/id/{$user_details.user_id}{literal}", function(data) {
                        if (data == "ok") {
                                $('#add_friend').parent('td').html('{/literal}<a id="remove_friend">{$lang.pending}</a>{literal}');
                        }
                });
        });

 

it works fine the only problem is that if i click add friend or remove friend etc.. it updates that portion of the div after i refresh the page can someone help me update it after i click it ?

Link to comment
https://forums.phpfreaks.com/topic/215724-reload-div-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.