Problem witch load()
-
Hi. I try use jQuery function load() to refresh page with wavesurfer plugin and if I call function the I get error :
Uncaught TypeError: Cannot read property 'name' of undefined
$j(document).on('ready ajaxComplete wavesurfer', function(event, request, settings) { if (typeof settings !== 'undefined') { if (settings.success.name === 'wavesurfer_wp_ajax') return; } else { WaveSurferInit(); } });
In line:
if (settings.success.name === 'wavesurfer_wp_ajax') return;
Using load():
jQuery("#div").load(location.href + " #div");
How i can fix this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem witch load()’ is closed to new replies.