nowAy is a JavaScript library designed to make easier the HTML DOM element creation and manipulation, event handling, css, very simplified AJAX.
It is free, under the open-source MIT license.
It is based on JavaScript object
Created by Gokul J S from ROAMSOFT
.
- Create an element easily, and fast,
- You can pass multiple classes or attrubites at a time.
- It enables you a writing in-line code.
- Other features are updated soon
var noway = window._noway;
noway.debug = false;
var obj = { "element": "div", // You may use any type of element "id": "example_id", "class": "example_class" (or) ["example_class",...], "attr": {"key1":"value1", "key2":"value2",...}, "text": "example text", "html": "<\p\>example html<\/\p\>", "append": "#id" (or) ".class" (or) HTMLElement object, }; noway.createElem(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "text": "example text", }; noway.text(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "html": "<\p\>example html<\/p\>", }; noway.html(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "attr": {"key1":"value1", "key2":"value2",...}, }; noway.attr(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "class": "example_class" (or) ["example_class",...], }; noway.addClass(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "class": "example_class" (or) ["example_class",...], }; noway.removeClass(obj); // Result will done automatically and returns the created HTMLElement object (or) errors
var obj = { "element": "#id" (or) ".class" (or) HTMLElement object, "class": "example_class" (or) ["example_class",...], }; noway.hasClass(obj); // Return boolean