IE9 iFrame Ignores js files - javascript

I have a very strange problem with IE9 and an iFrame I've implemanted inside an aspx page
the iFrame is connected to a login page of a different website and when i try to log in with username and password, the login page that supposed to call several js methods on external js files, well, doesn't call them
naturally, I've checked this page in FF and Chrome and it works perfectly but IE9 (and IE9 with competability mode) cant seems to "see" these js files
I opened IE tools (F12) and looked in the "script" tab, the external script weren't there
I've tried to link the scripts in my aspx file and it didn't help either
so what do you say
why is IE9 can't use js files inside an iFrame

Related

Edge open local .html with css and js links

I have a problem with Edge browser (40.15063.0.0 version). I try to open local html file and have an error XMLHttpRequest: Network Error 0x5, Access is denied. for jQuery library. Does anyone have the same error?
I have css and js links to bootstrap library and some another library, which are placed in the same folder in subfolders. And all of this external resources cannot be uploaded in Edge browser. In Google Chrome all works fine.
What can be the issue of this strange behavior? Also another developer can open this page on his computer.

Chrome extension: How to load an external site in background insert script

Good morning,
I have create a script with the extension CJS( custom javascript for website) for chrome that click and inject script on several page of a same domain automaticly, the script detect when the page change and alert me(with a simple alert()) about a new content in the page.
It works perfectly but I need to let open the web page, I put it as homepage but I don't wanna inadvertently close it. So I have create an extension with an iframe that contain the site witch I want insert the script but the extension CJS does not works on chrome extension.
The problem is that the site is in https so event if I disabled the Content Security Policy (CSP) I can't get the content of the iframe and inject script myself.
So my question is how to have a background page of an external site that let me execute script with chrome.
The extension is for personal use, I don't need an universal solution.
Thanks
edit:
the iframe appear in the default_popup:

Modify HTML before Chrome native scripts

How do I modify the HTML page before any Chrome runs its scripts, or
make my script run before any source script, once Chrome gets the whole HTML plain text.
Can any Chrome API do that?

Javascript file reference in debugger missing

I am not exactly certain what I did to cause this, but I have been able to, up until a couple of minutes ago,debug my javaScript file(referenced using a script tag in a .aspx page I am working with) using FireFox firebug tools. Suddenly, I am unable to view the file via the FireFox script tab list. I scroll the list of script files included in my page, but I do not see the particular Javascript file I expect to be on the list. I am however, able to confirm that the JavaScript file is loaded along with the page information, under the HTML tag in firefox.
**No Javascript on this page**
If <script> tags have a "type" attribute, it should equal "text/javascript" or "application/javascript". Also scripts must be parsable (syntactically correct).
I experience similar problem when using chrome. When I pull up the entirely loaded file, I am able to confirm that my javaScript file is correctly referenced. But for some reason I am unable to verify the script is being run or debug it.
The rest of the web application works file. Problem is just with the one page.
ONE SOLUTION
I created a new aspx file. Copied over the code from the faulty page and ran it, and it worked fine on both Firefox and chrome.

firefox addon: Talking back to the script

I am new to extension programming but find making extensions in Chrome much more easier, but now that I am trying to port my test extensions to FF I have a few questions of how to do the same things I do in Chrome... now in FF.
For example:
In Chrome I have a page in my extensions directory called: domains.html
I link to that page from my popup and it has access to all my scripts etc but the "outside" world cannot directly access that.
Is there any such thing in FF so that I can show a page that is in my add on folder and has access to my add-on's JS and other files?
Thanks!
Take a look at some of the docs for opening URLs in new Tabs and manipulating the content of the tab:
https://developer.mozilla.org/en/Code_snippets/Tabbed_browser#Opening_a_URL_in_a_new_tab
Once you get comfortable with that, try opening an HTML page that lives in your add-on. First, you need to be aware of the 'content' package name you registered in your chrome.manifest file. Second, make sure your 'domains.html' file is in the content folder of your add-on. To open the web page in a new tab using a button or menu in Firefox use code like this:
gBrowser.addTab("chrome://mypackagename/content/domains.html");
You can should be able to load other JS and CSS files from your add-on into the web page using similar chrome:// URIs.

Categories