I am trying to create gravatar auto load while user is writing his e-mail in a form field. Now, I’ve got php function, that will generate gravatar url with required paramaters and it work all over the website.
Now, when user types valid e-mail I should call jQuery:
image.attr("src", "<?=$this->Gravatar(" + input.attr('value') + ");?>");
But is this possible to pass this parameter to PHP function?
if I understood well you would like to do the following:
You can’t really perform this without any request to the server, but you can make an easier way
prepare a gateway script to call your PHP function and send it a param with get
should look something like:
than when the user enters an email you can get it this way
and like that you avoid using Ajax with a straight AJAX call