Skip to content Skip to sidebar Skip to footer

Uncaught Referenceerror: Refresh Is Not Defined

Hi I am trying to get my posts in content id = postlist styled and I have ready that i need to refresh the page (refresh). But for some reason I am getting 'refresh is not defined'

Solution 1:

When dynamically adding a new data-role="listview" to a page, use $(".selector").listview() to call widget enhancement.

When adding items to an existing data-role="listview", use $(".selector").listview("refresh") to re-enhance the widget.

Solution 2:

refresh is a method name, so you need to pass it as a string leteral

$(result).listview('refresh');

or you need to declare a variable var refresh = 'refresh', then use the variable like $(result).listview(refresh)

Post a Comment for "Uncaught Referenceerror: Refresh Is Not Defined"