Wpis z mikrobloga

@amarantowy:

The data option can contain either a query string of the form key1=value1&key2=value2, or an object of the form {key1: 'value1', key2: 'value2'}. If the latter form is used, the data is converted into a query string using jQuery.param() before it is sent. This processing can be circumvented by setting processData to false. The processing might be undesirable if you wish to send an XML object to the server;
  • Odpowiedz
@amarantowy:

success
Type: Function( Anything data, String textStatus, jqXHR jqXHR )

A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server […]

Jeśli w zmiennej data otrzymujesz zawartość całej strony oznacza to, że twój kontroler zwraca taką odpowiedź do twojego wywołania ajaksowego.
  • Odpowiedz