javascript - Can't detect Click on cross-domain iframe when change it's src via jquery -


i've list of items on click update iframe src accordingly. , iframe src cross-domain url (amazon link).

i'm using jquery plugin detect first time when src of iframe changed via jquery doesn't detect. think there document ready issue.

here snippet of code

 $('iframe').iframetracker({     blurcallback: function(){         alert('sd');         $('.play').val(1);         var dt = new date();         var time = dt.gethours() + ":" + dt.getminutes() + ":" + dt.getseconds();         $('.playtime').val(time);         //  data save         alert();         $.post('save_link',{link:$('iframe').prop('src'),type:$('iframe').data('type')},function(result){             alert(result);         });     } }); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -