• Resolved malepiwo11

    (@malepiwo11)


    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?

    • This topic was modified 5 years, 2 months ago by malepiwo11.
    • This topic was modified 5 years, 2 months ago by malepiwo11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter malepiwo11

    (@malepiwo11)

    I have in source:

    <progress class="wavesurfer-loading" value="0" max="100"></progress>

    And player not show

    Plugin Author X-Raym

    (@x-raym)

    I have no idea what you are trying to do and how you are processing but it doesnt seems it is an error in my code.

    I can’t really help with plugin modding,
    but what I can tell you is that you have to check how I call jqery function in my javascript. It is not the standard way, I use jquery strict.

    Have fun modding !

    Thread Starter malepiwo11

    (@malepiwo11)

    jQuery("#div").load(location.href + " #div");

    This code i use in site, not in plugin code.

    My problem is that if I have a DIV block on the page with players listed with the function foreach () and I try to reload this block with the function load () then I get the above error, and instead of players I have a loading bar.

    Could you help solve this problem?

    • This reply was modified 5 years, 2 months ago by malepiwo11.
    Plugin Author X-Raym

    (@x-raym)

    I’m not sure I can help there :S I’m not familiar with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem witch load()’ is closed to new replies.