Hello,
I need your help for disable selection and contextMenu on a Web App.
I have a config.js :
$(document).bind("mobileinit", function() { console.log("mobileinit"); $.mobile.tizen.disableSelection(document); $.mobile.tizen.disableContextMenu(document); });
And I load the config.js like that:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=720, maximum-scale=1, user-scalable=0"> <meta name="description" content="A Tizen Web UI FW multi-page template generated by Tizen Web IDE"/> <title>Something</title> <script src="tizen-web-ui-fw/latest/js/jquery.js"></script> <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script> <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js" data-framework-theme="tizen-white"></script> <script type="text/javascript" src="./js/jquery-1.7.1.js"></script> <script type="text/javascript" src="./js/config.js"></script> <script type="text/javascript" src="./js/jquery.mobile-1.2.0.js"></script> <link rel="stylesheet" href="./css/jquery.mobile-1.2.0.css"/> [...] </head> [...] </html>
On my console I can read:
js/config.js (2) :mobileinit
js/config.js (3) :TypeError: 'undefined' is not an object
The selection and menuContext isn't disable, do you know why?
Thank you