Loading...
Skip navigation

JavaScript

JavaScript Events

The vehicle search extension provides the following JavaScript events for configuring behavior.

  • fahrzeugsuche.after_refresh_data Event which is triggered when the vehicle data is updated.
  • fahrzeugsuche.after_list_initialization Event which is triggered when the vehicle list is initialized.
  • fahrzeugsuche.after_show_detail Event which is triggered when vehicle details are shown.
  • fahrzeugsuche.after_initialization Event which is triggered when the initialization is finished.
  • fahrzeugsuche.set_bookmark_count Event which is triggered when the vehicle count on bookmarks changed.
  • fahrzeugsuche.set_list_count Event which is triggered when the vehicle count on list changed.

Example:

jQuery(function() {
  jQuery(window).on('fahrzeugsuche.after_list_initialization', function() {
    fahrzeugsuche.list.limit = 50;
  });
});

This example sets the list limit on initialization to 50 vehicles per page.

Next example publishes the current amount of reminded bookmarks:

jQuery(function() {
  jQuery(window).on('fahrzeugsuche.set_bookmarks_count', function(event, count) {
    jQuery('.side-links .number').text(count);
  });
});

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
9PC_________AWL______
F______M______2___IHG
M6F___QZU___4O9______
3_I____I______4___TTG
Q62_________5PU______