Standalone AJAX library inspired by jQuery/zepto

Overview

ajax

Standalone AJAX library inspired by jQuery/zepto

Installation

component

component-install ForbesLindesay/ajax

Then load using:

var ajax = require('ajax');

Or load using a script tag (downloads are available here)

<script src="ajax.min.js"></script>

Then just refer to it in your script as ajax

API

ajax(url, settings)

url A string containing the URL to which the request is sent. settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with ajax.settings. See ajax(settings) below for a complete list of all settings.

ajax(settings)

settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with ajax.settings.

For a list of available settings see:

http://api.jquery.com/jQuery.ajax/

License

MIT

If you find it useful, a payment via gittip would be appreciated.

viewcount

Comments
  • add .license property

    add .license property

    The component.json spec now recommends that a .license property is populated to help users search for components that their organization may utilize due to licensing restrictions. If your component is not MIT licensed then please close this pull-request and adjust the .license property appropriately.

    opened by component-bot 2
  • doesn't work with component/builder2.js

    doesn't work with component/builder2.js

    var r = require
    type = r('type')
    

    causes component/builder2.js to not be able to substitute 'type' with "[email protected]");. I've raised the issue at https://github.com/component/builder2.js/issues/47 also.

    opened by azhang 1
  • Enable Sourcegraph

    Enable Sourcegraph

    I want to use Sourcegraph for ajax code search, browsing, and usage examples. Can an admin enable Sourcegraph for this repository? Just go to https://sourcegraph.com/github.com/ForbesLindesay/ajax. (It should only take 30 seconds.)

    Thank you!

    opened by kimhyungchae 0
  • Allow overriding .xhr() function in options

    Allow overriding .xhr() function in options

    This seems like an oversight... you should be able to overwrite this function, especially if you want to use this with a mocking library like Mockjax.

    opened by diurnalist 0
  • add .license property

    add .license property

    The component.json spec now recommends that a .license property is populated to help users search for components that their organization may utilize due to licensing restrictions. If your component is not MIT licensed then please close this pull-request and adjust the .license property appropriately.

    opened by component-bot 0
  • add .license property

    add .license property

    The component.json spec now recommends that a .license property is populated to help users search for components that their organization may utilize due to licensing restrictions. If your component is not MIT licensed then please close this pull-request and adjust the .license property appropriately.

    opened by component-bot 0
  • dependence error

    dependence error

    when I use ajax with webpack, it show error like that: ERROR in ./~/component-ajax/index.js Module not found: Error: Cannot resolve module 'type' in /Users/jackielin/work/github/store/node_modules/component-ajax @ ./~/component-ajax/index.js 8:9-18

    This is because package.json no type dependent. And here occurs error. Please fix it. Thank you!

    opened by JackieLin 2
  • script tag download `400` error

    script tag download `400` error

    This line does not link to a valid download link. Or load using a script tag (downloads are available [here](https://component.jit.su/ForbesLindesay/ajax/download))

    opened by XAMPPRocky 0
  •  Uncaught TypeError: object is not a function

    Uncaught TypeError: object is not a function

    I'm not sure why this isn't working. I am using the library from npm.

    ajax({
                method: "DELETE",
                url: "/api/v1/useraccount_settings/quick_work_sites/1"
            });
    
    

    ajax exists, and i can call ajax.get(); etc, but I can't use the syntax described on the readme.

    opened by raysuelzer 0
  • Webpack error: Module not found: Error: Cannot resolve module 'type'

    Webpack error: Module not found: Error: Cannot resolve module 'type'

    This hack (https://github.com/ForbesLindesay/ajax/commit/18dbb6ce77d320e7f12183571b0d85114efb3430) don't work with webpack. I use npm, but webpack try to require component's module 'type'.

    opened by burtovoy 2
Highly customizable checkboxes and radio buttons (jQuery & Zepto)

iCheck plugin 1.0.3 Highly customizable checkboxes and radio buttons for jQuery and Zepto. Refer to the iCheck website for examples. Note: iCheck v2.0

Dar Gullin 7.4k Dec 25, 2022
Highly customizable checkboxes and radio buttons (jQuery & Zepto)

iCheck plugin 1.0.3 Highly customizable checkboxes and radio buttons for jQuery and Zepto. Refer to the iCheck website for examples. Note: iCheck v2.0

Dar Gullin 7.5k Aug 24, 2022
Jquery-actualizer - jQuery ajax actualizer

jQuery AJAX Actualizer Include jQuery & this plugin into your HTML file and use this js code: $('#target').actualizer('a'); On click at any A element,

Šimon (Simon) Rataj 1 Jul 28, 2020
A lightweight jQuery Ajax util library.

Just Wait Wait what? The server response. Just Wait is a lightweight jQuery utility that allows you to specify a function to be executed after a speci

Omar Muscatello 2 Jun 22, 2022
Examples of how to do query, style, dom, ajax, event etc like jQuery with plain javascript.

You (Might) Don't Need jQuery Frontend environments evolve rapidly nowadays and modern browsers have already implemented a great deal of DOM/BOM APIs

NEFE 20.3k Dec 24, 2022
we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Understanding DOMs, JQuery, Ajax, Prototypes etc.

JavaScript-for-Complete-Web Development. we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Underst

prasam jain 2 Jul 22, 2022
Simple patch that adds a 'progress' callback to jquery Ajax calls

Jquery Ajax Progresss A simple patch to jQuery that will call a 'progress' callback, using the XHR.onProgress event Usage Simply include the script on

Chad Engler 118 Sep 8, 2022
pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button.

pjax = pushState + ajax pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles,

Chris Wanstrath 16.8k Jan 5, 2023
infiniteScrollWithTemplate - JQuery plugin for ajax-enabled infinite page scroll / auto paging with template

jQuery Infinite With Template Plugin JQuery plugin for ajax-enabled infinite page scroll with template. If you like jQuery until now, this little libr

이삼구 2 Mar 19, 2021
A jQuery plugin to submit forms with files via AJAX and to get a response with errors.

jquery-ajaxform A jQuery plugin to submit form with files via AJAX and to get a response with errors. Browsers without FormData uses iframe transport

gozoro 2 Mar 30, 2021
Live port of Lark's standalone parser to Javascript

Lark.js Generate LALR(1) parsers in Javascript Lark is a popular parsing toolkit for Python. This project is a live port of the Lark standalone parser

Lark - Parsing Library & Toolkit 51 Nov 19, 2022
qrcode generation standalone (doesn't depend on external services)

jquery.qrcode.js jquery.qrcode.js is jquery plugin for a pure browser qrcode generation. It allow you to easily add qrcode to your webpages. It is sta

Jerome Etienne 4.8k Dec 29, 2022
A lightweight, standalone package to integrate full PWA features into Remix 💿

Remix PWA PWA integration & support for Remix Remix PWA is a lightweight, standalone npm package that adds full Progressive Web App support to Remix ?

Abdur-Rahman 220 Jan 3, 2023
Standalone Epub reader using Bibi.

bi-epub-reader Epub reader application using Bibi. Features Beautiful epub viewer Open file as associated file type Standalone application You can see

azu 8 Aug 5, 2022
GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schemas (Federation, Stitching)

GraphQL Hive GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schem

Kamil Kisiela 184 Dec 21, 2022
NFT Marketplace framework to build standalone NFT marketplace or inApp/inGame NFT marketplace

NFT Marketplace This project is a decentalized NFT Marketplace framework which is to be the baseline for you to build standalone NFT marketplace or in

Reddio, inc. 14 Dec 19, 2022
Ajax library with XHR2, promises and request limit

qwest 4.5.0 ⚠ I finally decided to archive this repository. ⚠ At first, I developed Qwest because at the time other libraries were lacking of a proper

Aurélien Delogu 718 Sep 14, 2022
A minimalist Javascript library to perform AJAX POST and GET Request.

minAjax.js A minimalist Javascript library to perform AJAX POST and GET Request. #Check Pretty Documentation http://flouthoc.github.io/minAjax.js/ #Us

null 6 Apr 27, 2021
A slick loader to use during your AJAX calls or data processing

Slick Loader A slick loader to use during your AJAX calls or data processing Doc Installation Simply import slick-loader into your HTML. <link rel="st

Zenoo 1 Jan 21, 2022