When i am sending some data from extension.js to popup by using appAPI.message.toPopup({
request: 'get-page-url',
url: window.location.href
});, it's not working .
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Bikash,
Can you please share more details such as:
1) What error are you getting
2) What browser are you using
and what is your extension ID where we can see this code, so we can take a closer look. -
-
Hi Shmueli,
1) I am not getting any error, i want to set some dynamic data in tabulate format in to the popup HTML when I'll click on the browser Action button, but i am getting the static data Hello world!, not the dynamic data from the current page. After clicking 10 to 15 times it's giving the dynamic data and in the next click onwards not.
2) Firefox 37v
3) Extension id: 72942 -
-
-
-
Hi Shlomo,
I am trying with my Ubuntu 14.04/FF 37.0.1, Win 7/IE11,FF 36.0.1 Win 7/FF 37.0.1, maximum time it's giving the static data and 1 to 2 times i am getting the dynamic data. Can u give me any other solution for this problem, can u be available in Skype? My skype id: "bcbarad". -
-
Hi Shlomo,
Is there any other way to communicate with popup page from current page?-
I tried various combinations of browsers and OS as you did and the only time I can see what you are seeing is in Firefox on occasion. This usually happens because the FF messaging implementation is very fast and often the response is received before the listener is configured. To avoid this you can add a delay to sending the message in the popup.html, as follows:
setTimeout(function() {
appAPI.message.toActiveTab({type: 'active-tab-url'});
}, 500); -
-
-
-
-
Yeah It's working now.
Thank you very much Shlomo and Shmueli Ahdut.
Now i am going to develop my extension by using the crossrider, if i'll face any problem i'll interact with u people.
Thanks for your co-operation and extended help-
You're welcome ... Happy Coding!
-
-
-
-
-
-
-
Hi,
My extension is working properly in Firefox and chrome in both Ubuntu and windows,
but not working in win 7 IE 9 ,I am not getting the reason for this.- view 3 more comments
-
-
-
-
Yeah, IE cannot transfer more than 8000 bytes. For that i don't want to maintain local database .
Is there any other solution for this,like write all the data into a file of the extension folder and retrieve from popup page. -
-
I tested the extension in IE 11 and the messaging appears to be working fine. The only issue I can see is the amount of data you are passing which is limited in IE due to the max string length.
The usual way to handle large volumes of data is to save it in the local database using appAPI.db.async and using messaging to inform the other scope that the data has been saved. -
-
-
-
I believe my error is similar. my messages back and forth from the pop up aren't working. I'm getting this error when I inspect the pop up.
background.html:142 Uncaught SyntaxError: Unexpected identifier
background.html seems to be a file that is generated automatically.-
Hello Barrington,
I understand that you are having an issue with messaging with your popup. Usually, this works without problems and hence in order to assist further I need to take a closer look.
Therefore, please open an new thread and provide as much of the following information as possible and I will investigate:
- The extension id
- The file/line number where the code snippet can be found
- Which browser and operating system you are testing on, including version numbers
- The exact steps for reproducing the problem
- Any additional useful data, such as URLs, screenshots, videos, ...
-
-
-
-
-
Hi Shlomo,
Thank u very very much .
My extension is nicely working now in IE.
But one small issue is there The prompt is giving some trouble me .
Is there any way to accept the user value to take the IP and PORT.
If i am giving the prompt to take the user input the remaining code is not working.
U can check it in
Ext id: 73740,
page: extension.js,
Line no: 30.- view 2 more comments
-
-
-
Hello Bikash,
Regarding the IE9 issue, I believe the problem is the user of trim() which is not supported. Try using appAPI.utils.trim as follows:var val = appAPI.utils.trim(prompt(...));
I'm not clear I understand the issue for Firefox. Simply download the XPI from the URLs on our download page and install. -
-
Thank you Shlomo.
Thank you very much.
Now everything is fine.
Thank you for your support. -
-
-
Loading Profile...




EMPLOYEE
EMPLOYEE


