ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Like Button: Using jQuery and AJAX to dynamically modify entries

January 07, 2012 5:57am

Subscribe [2]
  • #1 / Jan 07, 2012 5:57am

    ross

    3 posts

    I need to make a “like” button, quite similar to what you would use on Facebook. (Seems odd there is only 1 plugin in existence currently. It is not quite what I need unfortunately)

    Workflow would look something like this:
    1: Page load > like buttons grab “like” value from entry

    2: User clicks like > like button refreshes to new value > new value written to entry (no page refresh)

    3: Like button for unique entry cannot be clicked by the same user twice


    I’m am using:
    - The External Entries plugin (selects and updates)
    -  jQuery / AJAX (inline posts and functionality)
    - PHP when necessary

    I’m not very experienced with AJAX (yet), so I’m looking for some advice on how I can dynamically modify EE database tables without traditional php methods. Also I’m trying to decide on the best way to accomplish #3; ip address? Session variables?

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases