javascript - jQuery access DOM on https - mixed-content security -
html:
<section id="playing" class="gradient"> <div id="playing-header"> … </div> <div id="playing-carousel"> … </div> <div id="playing-info"> <a id="radio-star" class="" href="radio:star"></a> <div id="radio-track-info"> <h2 id="radio-track"> … </h2> <h2 id="radio-artist"> <a class="outgoing"> jay z </a> </h2> </div> <div id="thumb-container"> … </div> </div> <div id="loading" style="display: none;"></div> <div id="loading-throbber" style="display: none;"></div> <div id="station-error" style="visibility: hidden;"> … </div>
jquery:
alert($('#radio-artist .outgoing').text());
jsfiddle: http://jsfiddle.net/ct95n/
works on jsfiddle, not on website. returns empty. problem? check call jquery after dom?
thanks
edit: $(document).ready(function() { }; of course called in start, not point.
the problem firefox blocking content, since working on https website , trying data site. since site doesn't use jquery had append myself means adding http content inside of https website. think happens because adding jquery external source(appending) google via greasemonkey script.
this warning: http://i.imgur.com/ov19dfz.png
can somehow in better way?
the answer document isn't ready yet, should wait til doc loaded:
$(document).ready(function() { alert($('#radio-artist .outgoing').text()); });
Comments
Post a Comment