Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call js function from root_url javascript #258

Open
r1si opened this issue Jan 29, 2015 · 0 comments
Open

call js function from root_url javascript #258

r1si opened this issue Jan 29, 2015 · 0 comments

Comments

@r1si
Copy link

r1si commented Jan 29, 2015

hi guys,
I use node js plugin , and I write this code:

function test_me(){
console.log("work");
}

webview(function(err, api) {
var win = api.window({ root_url: 'file:///Users/USER/Documents/LOCAL/SVILUPPO_WEB/test.html' });
win.show();
win.maximize();
win.on("closed",function(){
process.kill();
});
});

and in my local pc inside test.html

<script type="text/javascript"> jQuery(document).ready(function() { parent.test_me(); }); </script>

I'm trying to invocate remote function with parent.function() but don't work ...
how can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant