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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -