Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 3

Like Objective:-

To implement the like button for the ekshiksha website.


Like button will be created by using the html language. The action events will be implemented by using
the javascript , ajax and java servlet.
Functionality:-
This is just a simple button with a label to show the number of likes. Whenever the user clicks
the like button then the like count will be incremented in the database by using the ajax response. After
clicking the like button will turn into unlikeby using javascript! and cookie will be set with infinite
expired time so that the user could not allowed to like more than once if he enables the cookies.
"t will take the url of the parent page which includes the iframe and save the likes according to that. #o
the one who want to use this plugin can give the iframe src to the likes html. $n the interface we will
be showing the number of likes of the webpage .
Steps to include like in your webpage
%! "nstall mys&l and server in your machine, And identify the port of your mys&l and give that
port number in the url of the ConnectionFactory.java file.. 'or the connection you should
need to have com.mysql.jdbc.jar , servlet-api.jar and jdk version%.(! recommended..
#et the classpath in your environment variables for above ) jar files if you are not using an
"*+ like netbeans.
! ,reate the two tables as given below in your database.. -ive that database name in the url
of the ConnectionFactory.java file for getting the connection with database.
"! url#likes$ url#id integer primary key% url varc&ar % n#likes int!
""! user#likes$url#id integer 'oreign key re'erencing url#likes$url#id!% ltime varc&ar%ip
varc&ar!
)! Take the project and put that in a prescribed folder of your server for getting access.
.! 'or including the like functionality in your web page use /iframe0 tag with
src12index.html2
3! -ive the width and height for the iframe in your webpage. Width more than %34px is
recommended for best viewing.
5! While accessing make sure that the server is running and getting the connection with the
database.
Comment Objective:-
"mplementing the comment functionality , which can be used in the iframes of the website.
,omment box can be created by using the html and the re&uest response will be implemented by using
the ajax.
Functionality:-
This functionality is like a facebook comment functionality. Whenever user posts the comment in the
webpage, then the database will be updated by using the ajax response with the java servlet class. The
posting will be done by clicking the enter in the textarea. "f the user want the new line he can use
s&i't(enter. "t stores the comments based on webpage url. "t takes the url of the parent page which
includes the comment iframe and stroes the comments according that url in the database. $n loading
the iframe we will show the top . comments o f that webpage by getting the response from the servlet
using ajax. "f the number of comments are more than . then we will show view more comments to the
user. #o that the user can see all the comments by clicking on the view more comments.. "f the page
doesn6t contain any comments then we will show no comments.
We will display the username of the user who commented if he he logged in otherwise we will show
guest. We will show all the comments with the time and date below the comment.
Steps to include Comment i'rame in your webpage
%! "nstall mys&l and server in your machine, And identify the port of your mys&l and give that
port number in the url of the ConnectionFactory.java file.. 'or the connection you should
need to have com.mysql.jdbc.jar , servlet-api.jar and jdk version%.(! recommended.. #et
the classpath in your environment variables for above ) jar files if you are not using an "*+ like
netbeans.
! ,reate the two tables as given below in your database.. -ive that database name in the url of
the ConnectionFactory.java file for getting the connection with database.
i!comment#url$url#id integer primary key % url varc&ar!
ii!comment#in'$c#id integer primary key%comment varc&ar %url#id integer%
user#id integer %time varc&ar% ip varc&car
)! Take the project and put that in a prescribed folder of your server for getting access
.! 'or including the like functionality in your web page use /iframe0 tag with
src12index.html2
3! -ive the width and height for the iframe in your webpage. Width more than )44px and
height more than .44px is recommended for best viewing.
5! While accessing make sure that the server is running and getting the connection with the
database.

You might also like