Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c00f1e29

Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt

  • ID c00f1e29f10d6b371dffc401f6e2c5d11eeb16c5
  • Vorgänger f844f1e2
  • Nachfolger 85f6594f

ClientJS: AJAX-Form-Submit mit jQuery-Form-Plugin

Unterschiede anzeigen:

js/kivi.js
38 38
      });
39 39
  };
40 40

  
41
  ns.submit_ajax_form = function(url, form_selector, additional_data) {
42
    $(form_selector).ajaxSubmit({
43
      url:     url,
44
      data:    additional_data,
45
      success: ns.eval_json_result
46
    });
47

  
48
    return true;
49
  };
50

  
41 51
  // Return a function object by its name (a string). Works both with
42 52
  // global functions (e.g. "check_right_date_format") and those in
43 53
  // namespaces (e.g. "kivi.t8").

Auch abrufbar als: Unified diff