Is it possible to run something similar on Jquery mobile I don't want to disable ajax calls on links and buttons. Do you know a work around for this problem. Thank you very much. I spend many hours searching for answer, but nothing works for me. I use Jquery 1.8.3 and Jquery mobile 1.2.1 with css include, on PC Jquery works fine, on mobile only if I am on index page, but jquery is in header that i include with SMARTY. I work on SMARTY. I put my javascript code between {literal} tags then between tags but without success. Thank you for your answers.
SMARTY with Jquery inside:
<link href="/js/jquery.mobile-1.2.1.min.css" rel="stylesheet" type="text/css" />
<link href="/css/stylex.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/jquery.mobile-1.2.1.min.js"></script>
<script type='text/javascript' src='/includes/flash_fix.js'></script>
<!-- {popup_init src="/javascripts/overlib.js"} -->
<!--[if lt IE 7]>
<script type="text/javascript" src="/ie_png.js"></script>
<script type="text/javascript">
/ie_png.fix('.png');
</script>
<![endif]-->
{literal}
<script type="text/javascript">
$(document).bind('pageinit', function () {
$('#nav ul').hide();
$('#languages').hide();
$('#menu').click(function(e){
e.preventDefault();
$('#nav ul').slideToggle('300');
});
$('#lang_menu').click(function(e){
e.preventDefault();
$('#languages').slideToggle('300');
});
});
</script>
{/literal}