Welcome Guest, Not a member yet? Register   Sign In
trying to call javascript
#3

(This post was last modified: 05-08-2019, 12:20 AM by richb201.)

(05-07-2019, 07:03 PM)php_rocs Wrote: @richb201,

Are you trying to have your web app send a browser message?

Not really. I am trying to have the browser page send a message to the extension of the browser. There is some messaging facility in chrome. So I want the web page (which was built by the server), to make a call to the js which will send the message.

Or is that what you meant? I did ask a similar thing recently, but I am just trying to get the js to run on a page created by grocery crud or code igniter.

My overall plan is to call the aws javascript api from the extension. But I need to communicate some instructions from CI created browser page before I do that. People say that the Extension "runs in the context of the browser". I am not sure what that means, honestly, other than I can use some chrome runtime messaging feature (see the code above). But the only way I can communicate using the Chrome messaging app is to call a js function from my php created web page.

I guess the js needs to be embedded in the html but I don't know how to do that. Is the problem that I need to call register_extension() from the CI code? How does CI know I am calling a js function?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trying to call javascript - by richb201 - 05-07-2019, 03:05 PM
RE: trying to call javascript - by php_rocs - 05-07-2019, 07:03 PM
RE: trying to call javascript - by richb201 - 05-07-2019, 10:37 PM
RE: trying to call javascript - by richb201 - 05-08-2019, 05:34 AM
RE: trying to call javascript - by InsiteFX - 05-08-2019, 08:33 AM
RE: trying to call javascript - by richb201 - 05-09-2019, 09:32 AM
RE: trying to call javascript - by InsiteFX - 05-09-2019, 02:28 PM
RE: trying to call javascript - by richb201 - 05-09-2019, 04:11 PM
RE: trying to call javascript - by InsiteFX - 05-10-2019, 03:31 AM
RE: trying to call javascript - by richb201 - 05-10-2019, 06:04 AM
RE: trying to call javascript - by includebeer - 05-10-2019, 11:02 AM
RE: trying to call javascript - by richb201 - 05-10-2019, 03:56 PM
RE: trying to call javascript - by InsiteFX - 05-10-2019, 08:23 AM
RE: trying to call javascript - by Wouter60 - 05-10-2019, 10:46 AM
RE: trying to call javascript - by includebeer - 05-11-2019, 05:49 AM
RE: trying to call javascript - by InsiteFX - 05-11-2019, 08:18 AM
RE: trying to call javascript - by includebeer - 05-11-2019, 02:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB