Are you connected to the internet? Meaning, can the file http://gorgeousapps.com/donotdelete.gif be downloaded? (try it in a browser, you should get a dark gray background with a white pixel in the middle)
It's happening during the Login_Clicked event, which transpiles as an async function.
So the _token var is an empty string, and it attempts to run BANano.CheckInternetConnectWait (transpiled as await banano_isconnectedWait()), and it fails. As a result, in the Else block, it says that we aren't connected.
I initially created a dummy donotdelete.gif, and put it on the 51042 server. I wasn't sure exactly where, so I placed it in the root, the objects subfolder, and files.
1. Run the Client code to generate the app
2. Start the Chrome Webserver plugin and point to the folder where client.html is
3. Start the B4J server
4. Browse to the Chrome Webserver (e.g. http://127.0.0.1:8887/client.html)
Opening the html by double clicking it will not work (it needs a cookie). Are your cookies enabled?
Are you connected to the internet? Meaning, can the file http://gorgeousapps.com/donotdelete.gif be downloaded? (try it in a browser, you should get a dark gray background with a white pixel in the middle)
1. Run the Client code to generate the app
2. Start the Chrome Webserver plugin and point to the folder where client.html is
3. Start the B4J server
4. Browse to the Chrome Webserver (e.g. http://127.0.0.1:8887/client.html)
Opening the html by double clicking it will not work (it needs a cookie). Are your cookies enabled?
That is what you can't do. You have to open your browser and 'surf' to your Chrome Webserver by typing http://127.0.0.1:8887/client.html in the browser.
If you open the html file from disk, (you see file:// in the browser), then it will not work as in case of opening a file this way, the browser has cookies restrictions.
Open the console (F12) in the chrome browser and see if it gives you errors. Maybe we can get a clue from there.
That is what you can't do. You have to open your browser and 'surf' to your Chrome Webserver by typing http://127.0.0.1:8887/client.html in the browser.
If you open the html file from disk, (you see file:// in the browser), then it will not work as in case of opening a file this way, the browser has cookies restrictions.
Open the console (F12) in the chrome browser and see if it gives you errors. Maybe we can get a clue from there.
Yes, that's what I did initially. That window is open. But it's not possible to double-click on it, since we're not working from the desktop. But I typed it in, and also F6 and <Enter>, and <F5> to try a refresh. Done all of those things, initially.
Anyway, let me try this tonight from a different location. This wouldn't be the first time going crazy, when it turned out that some firewall was in place that the office didn't tell us about.
Many web servers cache the content of the website. This means that a changed JavaScript (app.js) will not be reloaded even if <F5> is pressed. Sometimes it helps to press <Ctrl> + <F5>. The Chrome developer console also has a checkbutton "Disable cache" in the tab Network, which you can activate:
If all this does not help, you can give the app.js a new name each time you transpose. This should work in any case:
I'm actually more interested in the translated Javascript code and the inline js. I explored that at the office in the afternoon, and really enjoy seeing the magic happen. Good stuff.
Looking forward to the version with inline php support. That's mainly what I do at the office.