Here it was necessary to perform the operation inverse to the jQuery.serialize () method, i.e. on the GET line fill out the form. It seems I did not find anything, I thought that it would be faster to write than to dig. I’m distributing what I’ve done to everyone, maybe someone will save an hour or two.
Take here:
github.com/maxatwork/jquery.deserialize')
UPD: Thank you all for bug reports!
UPD: Comrade
nayjest suggests that we need applications.
I needed to navigate the ajax search results:
- the form is serialized, the result is written in window.location.hash
- when the page loads, the data from location.hash is deserialized, and the form is sent to the server.
Then it remains to search without reloading the page, but you can still copy the link to the issue result and send it to your friend, for example.
In the case of the
jQuery Form Plugin, it looks like this:
$(document).ready() { $("#searchForm") .ajaxForm( myFormCallback ) .deserialize(window.location.hash) .submit() .change( function () { window.location.hash = $(this).formSerialize(); $(this).submit(); }); function myFormCallback(response) {