Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur.
Your context menu pgiuln is really great. I have two questions:- How to trigger context menu form javascript? I know about show() method, but I want all the functionality given by clicking (especially disappearing of the menu after clicking elsewhere in document)- How to build menu from javascript object passed to the contextMenu() function?ThanksRoman Plischke
Nick is right. The technique on your video does not work for jQuery Mobile. You need to eetihr take this video down or redo it.To make admob work, you need to use Admob’s manual mode and invoke the ad rendering on each pageshow event.Here is what I used to make it work var admob_vars = { pubid: xxx’, bgcolor: FF9119 , text: FFFFFF’, ama: false, test: false, manual_mode: true};var fnFoo = function(){ var ad = $( #admob_ad’,this)[0]; if (typeof ad != undefined’) { ad.innerHTML = ; _admob.fetchAd(ad); } $( div[data-role=page] ).die( pageshow’, fnFoo);};$( div[data-role=page] ).live( pageshow’, fnFoo);
Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur.
Your context menu pgiuln is really great. I have two questions:- How to trigger context menu form javascript? I know about show() method, but I want all the functionality given by clicking (especially disappearing of the menu after clicking elsewhere in document)- How to build menu from javascript object passed to the contextMenu() function?ThanksRoman Plischke
Nick is right. The technique on your video does not work for jQuery Mobile. You need to eetihr take this video down or redo it.To make admob work, you need to use Admob’s manual mode and invoke the ad rendering on each pageshow event.Here is what I used to make it work var admob_vars = { pubid: xxx’, bgcolor: FF9119 , text: FFFFFF’, ama: false, test: false, manual_mode: true};var fnFoo = function(){ var ad = $( #admob_ad’,this)[0]; if (typeof ad != undefined’) { ad.innerHTML = ; _admob.fetchAd(ad); } $( div[data-role=page] ).die( pageshow’, fnFoo);};$( div[data-role=page] ).live( pageshow’, fnFoo);