Yet another question of changePage() method
Hi list,
I went on using this kind of code to call dynamic page content :
- <script type="text/javascript">
$(document).ready(function(){
$("#epg").click(function(){
$.mobile.changePage({
url: ".cxml",
type: "post",
data: "__sequence=getEPG"+"&login="+localStorage.getItem("login")+"&pwd="+localStorage.getItem("pwd")
},null,false,true);
});
});
I didn't know exactly what to do for the button I wanted to use, so I tried:
- <a href="#" data-icon="grid" data-role="button" id="epg">EPG</a>
- <a href="" data-icon="grid" data-role="button" id="epg">EPG</a>
- <a href="#epg" data-icon="grid" data-role="button" id="epg">EPG</a>
- <div data-role="page" data-theme="d" id="epg">
</div>
But all tries ended up in:
- l.data("page") is undefined
http://<host>:<port>/*****/projects/<projectname>/js/jquery.mobile-1.0a3.min.js
Line 46
Post is successful, but it seems there is no return page to put content.
Anyone can help ?
Thx.