Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Idea: Automatic Refreshing Iframe #68

cawoodm opened this Issue Dec 14, 2012 · 2 comments


None yet
2 participants

cawoodm commented Dec 14, 2012

Instead of 2 editors it would make sense, on big screens to have my code on the left and my web app on the right. When I save, scripted should simply refresh the <iframe> on the right.


aclement commented Dec 14, 2012

The side panel on the right, which is currently hosting the second editor is going to be able to host all kinds of things, one of which is likely to be the running app (which hopefully will be live updateable without the need to refresh). We've only had time to stick one editor in at the moment. I'll leave this issue open until the 'running-app pane' is implemented. Users will be able to extend the editor to provide their own panes too.

cawoodm commented Dec 19, 2012

Quickfix Idea: It's trivial to frame Scripted and my application in a left/right frameset. I can do this by myself:

<frameset cols="50%,50%">
        <frame name="scripted" src="http://localhost:7261/editor/..."></frame>
        <frame name="myframe" src="http://localhost/myapp/index.html"></frame>

I just need Scripted to call window.top.frames[1].document.location.reload(); whenever I save in Scripted. To this end we should make "cmdJS" commands possible as an alternative to console/OS commands in "exec".

"exec": {
        "afterSave": {
            "*.*": {
                        "cmdJS" : "window.top.frames[1].document.location.reload();"


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment