Open pradeepbn opened 8 years ago
With only this information @pradeepbn, I am afraid I cannot help you.
@Yomguithereal below are more details:
artoo.on('ready', function() {
var tablink = "";
$('#get-data').click(function () {
chrome.tabs.getSelected(null,function(tab) {
tablink = tab.url;
});
var showData = $('#show-data');
var nameList = artoo.scrape('.profile-overview-content h1', {
name : 'text'
});
});
This is in the popup.js which is equivalent to "content.js". I am assuming that artoo.scrape should work here because it works in the context of "artoo.on()". Is my assumption right? Below is the tree structure of my plugin directory:
├── css │ ├── bootstrap.min.css │ └── custom.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── jquery.min.js ├── js │ ├── artoo.chrome.js │ ├── artoo.min.js │ ├── background.js │ ├── bootstrap.min.js │ ├── content.js │ └── jquery-2.0.3.min.js ├── manifest.json ├── popup.html └── popup.js
manifest.json is here http://pastebin.com/B7w4M64g
Thanks in advance. Please let me know if you need additional information.
I am getting this error in popup.js at here:
artoo.on('ready', function() { var tablink = "";
$('#get-data').click(function () {..} });
I am using this in the chrome extension popup.js. Here is the manifest.json http://pastebin.com/B7w4M64g
Can you help me resolve this?