daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // prepare the form when the DOM is ready
  2. $(document).ready(function() {
  3.     // bind form using ajaxForm
  4.     $('form[id=minmaxprice]').ajaxForm({
  5.         // dataType identifies the expected content type of the server response
  6.         dataType:  'xml',
  7.  
  8.         // success identifies the function to invoke when the server response
  9.         // has been received
  10.         success:   processXml
  11.  
  12.     });
  13.    
  14. });
  15.  
  16. function processXml(responseXML) {
  17.     // 'responseXML' is the XML document returned by the server; we use
  18.     // jQuery to extract the content of the message node from the XML doc
  19.     var result = $('cena', responseXML).text();
  20.  
  21.          $('#kontener').html(
  22.          result
  23.        );
  24.  
  25.  
  26.     //alert(message);
  27. }
RAW Paste Data
Top