
jquery.iframe-transport.js
About this file
Refer to jQuery's Iframe Transport plugin. See extracted documentation for GitHub link.
Code Check Report
14:1 error Unnecessary semicolon no-extra-semi 21:17 error Unexpected require() global-require 47:64 error Script URL is a form of eval no-script-url 75:36 warning Function has a complexity of 9 complexity ✖ 4 problems (3 errors, 1 warning) 1 error and 0 warnings potentially fixable with the `--fix` option.
Documentation drawn from source code
/*
* jQuery Iframe Transport Plugin
*
* Copyright 2011, Sebastian Tschan
*
* Licensed under the MIT license:
*/
/* global define, require, window, document */
;(function (factory) {
if (typeof define === 'function' && define.amd) {
}(function ($) {
$.ajaxTransport('iframe', function (options) {
/*jshint scripturl: true */
/*jshint scripturl: false */
send: function (_, completeCallback) {
).bind('load', function () {
.bind('load', function () {
window.setTimeout(function () {
$.each(options.formData, function (index, field) {
options.fileInput.after(function (index) {
options.fileInput.each(function (index) {
options.fileInput.each(function (index, input) {
abort: function () {
'iframe text': function (iframe) {
'iframe json': function (iframe) {
'iframe html': function (iframe) {
'iframe xml': function (iframe) {
'iframe script': function (iframe) {