Zeradin Posted January 28, 2010 Share Posted January 28, 2010 There is a RSS parser that is php and outputs a simple html page. I want to include it with javascript on a page but I can't figure out how to get it to work. Everytime I try it comes up blank. Is there a way to do this? Quote Link to comment https://forums.phpfreaks.com/topic/190141-trying-to-include-a-php-generated-html-file-with-javascript/ Share on other sites More sharing options...
RussellReal Posted January 28, 2010 Share Posted January 28, 2010 you can't 'include' with javascript.. you can use ajax to get the contents, but it isn't the same as 'including' it w3schools.com has a good ajax example you could bridge off of, I think 80% of developers just copy that code anyway if they don't alrdy have it pre-written in their code library Quote Link to comment https://forums.phpfreaks.com/topic/190141-trying-to-include-a-php-generated-html-file-with-javascript/#findComment-1003328 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.