Openlayers IE security issue - javascript

I'm working on a project that is using the OpenLayers ordinance survey for mapping and have been running into a very awkward issue. The issue only seems to live in Internet Explorer. The problem is as follows;
When loading the map, OpenLayers creates a dynamic .js file and inside this file there is a line of code that does the following :
setImgSrc:function(a){var b=this.imgDiv;b.style.visibility="hidden";b.style.opacity=0;a&&(this.crossOriginKeyword&&("data:"!==a.substr(0,5)?b.setAttribute("crossorigin",
this.crossOriginKeyword):b.removeAttribute("crossorigin")),b.src=a)}
The problem resides on the b.src=a line, everytime I run in IE ONLY I get a0x800c000e - JavaScript runtime error: A security problem occurred.
I've done research so far and having been turning up many leads, most of what I see is hosting images on your own server, but the resources are not available to accomplish this. If anyone can shed any kind of light on this issue it will be greatly appreciated.
Using Openlayers Version 2.12

Uh, provide some examples of 'a'?
Also, go to https://msdn.microsoft.com/en-us/library/ie/ms775145(v=vs.85).aspx , find INET_E_SECURITY_PROBLEM, and see if the errors codes shown look relevent. Eg. could it be a certificate error?

Related

Unexpected identifier on javascript import statement

I am trying to implement Google Analytics API using the GitHub javascript files and their demo html files. I am getting this error in Chrome(V67), IE(11) and Edge.
The line of code the error is reporting is
import AccountSummaries from 'javascript-api-utils/lib/account-summaries/account-summaries.js';
The program doesn't seem to know what the "import" statement is. I've seen this error reported here by others and I've tried many of their recommendations (including changing the statement to script type="module"... but nothing works. I acquired the code from GitHub so I assumed it works "as is" with minor changes to js files to accommodate my file path structure. I've struggled with this for a few weeks now so any help would be greatly appreciated.

Cloud9 Stuck on loading screen

I was tinkering around with my preferences trying to get emmet working for jsx files and I ended up turning on plugin manager. Now my projects won’t load and I can’t turn the plugin manager off without being in a project. Here is a screenshot:
C9 Error Screenshot
I have no idea how to fix this and from what I’ve googled the only thing I’ve seen that was close was this thread where the solution was that he had a browser plugin that disabled referrers. From what I’ve googled on the subject Chrome doesn’t allow referrer disabling so I’m not sure if this is the fix or not, nor do I know how to do it in Chrome. If anyone could help me out that would be great.
Also in the screenshot I've included the console. Some errors popped up as well as a notification of this:
[OT] Ace session not ready for: /weatherApp/src/containers/search_bar.js - will setSession when ready!
which would be the open file in c9. Not really sure what this means either and I didn't see any solutions when I googled the issue. Any help on this issue would be appreciated as I don't have access to any of my projects in c9 which is what I mainly use for an editor.
Thanks,

how to use google maps in meteor cordova app for IOS

I have been trying to get google maps working with meteor and cordova on IOS (testing with simulator), but after tinkering with for longer than I care to admit, I just can't get it working.
I started with the article:
http://blog.thebakery.io/native-ios-maps-with-meteor-and-cordova/
I manage to install and compile it successfully after I generating google app keys for both Android and IOS and adding them to mobile-config.js as follows:
App.configurePlugin('plugin.google.maps', {
'API_KEY_FOR_ANDROID': 'my-andriod-key',
'API_KEY_FOR_IOS': 'my-ios-key'
});
When I tried to run it though, all I got was a blank white screen.
I then looked around for an alternative and found:
https://github.com/gwendall/meteor-google-maps-cordova
This also compiled without error but again all I got was a blank white screen.
After reading about a little more I also install geolocation just incase it was required:
meteor add mdg:geolocation
No joy :(
As a last attempt I tried looking for a meteor google maps implementation that did not use Cordova and lifted the template script to see if it would work.
https://github.com/dburles/meteor-google-maps-demo
No luck.
I am quite new to Meteor and so I have reached the limit of my abilities to figure it out.
Has anyone else tried implementing google-maps on Meteor with Cordova? I would appreciate any example or suggestions of how to get it working.
-- UPDATE --
After searching some meteor posts for google-maps issues I did find one that suggested adding some access rules to mobile-config.js
App.accessRule('https://*.googleapis.com/*');
App.accessRule('https://*.google.com/*');
App.accessRule('https://*.gstatic.com/*');
After this I am now at least not getting a completely blank screen. When I look at is through safari developer tools I can see there is a google-maps window generated but it is an empty grey element with a google logo in the corner and doesn't load the acutual map.
Sounds like you are doing the right things, I definitely needed to add the following rules to mobile-config.js
App.accessRule('*');
App.accessRule('https://*.googleapis.com/*');
App.accessRule('https://*.google.com/*');
App.accessRule('https://*.gstatic.com/*');
App.configurePlugin('plugin.google.maps', {
'API_KEY_FOR_IOS': 'your private key' });
Perhaps revisit google console to ensure you have set up both Javascript and IOS credentials correctly

Node JS Leaflet tile serving from same domain error

I have been using the script at: http://leaflet-cdn.s3.amazonaws.com/build/master/leaflet.js
running this web application to overlay tilelayers: http://www.wherewillplantsgrow.com/
Since 2 days ago, an issue has started where tiles start getting called where they weren't called before causing slow tiles serving and tiles images not found errors.
The map js code gist is here:
https://gist.github.com/abdelhas/40cd9d1ed932578bb6cf
My question is has anyone encountered this issue before? is there a problem with my script (i haven't touched it for a week now) or with the leaflet script above (possibly after an update).
Thank you in advance!
Don't use http://leaflet-cdn.s3.amazonaws.com/build/master/leaflet.js: the version behind that script will change. Use a versioned URL: see the 'Use a Hosted Version' of Leaflet part of this page

Downlodify is not working, no error message at all

I have the latest shock wave (11.9.900.117) add-on installed to my Firefox (24).
When i download and run the sample test.html file nothing is happening.But when i run the same demo linked (http://pixelgraphics.us/downloadify/test.html) HTML from Git hub works as expected.
Also i have tried this with my project too, same kind of output, nothing happens but the button hides.There are no error messages shown or can be caught since i cant go through the swfobject.js file.
I am using javascript alone, not jquery etc.
Is there anything that i am missing some basic stuffs?
Also asked in https://github.com/dcneiner/Downloadify/issues/34.
Any simple working examples would be helpfull.!!
Thanks in advance.
I know this question is old, but for anyone who encounters the same problem, here is how I solved it.
If you want to run Downlodify from the local filesystem you need to edit the Flash Player Global Security Settings and add the Downlodify folder as a trusted location.
Currently the settings can be edited here. The location URI looks like this file:///C:/Users/Name/Desktop/Downloadify-master

Categories