How can you retrieve a pages source code (after javascript has ran) using PHP? -
on page, javascript adds lot of classes on page load (depending on page). how can wait til javascript has added classes, html using either javascript or php different file?
when page has finished loading, post rendered source php script using ajax.
$(function() { var data = $('body').html(); $.post('/path/to/php/script', data); });
(this example assumes you're using jquery)
Comments
Post a Comment