Blockly is an open-source web-based, graphical programming environment that enables users to write JavaScript, Python, PHP, and Dart programs by moving around blocks. Developers can extend it to integrate with their own apps. It has been translated into over 40 (human) languages.
Questions tagged [blockly]
197 questions
1
vote
0 answers
Integrate JavaScript implicit includes to AngularJS partial views
I am trying to create an AngularJS application that uses Google Blockly, using some partial views inside my application.
Attempting to set up the JS dependencies of Blockly inside Angular, I noticed that the core JS library of the Blockly framework…

Nick Louloudakis
- 5,856
- 4
- 41
- 54
1
vote
1 answer
"Uncaught TypeError: Cannot set property..." on Blockly
I am starting coding on Blockly but I have a problem when I try to create new blocks. The steps I made:
Download the Blockly application code.
I put all the files in a folder named Blockly.
I created a new html file in that folder to see if the…

Francisco Romero
- 12,787
- 22
- 92
- 167
1
vote
1 answer
How to highlight a Blockly error using JS Interpreter?
Actually my requirement is to highlight the block which has an error in its particular js functions.
We are developing the blocks using Blockly. Suppose I am applying one logic(functions) in Blocky, then that blocks will parse to js.
Then I need to…

bagya
- 383
- 1
- 11
- 38
1
vote
1 answer
how to add a click event in blockly's blocks?
I am working on blockly, I am having a scenario that I am having a block which is having an Image, I want to click on that Image and fire an event. I am not sure how can I do that. I have tried blcokly's documentation but there is no such mention.…

Novice
- 401
- 7
- 27
1
vote
1 answer
Blockly text input blur
I have small problem about blockly.
I need to call some event (for example alert('hello world') ) when someone blurs text input.
I used Blockly.addChangeListener, but this function is not called when someone create blur event on text input.

Michal Sládeček
- 99
- 1
- 7
1
vote
1 answer
Require.js and document.write()
I want to load a .js file asynchronously using require.js, but what I get is this error:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is…

ReyamOki
- 83
- 2
- 8
1
vote
1 answer
Blockly - Reference Error: functions not defined
I'm attempting to use Blockly to do a "make your own game" sort of thing, and for the most part it works. However, when trying to run code generated (by Blockly's own pre-defined function generators) by declaring a function and calling it, I…

Emp
- 21
- 6
1
vote
1 answer
How to add the "Functions tab" to Google's blockly
According to the Demo that comes with blockly, we only have logic, loops, maths and text options when generation our code. here: https://blockly-demo.appspot.com/static/demos/generator/index.html
How do I add the functions and variables tab since…

Solid Business
- 35
- 7
1
vote
2 answers
using Blockly's addChangeListener() function from Dart (js interop)
I've been writing some wrapper code to access the Blockly API from Dart, using dart:js. All is going smoothly until I need to pass a function to one of Blockly's event registration functions on the JS side.
The function in question in Blockly is…

John Evans
- 6,858
- 4
- 28
- 26
1
vote
1 answer
blockly : code variables
I've just discovered "blockly" and it is exacly what i was looking for to take my webApp to the next level.
The problem i have is that i don't realy understand how i can initiate python or js code variables.
Here is my block…

user2196728
- 2,915
- 3
- 16
- 15
0
votes
0 answers
Why do Blocks in Blockly losing CSS and looking bad
I'm using Blockly to create a block-based programming interface, but I'm having an issue where the blocks sometimes lose their CSS and end up looking bad. I suspect that some other function in my code is damaging the style, but I can't seem to find…

Sleeper
- 47
- 4
0
votes
0 answers
Method to execute JS code securely, with control over starting/stopping and also exposing specific API's to the code
I'm using blockly in my electron app, and I wanted a way to be able to execute the user's code. I originally inserted a script into the HTML with the generated code from my preload file, but I'm not able to stop the code from running, because from…

willbill
- 80
- 1
- 9
0
votes
0 answers
Task state is not persisted on backwards navigation
For an Ionic app that works with Blockly, the task should be persisted.
This works well when a task has been completed successfully. However, this ends as soon as I go backwards in the navigation.
For saving the state of a successfully completed…

user21737298
- 1
- 2
0
votes
0 answers
Blockly: Changing the print block to output to div, during code execution and not after completion
The default behaviour is for the print block, in blockly, to output print statements in an alert() and outputs are outputted immediately after the block is executed and before the rest of the blocks (in a stack) are executed.
In trying to make the…

sw123456
- 3,339
- 1
- 24
- 42
0
votes
0 answers
How Can I use the blockly with my own create blockly?
I want to know how can I use my own create block in blockly, I have the toolbox xml, my workspace created.
Integrate my workspace with my new blocks created for programming in JS

Rich
- 1