Welcome Guest, Not a member yet? Register   Sign In
How to pass in a struct to javascript
#4

(This post was last modified: 06-05-2019, 05:53 AM by richb201.)

I tried both of these and neither worked. One problem I have is my inability to see what is getting passed to the javascript function. I am using phpStorm and can't seem to put a breakpoint in the view.

I tried this: $this->load->view("javascript_funcs_extensionloaded", json_encode($data));

and also this:

chrome.runtime.sendMessage(editorExtensionId, <?php echo '"'.$data['command'].'"'; ?>,
// chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode3",
    function (response) {
        if (!response.success)
            handleError(url);

    }
)
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: How to pass in a struct to javascript - by richb201 - 06-05-2019, 05:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB