Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // prepare the form when the DOM is ready
- $(document).ready(function() {
- // bind form using ajaxForm
- $('form[id=minmaxprice]').ajaxForm({
- // dataType identifies the expected content type of the server response
- dataType: 'xml',
- // success identifies the function to invoke when the server response
- // has been received
- success: processXml
- });
- });
- function processXml(responseXML) {
- // 'responseXML' is the XML document returned by the server; we use
- // jQuery to extract the content of the message node from the XML doc
- var result = $('cena', responseXML).text();
- $('#kontener').html(
- result
- );
- //alert(message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement