Welcome Guest, Not a member yet? Register   Sign In
Jquery problem with .unload

I have the code below that I use to tell my Chrome Extension to go into a special "mode". Here is the code from the view:

<script language="javascript">

   $(document).ready( function() {
       var editorExtensionId = "lamacgnkfoiknjpleghfknfigbmhdaei";
       // unload when done
           chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode_unload",

       // Make a simple request:
       chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode",
           function (response) {
               if (!response.success)



When I comment out the .unload code it seems to run fine. I get the message in the extension and act upon it. However, when I uncomment the .unload code neither  the load message is not being sent nor is the unload message. It just breaks. Any jquery people up here? Also, is there a way to pass in a parameter from my ci controller to the javascript function?
proof that an old dog can learn new tricks

Messages In This Thread
Jquery problem with .unload - by richb201 - 05-24-2019, 06:28 AM
RE: Jquery problem with .unload - by InsiteFX - 05-24-2019, 02:10 PM
RE: Jquery problem with .unload - by richb201 - 05-26-2019, 03:38 AM

Theme © iAndrew 2016 - Forum software by © MyBB