I am using malsups form.js to run a login script combined with the zoo visitor add-on. When the login form has been successful the user is successfully logged in with out any need of a page refresh, although when I want to display the username the page needs to be refreshed for those details to appear on screen. Below is my code, any suggestions ?
--
<div class="username_wrap">
<p>Welcome
<span>
{exp:zoo_visitor:details}
{visitor:member_firstname}
{/exp:zoo_visitor:details}
</span>
</p>
</div>
$("#userLoginForm").ajaxForm({
dataType: "json", success: function (event) {
if (event.success) {
member_favourites = "5";
//do something
}
}
})