• Hi there, I would like to add a custom behaviour after search (aka the page must scroll after result loaded) however I cannot attach anything to the search button click as your code uses unbind() and it seems it’s not possible to access the google.maps instance to use google.maps.event.addListener because it’s buried into your own function and not accessible on general scope (it’s saved as variable ‘s’).

    Is there any solution? Does your plugin send any js event to DOM?

    • This topic was modified 2 years, 5 months ago by frafor.
    • This topic was modified 2 years, 5 months ago by frafor.
Viewing 1 replies (of 1 total)
  • Hi there!

    The easiest way to add custom behaviour after search is using the “ajaxComplete” event. Since all the searches are performed via AJAX, you can inject your own custom code on that event.

    It could look like:

    jQuery(document).ready(function () {
      jQuery(document).ajaxComplete(function () {
        // your custom code here  
      });
    });

    I hope that works for you. Let us know otherwise.
    Regards,

Viewing 1 replies (of 1 total)

The topic ‘How to access javascript object for custom behaviour?’ is closed to new replies.