detox Posted October 21, 2009 Share Posted October 21, 2009 I need to view the outputed html of the javascript tags but all i ever see is the script tags again, never the actual source. I received a javascript snippit code from an affiliate site. i cannot paste javascript into my webpage, because the tags get stripped so i would like to be able to paste the script into some kind of editor that displays the output thank you Quote Link to comment https://forums.phpfreaks.com/topic/178516-need-to-view-javascript-output-to-copy-resulting-source-code/ Share on other sites More sharing options...
Psycho Posted October 22, 2009 Share Posted October 22, 2009 Without knowing how the javascript is outputting the HTML there is no way to help you. The JS is probably writing the HTML to the page using a document.write, changing the value of an objects innerHTML parameter or soemthign else. If you need to get the HTML output you are going to need to build a custom solution to do so. Quote Link to comment https://forums.phpfreaks.com/topic/178516-need-to-view-javascript-output-to-copy-resulting-source-code/#findComment-942332 Share on other sites More sharing options...
.josh Posted October 25, 2009 Share Posted October 25, 2009 get any number of a million live dom inspectors out there (for instance, firebug). They will allow you to see what is actually rendered that the viewer sees. Then just c/p it and hardcode it wherever. fyi this may or may not work out for you... have no idea what this "affiliate script" is or what it's supposed to do but it's probably dynamically generated content for a reason... example..banner ad script? Not gonna dynamically generate no more, and good possibility you won't get credit for the impression/click! I suggest you contact this "affiliate" and ask them if they have a noscript solution, like an image request or something. Again,Ii have no idea what this script is for or what it's supposed to be doing so that's about where the advice ends. Quote Link to comment https://forums.phpfreaks.com/topic/178516-need-to-view-javascript-output-to-copy-resulting-source-code/#findComment-943751 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.