Prompt window


#1

I have looked and havent found an answer for this so

Can atom run a prompt window? ie JS prompt(“blah blah blah”)

When I go preview pane It never shows the prompt. So to test I have to open in a browser.


#2

You’re using a package to execute your JavaScript? Which package?


#3

i have javascript-snippets installed


#4

That’s a snippets package. What package are you using to generate the preview pane?


#5

atom-html-preview


#6

Mind sharing your code so that I can try to observe what’s going on?


#7

not at all

Best way to share?


#8

A gist is very convenient if it’s one document. If there’s more than one, uploading it to a GitHub repo is a great way to show off your code because it lets someone else download it and have exactly the same files that you’re working with. It doesn’t sound like your code is very complex, but if multiple changes need to be made, it’s easier for the person asking for help to read and understand the differences in a pull request than talking over a forum can really manage.


#9

Okay when I get home tonight it’s not very complicated at all since I’m
just starting. Just getting tired of having to open its in Chrome or some
other browser to preview I just thought maybe there was a way to make Atom
and HTML preview open it


#10

It should be able to run your code, but I can’t tell you anything useful about your situation without experiencing it.


#11

[https://gist.github.com/anonymous/62e3e03cc9bd1c70f1cb02201a7b6b61]


#12

Okay, I’ve looked at it and it does seem like the preview package cannot run any of the dialog box functions. I looked at the package repo and it hasn’t been updated since July.

If you want to test your logic from within Atom, you will probably have to use an input tag.


#13

ok cool thanks for all the help i appreciate it!