Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "elitejax", | ||
"version": "v2.0.0", | ||
"version": "v2.0.1", | ||
"description": "Simplifying Ajax Requests Using HTML attributes", | ||
@@ -5,0 +5,0 @@ "main": "./build/elitejax.min.js", |
@@ -13,18 +13,2 @@ # elitejax | ||
#### **Example** | ||
* To send an AJAX request to the spotify API Endpoint, searching for artists by name: | ||
```html | ||
<form data-elitejax="true" name="spotify" action="https://api.spotify.com/v1/search" method="get"> | ||
Enter Artist name: <input type="text" name="q"><br /> | ||
<input type="hidden" name="type" value="artist"> | ||
<input type="submit" value="Submit"> | ||
</form> | ||
<!-- include elitejax library from bower components directory --> | ||
<script src="bower_components/elitejax/build/elitejax.min.js" charset="utf-8"></script> | ||
``` | ||
### **Installation** | ||
@@ -41,8 +25,2 @@ --- | ||
NB: You can't load elitejax as a node module | ||
### **Sample Usage Video** | ||
[![elitejax](eliteJAX.png)](https://youtu.be/Hg9Xilkc5M0) | ||
### Usage Without javascript | ||
@@ -62,5 +40,10 @@ If your request returns data as JSON, you can add to the DOM from that object without javascript using the `data-post` and `data-postTo` attributes in your form element. | ||
</form> | ||
<script src="path/to/javascript" charset="utf-8"></script> | ||
``` | ||
The above will place the result in the div element with .result class. | ||
### **Sample Usage Video** | ||
[![elitejax](eliteJAX.png)](https://youtu.be/Hg9Xilkc5M0) | ||
### Exclude form field | ||
@@ -67,0 +50,0 @@ ___ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1
554589
112