• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/web/javascript/jquery/

Lines Matching refs:form

6  * Examples and documentation at: http://malsup.com/jquery/form/
18 Do not use both ajaxSubmit and ajaxForm on the same form. These
20 to bind your own submit handler to the form. For example,
41 form does not have to exist when you invoke ajaxForm:
61 * an HTML form using AJAX.
72 var method, action, url, $form = this;
94 // hook for manipulating the form data before it is extracted;
97 this.trigger('form-pre-serialize', [this, options, veto]);
99 log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
103 // provide opportunity to alter form data before it is serialized
127 this.trigger('form-submit-validate', [a, this, options, veto]);
129 log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
147 callbacks.push(function() { $form.resetForm(); });
150 callbacks.push(function() { $form.clearForm(options.includeHidden); });
168 callbacks[i].apply(context, [data, status, xhr || $form, $form]);
175 var mp = 'multipart/form-data';
176 var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
204 this.trigger('form-submit-notify', [this, options]);
258 var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
265 el = $(form[a[i].name]);
270 el = $(form[a[i].name]);
276 if ($(':input[name=submit],:input[id=submit]', form).length) {
278 // able to invoke the submit fn on the form (at least not x-browser)
345 sub = form.clk;
352 s.extraData[n+'.x'] = form.clk_x;
353 s.extraData[n+'.y'] = form.clk_y;
376 // make sure form attrs are set
377 var t = $form.attr('target'), a = $form.attr('action');
379 // update form attrs in IE friendly way
380 form.setAttribute('target',id);
382 form.setAttribute('method', 'POST');
385 form.setAttribute('action', s.url);
390 $form.attr({
391 encoding: 'multipart/form-data',
392 enctype: 'multipart/form-data'
418 // add "extra" data to form if provided in options
426 .appendTo(form)[0]);
432 // add iframe to doc and submit the form
440 form.submit();
444 form.setAttribute('action',a);
446 form.setAttribute('target', t);
448 $form.removeAttr('target');
660 * ajaxForm() provides a mechanism for fully automating form submission.
665 * is used to submit the form).
667 * used to submit the form).
668 * 3. This method binds the submit() method to the form for you.
672 * the form itself.
695 .off('submit.form-plugin', this.selector, doAjaxSubmit)
696 .off('click.form-plugin', this.selector, captureSubmittingElement)
697 .on('submit.form-plugin', this.selector, options, doAjaxSubmit)
698 .on('click.form-plugin', this.selector, options, captureSubmittingElement);
703 .bind('submit.form-plugin', options, doAjaxSubmit)
704 .bind('click.form-plugin', options, captureSubmittingElement);
729 var form = this;
730 form.clk = target;
733 form.clk_x = e.offsetX;
734 form.clk_y = e.offsetY;
737 form.clk_x = e.pageX - offset.left;
738 form.clk_y = e.pageY - offset.top;
740 form.clk_x = e.pageX - target.offsetLeft;
741 form.clk_y = e.pageY - target.offsetTop;
744 // clear form vars
745 setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100);
751 return this.unbind('submit.form-plugin click.form-plugin');
755 * formToArray() gathers form element data into an array of objects that can
758 * an array for a simple login form might be:
771 var form = this[0];
772 var els = semantic ? form.getElementsByTagName('*') : form.elements;
785 if (semantic && form.clk && el.type == "image") {
787 if(!el.disabled && form.clk == el) {
789 a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
811 if (!semantic && form.clk) {
813 var $input = $(form.clk), input = $input[0];
817 a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
824 * Serializes form data into a 'submittable' string. This method will return a string
858 * Returns the value(s) of the element in the matched set. For example, consider the following form:
860 * <form><fieldset>
867 * </fieldset></form>
921 (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
953 * Clears the form data. Takes the following actions on the form's input fields:
967 * Clears the selected form elements.
986 * Resets the form data. Causes all form elements to be reset to their original value.
1041 var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');