Lukeidiot Posted November 17, 2010 Share Posted November 17, 2010 Hello. If you notice at this link: http://atomos.tumblr.com/post/1583437551 At the bottom there is a link labeled, "Show more notes.". I am trying to devise a way to make this automated using PHP. Heres the link, or javascript for "Show more users"... <a class="more_notes_link" href="#" onclick="this.style.display='none';document.getElementById('notes_loading_1598703430').style.display = 'inline';if(window.ActiveXObject)var tumblrReq=new ActiveXObject('Microsoft.XMLHTTP');else if(window.XMLHttpRequest)var tumblrReq=new XMLHttpRequest();else return false;tumblrReq.onreadystatechange=function(){if(tumblrReq.readyState==4){var notes_html=tumblrReq.responseText.split('<!-- START '+'NOTES -->')[1].split('<!-- END '+'NOTES -->')[0]; if(window.tumblrNotesLoaded)if(tumblrNotesLoaded(notes_html)==false)return;var more_notes_link=document.getElementById('more_notes_1598703430');var notes=more_notes_link.parentNode;notes.removeChild(more_notes_link);notes.innerHTML+=notes_html;if(window.tumblrNotesInserted)tumblrNotesInserted(notes_html);}};tumblrReq.open('GET','/notes/1598703430/WpyI5vO1W?from_c=1289946513',true);tumblrReq.send();return false;">Show more notes</a> Link to comment https://forums.phpfreaks.com/topic/218936-injecting-javascript-with-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.