watusi / jquery-mobile-iscrollview

JQuery Mobile widget plug-in for easy use of the iScroll javascript scroller.
408 stars 183 forks source link

Trouble applying the pull down refresh action in Cordova InAppbrowser WebView? #162

Open harshgrovr opened 5 years ago

harshgrovr commented 5 years ago

I am opening a webpage inAppBrowser. I want to reload the page when user pull down the page.

Index.html (part)

*

INDEX.JS

loading a webpage via inAppBrowser, in index.js

' ref = cordova.InAppBrowser.open(env, '_blank','clearcache=no,location=no, clearsessioncache=no, footer=no,zoom=no' );

    new jQuery(function(){

                        new jQuery(".iscroll-wrapper").bind({
                            iscroll_onpulldown: onPullDown,
                            iscroll_onpullup: onPullUp
                        });

                        new jQuery( document ).ready(function() {
                                console.log( "ready!" );
                                alert('ready');
                        });
    });

' How to bind the event with webview that is opened in inAPPBrowser