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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -