What's new

Closed Help:script that reloads tab when div changes

Status
Not open for further replies.

chrischan1

Addict
Joined
Jul 2, 2016
Posts
5
Reaction
2
Points
66
Patulong po.

<span class="user--point">
<div class="points">756 pts</div>
</span>

ano po kaya script para dito. Dapat po kasi kapag nagbago value ng "points" magrereload ang chrome tab, kapag hindi naman nagbago babalik sya simula ng script.

ito po script ko. hindi gumagana. newbie sa javascript.

function checkForChanges()
{
if ($('user--point').contentchanged())
location.reload(true);
else
return;
}
 
Static po ba yang gawa mo TS? kung may mga data kayo galing sa server-side, gamitan nyo AJAX. Marami options jan eh. like on success function niya reload mo yung specific na div.
 
Status
Not open for further replies.
Back
Top