chrome:// like URLs in Internet Explorer - javascript

once again, I'm struggling with porting a Firefox extension to Internet Explorer 7, 8 and 9.
My most recent problem is that the FF extension code makes heavy use of AJAX calls to "chrome://..." urls (it fetches .html files that way and then displays the HTML on the page).
Is there any way in IE to access "chrome://"-like URLs? Or - more generally - is there any way I can make an AJAX call to retrieve contents of a HTML file that is a part of the extension (and is not accessible online)?
Thanks a lot!
Tom

You want the res:// scheme. This doc is .net specific, but it gives you the basics of how the protocol is used.

Related

Problem loading javascript files in Internet Explorer 11 when accessed using http://localhost/<...>

I have a small html/javascript/jquery based application that uses Jquery Validate plugin for validation purposes. It fails to run in IE11 under certain conditions specified below
The issue is that if I try to access the application using the URL below it doesn't work
http://localhost/myapp/test.html
if I try to access the application using the URL below it works
http://127.0.0.1/myapp/test.html
if I try to access the application from another computer on the LAN
there is no problem
If I reset Internet Explorer settings fully then it starts working on Internet Explorer 11 also.
This behavior cannot be replicated on all IE 11 installed computers
Nothing additional is installed on the problematic computers
Thanks in advance for any tips to resolve this issue
Regards
Mathew
Before answering my question myself I would like to make clarify a statement in the original problem
The statement(s)
The issue is that if I try to access the application using the URL below it doesn't work
http://localhost/myapp/test.html
if I try to access the application using the URL below it works
http://127.0.0.1/myapp/test.html
need to be read as
The issue is that if I try to access the application using the URL below Jquery files are not loaded
http://localhost/myapp/test.html
if I try to access the application using the URL below Jquery is loaded
http://127.0.0.1/myapp/test.html
This was an issue related to the Compatibility settings in Internet Explorer.
It seems that current versions of Jquery will not load in Internet Explorer when it is in Compatibility mode
Resolved the issue by adding the meta tag below to the page header
This disables the use of Compatibility settings in IE

Can an iframe be loaded as if the content was rendered by a different browser?

I am currently creating a new version of a website that uses a third party service that can only be accessed through an iframe. This service exclusively works on Internet Explorer (not on Edge) in compatibility mode (and with certain security options set), while the new website is developed with more modern browsers in mind (mainly Chrome).
Is there any way to insert an iframe into the page, and make the iframe load its content with IE's engine even though the page containing it has been loaded in Chrome?
I'm not talking about the "user agent" field in the request header (as discussed in this question), I'm talking about rendering the response with a different browser's engine.
No, there isn't.
Not even if the computer has Internet Explorer installed.
iframes dont have a support for browser option selection. so this requirement cant be fulfilled. there is one plugin called ietab but its only for development purpose, which runes ie in chrome browser.

Spring: open word/excel in the browser

I'm developping a web server based on SpringFramework 4 and I hope to return some files and open them directly in the browser.
So far, I succeed to treat PDF by using Header Content-disposition: inline. But it is not working for word/excel. Google Chrome proposes to download the later or download/open by application.
So I hope to know
whether or not it's possible to open them directly in the browser
if yes, how to do that
As far as i know there is no built in Excel viewer for most browsers (IE is different because it is part of Windows, and so is Office). PDF is a different story ... there are loads of plug-ins available.
You might want to consider opening it in google docs, or office.com.
Apparently, there is a plugin available for firefox ... http://www.microsoft.com/en-gb/download/details.aspx?id=27106
BUT that does mean any users will have to have it installed for them to get the behaviour you want!

Why does Internet Explorer (or other browsers) use old JavaScript files when I try to debug my ASP.NET program?

I'm changing a .js JavaScript file in my ASP.NET MVC 5 solution, but when I go to debug the program, Internet Explorer 11 frequently loads old JavaScript files (caught chrome doing it too ). What is the problem here, some setting I'm missing? Even if it has the cached JavaScript file in its cache, shouldn't it load the new one with the newer modified date?
You can either read http://fiddler2.com/r/?httpperf to learn how browsers implement caching, or you can simply hit CTRL+F5 to get IE to bypass the cache.
IE cannot magically "know" that the server has a newer version without asking for it, which would defeat the purpose of having a cache in the first place.
change the setting via tools ->Internet options -> advanced -> enable the option empty internet temporary files folder when browser is closed
This worked for me
In explorer settings set the property to get files every time you visit the page.

Any Javascript functions to get homepage ,search provider ,favourites etc from browsers like Firefox and google chrome

my application is setting browserhome page ,search provider ,favourites etc to all supported browsers like googlechrome,firefox,internet explorer.My purpose is to automate my application using selenium .In case of IE these informationa are stored in registry . so it is easy for me to validate the above details .But for firefox and google chrome its bit problem .So i just want know whether there is any functions available in javascript to check browser homepage ,search provider,favourites etc in firefox and google chrome ?
The simple answer is no. It would be a security and privacy issue if client side js code could access that information. Instead you would need to use a browser extension, or in your case you can just use an external program with administrative rights. I am pretty sure that selenium does not have this functionality built in, however it is all available if you know where the browser stores it. IE uses the registry, but chrome and Firefox use proprietary files in their profile directories. There may be an library that does this, otherwise it is possible

Categories

Resources