Comments (14)
Same problem on IE8
Original comment by [email protected]
on 20 Jun 2012 at 1:01
from blockly.
[deleted comment]
from blockly.
Do note on the future wiki page, Neil notes "IE support (definitely 10, maybe
earlier?)."
http://code.google.com/p/blockly/wiki/Future
I am assuming that means version 10 of IE
Original comment by Techplex.Engineer
on 30 Oct 2012 at 11:13
from blockly.
As I understand it, IE9 was the first to support SVG. Thus unless one has
Adobe's plugin, Blockly will never run in IE8 or earlier. Unconfirmed reports
indicate that Blockly does run in IE10. Blockly is known not to run in IE9,
though we don't know why.
The fundamental issue is that nobody on the development team has access to a
Windows computer. We've done limited testing using the Photobooth in the
lobby, but it doesn't have a keyboard, which makes debugging challenging.
Original comment by [email protected]
on 30 Oct 2012 at 11:19
Attachments:
from blockly.
blockly works fine on IE9 provided you make the follow two things:
* load es5-shim.js
* set render engine to IE9 (not quirk mode)
after that it works fine, you can check here (loads ES5 shim, change render
mode to IE9 on your machine):
http://marianoguerra.github.com/json-edit/eflang/
Original comment by [email protected]
on 26 Nov 2012 at 11:42
from blockly.
[deleted comment]
from blockly.
adding this to the head section forces IE to use the latest render engine (or
chrome frame if available)
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" >
I added it to this page and it works fine:
http://marianoguerra.github.com/json-edit/eflang/
no need to change anything on IE :)
Original comment by [email protected]
on 26 Nov 2012 at 11:52
from blockly.
With what I found so far, I would agree with @luismarianoguerra except:
* One must also account for IE treating the css attribute "height: 100%;"
slightly different than others, see the attached css_height_100_ex.png for an
example. As suggested at
http://stackoverflow.com/questions/4954147/css-100-height-in-ie; on the
frame.html
(http://code.google.com/p/blockly/source/browse/trunk/demos/iframe/frame.html)
within the style div starting at line 10, add 'height:100%;' to the html, body
style definitions to make it:
<style>
html, body {
background-color: #fff;
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
}
.blocklySvg {
height: 100%;
width: 100%;
}
</style>
From my limited initial testing, this solution is also backwards compatible
with other browsers.
* I am also finding a slight mismatch between the cursor position and the
location of the SVG block location. See attached svg_ex_1 and svg_ex_2 for
examples. Unfortunately the screen grabs did not get the mouse cursor however
the effects of the mismatched positions can be seen where the blocks are
attempting to snap together. This behavior is not limiting to the usage of
Blockly however it is less than ideal. An explanation of this behavior would
require more research however hopefully in stating the issue, one who knows SVG
nuances in IE will comment.
Michael
Original comment by [email protected]
on 6 Jan 2013 at 9:48
Attachments:
from blockly.
Issue 111 has been merged into this issue.
Original comment by [email protected]
on 5 Feb 2013 at 4:42
from blockly.
I didt some debug on IE9 in current version.
es5-shim.js
Solved the first issues
######
IE can not handle parent element of svg
In Blockly.SvgComponent.prototype.enterDocument
element.parentElement;
Is undefined in IE.
A test replace agains an document.getElementById() works.
######
In Blockly.Xml.workspaceToDom
xml.appendChild(element);
Is undefined in IE.
######
In Blockly.TopComponent.prototype.populateDom_
this.toolbox_ = Blockly.Toolbox.getInstance();
// TODO(scr): Once use of getInstance is removed, change to this line:
// this.toolbox_ = new Blockly.Toolbox(this.getDomHelper());
There is no getInstance in IE
Original comment by [email protected]
on 17 Feb 2013 at 8:25
from blockly.
Original comment by [email protected]
on 8 May 2013 at 5:23
- Changed state: Accepted
from blockly.
r1081, r1082, r1083 fixed most IE9/10 issues. The next step is to add DOCTYPEs
and force IE9 into standards mode. With that, most of the apps work.
The Graphing calculator toolbox doesn't display all the blocks it should as in
IE9, even with these fixes.
Original comment by [email protected]
on 12 Jul 2013 at 7:07
from blockly.
Marking fixed because IE9 is mostly supported. Will open separate issues for
remaining bugs.
Original comment by [email protected]
on 13 Jul 2013 at 1:12
- Changed state: Fixed
from blockly.
i found a solution with my team..
we note that problem occurs in a append command in Blockly.Xml.workspaceToDom.
before:
Blockly.Xml = {};
Blockly.Xml.workspaceToDom = function(a)
{
var b;
Blockly.RTL && (b = a.getWidth());
var c = goog.dom.createDom("xml");
a = a.getTopBlocks(!0);
for (var d = 0, e; e = a[d]; d++)
{
var f = Blockly.Xml.blockToDom_(e);
e = e.getRelativeToSurfaceXY();
f.setAttribute("x", Blockly.RTL ? b - e.x : e.x);
f.setAttribute("y", e.y);
c.appendChild(f)
}
return c
};
after:
Blockly.Xml = {};
Blockly.Xml.workspaceToDom = function(a)
{
{
var b;
var c = goog.dom.createDom("xml");
var returnValue = (new XMLSerializer()).serializeToString(c);
Blockly.RTL && (b = a.getWidth());
a = a.getTopBlocks(!0);
for (var d = 0, e; e = a[d]; d++)
{
var f = Blockly.Xml.blockToDom_(e);
e = e.getRelativeToSurfaceXY();
f.setAttribute("x", Blockly.RTL ? b - e.x : e.x);
f.setAttribute("y", e.y);
var aux = (new XMLSerializer()).serializeToString(f);
returnValue += aux;
}
return returnValue;
};
now, we dont return xml.. now the return is a string with the xml code.
Original comment by [email protected]
on 13 Mar 2015 at 8:06
from blockly.
Related Issues (20)
- Number of app's lang-manu HOT 2
- turtle trail does not show on Android Nexus 10
- Blockly.Xml.workspaceToDom doesn´t work on Safari HOT 2
- context menu on tablets HOT 1
- Non Printing Text Characters
- [deleted issue]
- [deleted issue]
- Color dropdowns not listening for touch events HOT 1
- Trashcan Lid animation uses CPU when idle HOT 1
- Uncollapsing duplicated block "Connection already in database" error HOT 2
- Code blocks can become misaligned when moving a set of blocks with a "break out of loop" attached to it out of a loop HOT 1
- Mouse wheel scrolling fails to scroll blockly scroll bars up or down HOT 1
- Blocky GUI is pushed from view when a long text string is entered into a block HOT 1
- If block breaks when click on the star. HOT 1
- Blockly games not running correctly on chrome! HOT 4
- Headless blockly doesn't work for function/procedure calls with parameters HOT 1
- How to create types to restrict connections between few custom blocks? HOT 1
- change name on google + HOT 1
- Left-Right-Up-Down movement in Blockly JS HOT 1
- testing window['Audio'] is not sufficient HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockly.