This is probably a completely stupid question but I have started working with the Atom shell.
I have a index.html
with a login code. I encourage jquery form validation in the document drawn in this way:
$ (function () {$ ('# login-form') . ();});
This script loads before the body is finished:
& lt; Script src = "global /js/dom-bootstrap.js"></script>
When I run the page with Atom shell, the form appears properly and verification works partially. This form does not submit, but it does not show any recognition then when I submit a form once on the same page (eg, reload the page) everything works well!
Also includes tab.js
of bootstrap, firstly it does not work, but it works just fine after reloading a page.
What am I doing wrong?
This is my main.js
(based on the example of Atom shell from Gitb):
Requires Var app = ('app'); // Modules Var BrowserWindow = Required to control application life ('browser-window'); To create the original browser window // module // report crashes on our server ('crash reporter') is required to start () .; // Keep a global context of the window object, if you do not, the window will automatically be closed when the Java / JavaScript object is GCII. Var mainWindow = null; // All windows close / close app.on ('window-all-closed', function () (if (process.platform! = 'Darwin') app.quit ();}); // This method Will be called when the atom-shell has started everything and is ready to create a browser window. App.on ('ready', function () {// Create a browser window. MainWindow = New browser window ({icon: ' Global / images / logo.png ', transparent: true, frame: wrong, "minimum-width": 520, "minimum-height": 850, fullscreen: true, resize: true, "usage-content-size": true }) ; Main window.webcontract.on (load 'index', 'function'), and load index.html of app.MainWindow.loadUrl ('file: //' + __dirname + '/ Index.html '); // emitted on window closure.MainWindow.on (' off ', function () {// window object, normally you will store windows // in the array if your app is multi window , It is the time when you should delete the same element. MainWindow = null;})}};
No comments:
Post a Comment