javascript - Jquery $('document').ready(function(){}); doesn't work in Jquery mobile? -
is possible run similar on jquery mobile don't want disable ajax calls on links , buttons. know work around problem. thank much. spend many hours searching answer, nothing works me. use jquery 1.8.3 , jquery mobile 1.2.1 css include, on pc jquery works fine, on mobile if on index page, jquery in header include smarty. work on smarty. put javascript code between {literal} tags between tags without success. thank answers.
smarty 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}
Comments
Post a Comment