| It is currently Thu Sep 02, 2010 3:46 pm |
| Javascript Addons not working correctly (fix in progress) |
|---|
|
I cant figure out what the exact problem is, but the addons cannot read all the data on the page. A lot of perfectly normal objects are suddenly "undefined" when they are run from a plugin.
Ive created sample html pages and added the javascript code to the end, they all work fine. However it seems once the page is loaded and an addon is run, it cannot find the most basic of objects. An example is document.links When i call "alert(document.links)" the gecko engine should display an alert box explaining that i tried to turn an object into a string and say: "[object HTMLCollection]". At least that means that it knows the object exists. But when i try the same code in an addon i get an alert box saying "undefined". The javascript injected by the addons dont seem to be able to integrate themselves with the existing code on the page. Im trying to make a few addons cross compatable with Avant and Orca and these problems are making it difficult to test. undefined |
|
Hello,I can't confirm. I made a auto-execute script addon with your code. While opening a page it runs and pops up a dialog with "[object]" . Seems there's no problem here.
Hi, ive reinstalled, still getting an "undefined" error
Can you try these plugins? they SHOULD work, but not for me. URL List should write out a list of links on the current page. Super Linkifier should turn most of the links on http://yellow5.us/firefox/testcases.txt into clickable links.
You do not have the required permissions to view the files attached to this post.
Yea, I cant run those addons as well here. Let Anderson take a look.
Seems im a lone case
Ill try this on another computer soon and report what happens. Not alone, it's reporting undefined for me too. Document reports as an object just fine though.
|
| Page 1 of 1 | [ 5 Posts ] |
| Ticket details | |
|---|---|
| Ticket ID: | 75 |
| Project: | Orca Browser |
| Status: | Fix in progress |
| Component: | Addons |
| Project version: | Latest 1.2 Build Only |
| Priority: | Normal |
| Severity: | Normal |
| Windows version: | Xp Pro |
| IE version: | 7 |
| Assigned to: | Jasmine |
| Reported by: | sulpherdragon |
| Reporter's tickets: | List all tickets |
| Reported on: | Mon Jul 21, 2008 5:03 am |
| This ticket was last visited by project member Jasmine » Wed Sep 03, 2008 8:23 am. | |
| Options | |
|---|---|
| View ticket history | |
|
The team • Delete all board cookies • All times are UTC [ DST ] |