Welcome Guest, Not a member yet? Register   Sign In
calling javascript function
#7

(This post was last modified: 12-11-2019, 03:14 AM by richb201.)

This is the .js file being referenced. I never see any data being transfered. 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script language="javascript">

  var nc = $.noConflict()
// Code that uses other library's $ can follow here.


    nc(document).ready( function() {
        var editorExtensionId = "lamacgnkfoiknjpleghfknfigbmhdaei";
        // unload when done
        nc(window).on('beforeunload',(function(){
            chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode_unload")
        }))


//    alert (data);
        //      chrome.runtime.sendMessage(editorExtensionId, data,
        chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode1",
            function (response) {
                if (!response.success)
                    handleError(url);

            }
        )

    })


    </script>
proof that an old dog can learn new tricks
Reply


Messages In This Thread
calling javascript function - by richb201 - 12-09-2019, 08:09 PM
RE: calling javascript function - by Wouter60 - 12-10-2019, 12:02 AM
RE: calling javascript function - by richb201 - 12-10-2019, 06:19 AM
RE: calling javascript function - by Wouter60 - 12-10-2019, 07:02 AM
RE: calling javascript function - by InsiteFX - 12-10-2019, 08:55 AM
RE: calling javascript function - by richb201 - 12-10-2019, 08:01 PM
RE: calling javascript function - by richb201 - 12-11-2019, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB