¡@

Home 

javascript Programming Glossary: chrome.runtime.sendmessage

Accessing global object from content script in chrome extension

http://stackoverflow.com/questions/10052259/accessing-global-object-from-content-script-in-chrome-extension

listener from 1 gets triggered. In this event listener use chrome.runtime.sendMessage to request the functionality from the background example 2 ... request.name request.value Example contentscript.js chrome.runtime.sendMessage type 'localStorage step 4' name 'preference' function value.. if value null Example If no preference is set set one chrome.runtime.sendMessage type 'localStorage step 5' name 'preference' value 'default'..

popup window in Chrome extension

http://stackoverflow.com/questions/10340481/popup-window-in-chrome-extension

open dialog.js if confirm 'Open dialog for testing ' chrome.runtime.sendMessage type 'request_password' dialog.html DOCTYPE html html head title.. window.close Close dialog Documentation for used methods chrome.runtime.sendMessage request function callback and chrome.runtime.onMessage .addListener..

Contexts and methods for communication between the browser action, background scripts, and content scripts of chrome extensions?

http://stackoverflow.com/questions/17246133/contexts-and-methods-for-communication-between-the-browser-action-background-sc

content scripts. To pass messages within the extension use chrome.runtime.sendMessage . If you want to send a message to another tab call chrome.tabs.sendMessage.. tabs i .id some message Content scripts can only call chrome.runtime.sendMessage to send a message to extension code. If you want to send a message.. if message 'message' sendResponse 'the response' chrome.runtime.sendMessage 'message' function response console 'sendResponse was called..

Cross-domain XMLHttpRequest using background pages

http://stackoverflow.com/questions/7699615/cross-domain-xmlhttprequest-using-background-pages

functionality from the background via the messaging API chrome.runtime.sendMessage method POST action xhttp url http www.stackoverflow.com search..