javascript - A problem when Inject ajax to colorbox -
i have wordpress plugin play vedio. developer has long gone. play vedio button not working. firebug can see code works till bpl_split_response(response); firebug says it's not defined. checked ajax file comes plugin, there isn't "bpl_split_response". point me else check problem?
jquery(document).ready( function() { var j = jquery; j("a.link-play").live('click', function() { var link = j(this).attr('id') link = link.split('-'); j.post( ajaxurl, { action: 'link_lightbox', 'cookie': encodeuricomponent(document.cookie), 'link_id': link[2] }, function(response) { var rs = bpl_split_response(response); if ( rs[0] >= 1 ) { j.fn.colorbox({ html: rs[1], maxwidth: '90%', maxheight: '90%' }); } }); return false; } ); });
bpl_split_response
function must have been defined in js file not getting included anymore in page. file may have been removed or function has been deleted.
this function not part of ajax response. works on response. therefore need find piece of code or rewrite if possible.
good luck :)
Comments
Post a Comment