jQuery-comments plugin not running
NickName:RyeGuy Ask DateTime:2016-08-23T04:17:23

jQuery-comments plugin not running

There a exist a brilliant comments plugin that I would like to implement on my site. It can be found here https://github.com/Viima/jquery-comments.

However I am having difficulty getting anything to appear when I try to implement it (first time using a plugin). Any suggestions would be great. Below is my code. (I would provide a JSFiddle however the external resources require links starting with "https.." and mine begin with "http...")

HTML

<!doctype html>
<html>
    <head>
        <meta name=description content="">
        <meta name=viewport content="width=device-width, initial-scale=1">

        <link rel="stylesheet" type="text/css" href="http://**MYURL**.net/jquery-comments.css">
        <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
        <script type="text/javascript" src="http://**MYURL**.net/jquery-comments.js"></script>
    </head>

    <body>
        <div id="comments-container"></div>
        <script type="text/javascript">
        $('#comments-container').comments({
        getComments: function(success, error) {
            var commentsArray = [{
                id: 1,
                created: '2015-10-01',
                content: 'Lorem ipsum dolort sit amet',
                fullname: 'Simon Powell',
                upvote_count: 2,
                user_has_upvoted: false
            }];
            success(commentsArray);
        }
        });
        </script>
    </body>
</html>

Copyright Notice:Content Author:「RyeGuy」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39088019/jquery-comments-plugin-not-running

More about “jQuery-comments plugin not running” related questions

How to extend jquery-comments plugin?

I am using this jquery-comments plugin: https://github.com/Viima/jquery-comments/blob/master/js/jquery-comments.js I'd like to extend the plugin with my own functionality. According to this post,...

Show Detail

jQuery-comments plugin not running

There a exist a brilliant comments plugin that I would like to implement on my site. It can be found here https://github.com/Viima/jquery-comments. However I am having difficulty getting anything...

Show Detail

AJAX requests to Node.JS to update JSON file for Jquery-comments

Jeez... How about that title, terrible lol. Well I am using jquery-comments by Viima. (http://viima.github.io/jquery-comments/) I'm trying to use ajax commands to a Node.JS script that will updat...

Show Detail

Installing plugin to application running on Linux SUSE

I have an application running on a SUSE Linux Enterprise Server 11. A plugin is available which is installed by running an installation program (which unpacks, creates directories and registry entr...

Show Detail

running the camera plugin on cordova its showing error

H:\Ionic apps\camera>ionic cordova plugin add cordova-plugin-camera cordova plugin add cordova-plugin-camera --save × Running command - failed! [ERROR] An error occurred while running cordova

Show Detail

Specify Eclipse Version for running a Plugin

Currently I started to work again with the development of an Eclipse plugin using Eclipse Oxygen 3a. If I run the plugin, it uses Eclipse Oxygen version 1a from fall last year. This is the last tim...

Show Detail

script/plugin : not running on windows

I'm using Paperclip, a Rails pluging for file upload. I'm following the Railscast about it for setting it up. In the Railscasts at http://railscasts.com/episodes/134-paperclip, R.B. runs the follow...

Show Detail

Getting Sample Jenkins plugin running

I'm trying to get the sample Jenkins plugin (https://github.com/jenkinsci/hello-world-plugin) running. I'm using the maven plugin for Eclipse For the most part, it's working, but I'm getting an err...

Show Detail

Running jetty-maven-plugin in production

I'm working on smart new web application, and I like jetty-maven-plugin that helps me in my work. Did somebody tryied running app with jetty-maven-plugin in production environment? What are pros &...

Show Detail

Maven Clojure Plugin Not Running Tests

I am trying to create a simple project with maven that uses Java, Scala, and Clojure. I have simple test classes for each language, however when running mvn test, the clojure tests are not executin...

Show Detail