Jump to content

Query on outputting php with js


Dexlin

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.