Several JavaScript callbacks are available for use with Cardinal Store Locator. The purpose of the callbacks is to allow developers to add custom functionality with JavaScript and/or jQuery upon certain events that happen when using the plugin. The function names at the top of the following pages are executed at the time of these events. Note that the functions need to be defined prior to the main jquery.storelocator-min.js script, which is loaded before the closing body tag of the site.
- AJAX data callback
- Auto geocode success callback
- Before location data request callback
- Close directions callback
- Create marker callback
- Custom sorting callback
- Directions request callback
- Filters callback
- Form values callback
- Geocoding restrictions callback
- Location list click callback
- Map set callback
- Marker click callback
- Modal open callback
- Modal ready callback
- Nearest location callback
- No results callback
- Notification callback
- Page change callback
- Region callback
- Success callback