Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

instructions

  • Loading branch information...
commit b7803afe692654a42b5794259effd0b3ad7cbcd1 1 parent d3a6a18
@kmendes authored
Showing with 31 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +29 −0 Instructions.txt
View
2  .gitignore
@@ -0,0 +1,2 @@
+
+jquery-phototag.zip
View
29 Instructions.txt
@@ -0,0 +1,29 @@
+Demo and unit testing: tests/photo_tags/index.html
+
+
+1. Reference css and javascript files:
+<link media="screen" type="text/css" href="/static/photo-tag/libraries/jquery-ui-1.8.11.custom.css" rel="stylesheet">
+<link media="screen" type="text/css" href="/static/photo-tag/tests/photo_tags/styles2.css" rel="stylesheet">
+<script type="text/javascript" src="/static/photo-tag/libraries/jquery.dev.1.5.1.js"></script>
+<script type="text/javascript" src="/static/photo-tag/libraries/jquery.ui.1.8.11.js"></script>
+<script type="text/javascript" src="/static/photo-tag/js/jquery.phototag.js?ver=1"></script>
+
+2. Call the photo tag plguin on load:
+$(document).ready(function(){
+ $('.photoTag').photoTag({
+ requesTagstUrl: '/static/photo-tag/tests/photo_tags/photo-tags.php',
+ deleteTagsUrl: '/static/photo-tag/tests/photo_tags/delete.php',
+ addTagUrl: '/static/photo-tag/tests/photo_tags/add-tag.php',
+ parametersForNewTag: {
+ name: {
+ parameterKey: 'name',
+ isAutocomplete: true,
+ autocompleteUrl: '/static/photo-tag/tests/photo_tags/names.php',
+ label: 'Name'
+ }
+ }
+ });
+});
+
+3. Add the image
+<img src="http://karlmendes.com/static/photo-tag/tests/photo_tags/monkeys2.jpg" class="photoTag userId_25 imageId_200 albumId_200">
Please sign in to comment.
Something went wrong with that request. Please try again.