Running jquery in IE9 in an xml file in Local Intranet Zone - local

I have an xml file that renders a html using xslt. Nothing special here and it works in IE7 and IE8 just fine. However, in IE9 it does not render the jquery part of the file on "Local Intranet" zone
The file runs as http://localhost/xml/index.xml
Checked all the settings under custom in "Local Intranet" and all of them are enabled
Made sure that it runs on IE8 on the same browser using the developer tool.
Is there anything I am missing here?

I've had a similar problem and managed to get it to work in compatability mode.

Related

MVC site not showing correctly on IE11 browser from IIS, it shows correctly when IE11 is called from .NET IDE

My site works ok in Chrome and Firefox but i found some problems on IE11 from IIS (but it shows ok on IE11 when called from .NET IDE). main Menu page shows like this, as if it were taking a wrong Bootstrap version:
This is how the same site looks when called from IDE:
So this only happens on IE11, other browsers show this ok. This uses bootstrap 4.31, MVC 5. I don't think there is a real need to show it here since it doesn't look it's related to code (imo it has to be something IE11 specific) but i can add code in case it's needed.
Thanks!
Fixed, the problem was because the browser was using IE7 compatibility mode. Fixed by adding this in headers:
<meta http-equiv="x-ua-compatible" content="IE=11">
More info about this:
Here

Debugging javascript with Plunker

I am just starting out with Plunker, and I want to use Firefox or Chrome developer tools to debug javascript. It looks like the javascript files get cached the first time I open them in the debugger panel. How can I get the panel to refresh after I make changes to the javascript? (I've tried developer tools in Chrome and Firefox, and I've tried Firebug too)
in chrome:
open the developer tools
open the file you want to debug: Ctrl+O and type app.js or similar
set a breakpoint
the only tricky part is the 2nd step, since the file is in a very obscure location, fortunately Ctrl+O comes handy

Knockout with jquery mobile in Cefsharp

I'm facing an issue in knock out js,
I'm binding the options of the select control from an observabale array,
If the number of options are more, if I click on the select option, jquery mobile design gets hanged.
I'm using cefsharp form loading chrome page inside cefsharp,
The thing is the select feature works fine in chrome browser but not inside cefsharp,
I'm binding to the select control as follows,
Html,
<select name ="name" id = "name" data-bind ="options:namevalues">
Javascript,
<script>
function viewmodel()
{
var self=this;
self.namevalues = ko.observablearray(['abc','bcd']);
//many name values, say 20, it gets hanged inside cefsharp but works fine in chrome, no error console messages
}
Could someone help.
Have you tried loading the chrome dev tools?? It would enable to use breakpoints etc etc - a sane development experience.
in cefSettings:
PackLoadingDisabled=false
then (after the browserInitialised evennt has fired) call
_browser.ShowDevTools();
make sure you ship the 'pak' file in the bin dir (latest nuget version of cefSharp should take care of this in the targets)
then you should see another window open with the dev tools.
Hopefully that'll help diagnose your issue.
I've tried knockout and angular in there and both worked out fine (although angular needed some awkward route work)

How to force to open a Page in Document Mode as IE8

We have deployed our webapp, which was developed with JSF, Spring and Hibernate on Tomcat server in our internal network (intranet). When I test in my application in local it's working fine.
But once I deploy to DEV I come across style issues. When I have two dropdowns one after another, the top dropdown overlaps with another one.
This happens when I have Document Mode set to "IE7 standards." When I change Document Mode to "IE8 standards," everything works fine.
To force Document Mode to IE8 standards, I tried this meta tag in my section of the HTML document according to this link, but it didn't work for me:
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
How can I force my page to render according to IE8 standards on the intranet? Does my application render in IE8 standards on the internet?
EDIT :I see something in my develoer tools.Even though I kept my <meta> it after <head> but my primefaces styles and scripts are loading before to that.How can I resolve this?
Odd, this item was posted yesterday, not sure if it applies to your situation:
IE 8 will ignore the x-ua-compatible setting if it comes after the stylesheets. In order for IE to acknowledge the meta setting, put it at the top.
I am glad to tell I am finally able to resolve this issue by using this link in primefaces.And this post also helped to do it through entire application
http://blog.primefaces.org/?p=1433

jQuery Mobile - error loading pages using PhoneGap and WP7.5 - issue with security?

I have an app that runs fine using android phonegap 1.2 and jqm 1.0, and I'm attempting to port it to windows phone 7.5.
When the index.html page loads, the first thing is does is use a $.mobile.loadpage to load another html page. all i get on the wp7.5 app is the 'error loading page' message flash up briefly. if i put an href to the page on index.html i get the same error. to summarise:
running the index.html in a desktop browser works
running the app on android works
running the app on wp7.5 without calling another page works
jqm in ie (on wp7.5) can load other pages
if i link to a public jqm site from within the app, the public site works (ie jqm will load pages that are located on the www)
i have put $.support.cors = true; in the js code to enable cross site xhr requests
it seems to me that the only issue is when jqm tries to load a local file via ajax. i assume this has something to do with default security settings in the webbrowser control that phonegap uses?
can anyone shed any light on this?
I suspect this is WP7's insistence that all pages loaded from the "local website" are actually loaded from IsolatedStorage.
In the newer Phonegap / Cordova WP7 project templates there is a file maintained per build, CordovaSourceDictionary.xml which will do this for you.
Just make sure that whatever files you want to be able to navigate to / load (yes, you have to do it for images too) have a Build Actiion of "Content" in your project and when you build it, this xml will be updated automatically.
When your app runs the first thing Cordova does on WP7 is go through all the files in this XML file and copy them to isolatedStorage so they can be loaded / navigated to.

Resources