Forcing Jquery Mobile to reload in Rails app -
i working on mobile site uses rails , jquery mobile. problem have button when triggered suppose go link. link starts controller generates data shown in page , saved in database. problem works first time around , when try doing again, jqm loads cached data , uses ajax, page never reloaded again..
button:
<div data-role="button" data-ajax="false"><%= link_to "get basket",basket_path%>
you should place data-role="button" , data-ajax="false" inside anchor tag, this:
<a href="..." data-role="button" data-ajax="false">...</a>
Comments
Post a Comment