Dexlin Posted July 27, 2012 Share Posted July 27, 2012 Hi all, I am wondering how other companies use js to implement features that a client can use on there site. What i mean is that a company has a feature like facebook comments for instances and to use the feature you just reference as a js file then it renders the content without including other files. I want to know how it works as i have a comment system i'm building along with the site and instead of including files to call the function/class etc i would like to use js to render the comments form plus comments. I hope people understand what i'm saying as i can not see how it works. So you don't need to touch php at all to implement/embed the feature into a site, apart from making the backend code to create the function/class to do it. Many thanks Link to comment https://forums.phpfreaks.com/topic/266336-query-on-outputting-php-with-js/ Share on other sites More sharing options...
Mahngiel Posted July 27, 2012 Share Posted July 27, 2012 I am wondering how other companies use js to implement features that a client can use on there site. A public API request to your site yields the content for the JS to use / loop through. Typically this is done with either XML or JSON. Link to comment https://forums.phpfreaks.com/topic/266336-query-on-outputting-php-with-js/#findComment-1364866 Share on other sites More sharing options...
scootstah Posted July 28, 2012 Share Posted July 28, 2012 I'm having trouble understanding what exactly you're trying to do, but I THINK you're talking about AJAX. Link to comment https://forums.phpfreaks.com/topic/266336-query-on-outputting-php-with-js/#findComment-1365006 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.