Saltar navegación

[Resuelto] I'm getting a WPViews is not defined error

This support ticket is created hace 6 años. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 6 años.

Asistido por: Minesh.

Autor
Mensajes
#1176401

On the home page of the site we have a map that loads with our office locations

We have a function to reload the map based on the searched item

For some reason we get an error and we wanted to know if you have any suggestions to avoid the error

Thanks for your time and talk soon

#1176714

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - what if you try to wrap the function with document.ready method.

For example:

jQuery( document ).ready( function() {

function reloadmapthanks() {
WPViews.view_addon_maps.reload_map('map-1')
}
});