Comments (13)
Additionally, all work is lost if a user hits the back button and possible
other actions like going to another page, then coming back. Users should never
lose work by leaving a page. They should be offered a choice to save or when
they return, the page should be restored, or both.
Original comment by [email protected]
on 12 Jun 2012 at 1:03
- Added labels: ****
- Removed labels: ****
from blockly.
I tried to install this extension to my Chrome but it says
"CRX_MAGIC_NUMBER_INVALID". I wonder if it is a problem with my system or
Chrome.
Original comment by [email protected]
on 13 Jun 2012 at 7:55
- Added labels: ****
- Removed labels: ****
from blockly.
Are you using Chrome 19? What operating system are you using? It installs fine
for me.
You could try downloading a ZIP of the repository and then going to Extensions,
Developer Mode, and clicking Load unpacked extension.
Original comment by [email protected]
on 13 Jun 2012 at 4:54
- Added labels: ****
- Removed labels: ****
from blockly.
integrated extension into code demo
http://www.gasolin.idv.tw/public/blockly/demos/code/index.html
Plan to use local storage to save current work though
Original comment by gasolin
on 14 Jun 2012 at 12:28
- Added labels: ****
- Removed labels: ****
from blockly.
That's cool. Consider using FileSaver.js to support saving to a file on more
browsers.
https://github.com/eligrey/FileSaver.js
To make the load button look nice on non-modern browsers is a bit more work.
http://www.quirksmode.org/dom/inputfile.html
You might want to add an onunload event to confirm the user intends to leave
the page.
Original comment by [email protected]
on 14 Jun 2012 at 4:39
- Added labels: ****
- Removed labels: ****
from blockly.
Experimental version at
http://www.gasolin.idv.tw/public/blockly/demos/code/index.html
Using FileSaver.js and BlobBuilder.js to support saving to a file on more
browsers (tested on Chrome and firefox), and remove the JQuery dependency.
Will commit if there are no obvious issues.
Original comment by gasolin
on 15 Jun 2012 at 2:22
- Changed state: Accepted
- Added labels: ****
- Removed labels: ****
from blockly.
The code looks great. You might want to remove the following comment as window
is not required.
"Run on loadInput.click() from window.realClick."
https://github.com/bootstraponline/save_load_blockly_demos/commit/ae043a227a75cc
e39576c203378cb599592f2ce7
Original comment by [email protected]
on 15 Jun 2012 at 4:25
- Added labels: ****
- Removed labels: ****
from blockly.
Hi,
I recommend that following changes:
Change "Clean" button to "New" and add "Do you want to save changes?"
"New" is a more standard english name for the function.
A warning dialog should be provided is any work is not saved that shows the
following:
Do you want to save changes?
Save Discard Cancel
Original comment by [email protected]
on 15 Jun 2012 at 7:15
- Added labels: ****
- Removed labels: ****
from blockly.
committed in r246
salmodan's request has been ticketed to Issue 40
Original comment by gasolin
on 16 Jun 2012 at 7:37
- Changed state: Fixed
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from blockly.
Is it possible to add save/load to the Maze demo? So far it only seems enabled
on the code demo.
Original comment by [email protected]
on 2 Jul 2012 at 11:21
- Added labels: ****
- Removed labels: ****
from blockly.
gasolin, could you update to the latest FileSaver.js and Blob.js? The
BlobBuilder API is deprecated and is being replaced with the new Blob API, so
you'll want to update it for future compatibility once BlobBuilder is removed
from browsers.
Original comment by [email protected]
on 24 Jan 2013 at 4:26
- Added labels: ****
- Removed labels: ****
from blockly.
Also, I should note that the latest FileSaver.js also supports IE10 so you can
now support IE10 if you already did in all of your other code.
Original comment by [email protected]
on 24 Jan 2013 at 4:28
- Added labels: ****
- Removed labels: ****
from blockly.
roger that, since blockly itself encourge to use cloud storage but not support
local storage any more, I keep update local storage implementation at
https://github.com/gasolin/BlocklyDuino/tree/master/blockly/apps/blocklyduino
Original comment by gasolin
on 27 Jan 2013 at 3:28
- Added labels: ****
- Removed labels: ****
from blockly.
Related Issues (20)
- JSON Export Import HOT 1
- Need plain "Return" w/o IF HOT 1
- When using blockly maze and puzzle etc the drop down arrows on the blocks don't operate on an iPad. HOT 1
- 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
- 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
- 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?
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.