I'm getting married! - More Details

Photo Notes - a flickr notes-esque photo annotation script

Overview


Photo Notes is a JavaScript implementation of photo "annotations".

Stylistically, it's based on Flickr's "Notes" feature. Under the hood, it's loosly based on the FotoNotes implementation. However, for the most part, it has been completely rewritten.

Photo Notes makes no attempt to serialize the notes in any way, as that is completely system and language dependent. Instead, it provides JavaScript objects and methods for displaying and manipulating the notes.

The Save and Delete functions have been stubbed out, and must be implemented separately. A typical Save method, for example, would make an AJAX call to the server, which would in turn save the note to a database.

How to use


Using the code is fairly straight forward:
/* create the Photo Note Container */
var container = document.getElementById('PhotoContainer');
var notes = new PhotoNoteContainer(container);

/* create a note */
var size = new PhotoNoteRect( 156,113,70,67);
var note = new PhotoNote('Hello World!',1, size);

/* implement the save/delete functions */
note.onsave = function (note) { return 1; };
note.ondelete = function (note) { return true; };
     
/* add it to the container */
notes.AddNote(note);
        

Example



  • Hovering over a note will display that note's title
  • Clicking on a note will allow you to move/resize/delete the note, as well as change it's text.
  • Click the "Add Note!" button to add a new note to the picture.


Versions

License



This library is licensed under the MIT License. You can use it for whatever you'd like, as long as the copyright notices remain in place.

Comments

Matias
Hello,it is a very good implementation the one that you have done, I congratulate you. I contact you because i do not understand as bundles to take the values of note then to save them with ajax. I hope that you could help me.
Thanks.
Dusty
The onsave method that you create, will get passed a "Note" object. This object will have all of the coordinates for the note that is being saved, along with the text. Basically, in your save method, you need to make an ajax call to save these values back to the server.

I use the AjaxPro (http://www.ajaxpro.info/) library for ASP.NET. You can see the examples on that page, it's pretty simple to setup and use.

In the next few days I'm going to release a new version of the library. With that I will try to include more examples, including actually saving the notes.
Bob Firth
I'm glad that you have separated out the display from the rest of the functionality, I had already done that for showing notes, but not for creating them yet, thanks for saving me some work. Keep us updated on the next version.
Rolf Steinar Bergli
Interesting! Looking forward to your version with the save function.
Mark
I have come up with a "quick-and-dirty" solution for saving these notes.

You'll need to add a function to the .js file that looks like the AddNote function except, in the "if" block, put "return this.notes;".

Then in your client side code, create a javascript function with a variable and set it equal to "notes.GetNotes()". GetNotes is the name of my function from the .js file. Then using a global variable, I built a string and stored the results in a hidden field to be parsed out by the server. I used a for loop and looped through my function variable which is an array since I returned an array from the .js file and appended the string every time through the loop, while adding flags to be used when splitting the string on server side. I append this to my global variable: ~all[i].text + "#" + all[i].rect + "|"~ "all" is my function variable. Note: Don't forget your runat equals server attribute for the hidden field.

I hope this helps everyone gather an idea about how to save the notes. Happy coding and thank you Dusty for this photo annotation functionality.
Michael
Hey!
Thanks for your great implementation! I really love it... and everything seems to work great!
but anyhow I haven't been able to create "readonly" notes. I mean notes that aren't editable...
How can I do that? do u have an example?
Thanks a lot!!!
Michael
hjb
Using firefox 1.5.0.4 on windows xp the notes cannot be moved within ~22 pixels of the right side and ~17 pixels of the bottom of the image.
Also when you drag a note to the right side of the image the delete button wraps to below the other buttons.
pylorca
Great!!!!

in konqueror and opera, the background rectangle is not transparent, it's displayed as a solid white color, but I think that should be a css problem.


pylorca
Michael, to do not editable you must to add:

PhotoNote.prototype.editable = false;

in the "if" of PhotoNote.prototype.Select add the condicion:
&& this.editable == true

in PhotoNote.prototype.EnableNote add "if", to look like this:
PhotoNote.prototype.EnableNote = function ()
{
if (this.editable)
{
this.dragresize.enabled=true;
}
}

then in your page you must add:
note1.editable=true;
to set it editable

hjb
There are the following lines in the javascript:

/********* DRAG & RESIZE EVENTS **********************/
this.dragresize.isElement = function(elm)
{
if(elm.className == 'fn-area')
{
this.maxRight = currentNote.container.element.offsetWidth - 30;
this.maxBottom = currentNote.container.element.offsetHeight - 19;
return true;
}
};

Why put this in? Is it not the reason for the note not being able to be set against the bottom or the right of the image?
krs
When i tried working out the above code, i got the window for note below my image and it was not moving or resizing.

FReD
krs, make sure that you're linking in the photo note's .css file. The same thing happened to me until I imported it into my main .css file.
Jerry
In one of your posting...you mentioned

"The onsave method that you create, will get passed a "Note" object. This object will have all of the coordinates for the note that is being saved, along with the text."

how do i reference the object's coordinates and notes in javascript? sorry for the novice question.
Mark
Jerry,

The "onsave" method Dusty mentions does not exist in his provided code. Please reference my other comment on 6/12/06. You'll need to add a very simple function to Dusty's provided .js file that, when called from your page that uses the "notes" PhotoContainer, will return the array of notes.

To use this, in your page that contains the "PhotoContainer" object, create a javascript function that creates a variable and gets its value by calling this newly added function from the .js file (make sure the .js file is referenced in your page of course). To reference the text and coordinates for each note object (you'll need an index since the variable represents an array), reference the variable's ".text" and ".rect" properties. -- I used a for loop to loop through the array capturing the text and coordinates of each note object.

Note: the .rect property will return a string with a type of fomat like: left: ww top: xx width: yy height: zz and maybe an "undefined" at the beginning. A bit of string manipulation/formatting will take care of that. I hope this helps.
Dutch
I am looking forward to any help that I can get on this. I am currently developing an online software and I am in need of some image annotation software. This is the closest thing to any other software that works in ASP. Problem is that the save does not work, nor can i get one to work. Any help would be greatly appriciated.
dave
Are there any plans on having a version that can save? This script is awsome.. but I cant seem to figure out how to get it to save properly..
Thanks!
sats
Hi paal,

I want to integrate this Flickr Fotonotes concept into my
ASP.Net(.Net 2003) edition. Is it possible to implement a Fotonotes
concept? If yes means pl's send me the steps with Source Code please.
Thank u.
By
sats
sats
Hi paal,
How can i get fnclient.js files?
Dave
Help! I've managed to get everything working... EXCEPT i have one problem... Im using an array to display all of the notes.. basically looping through and using array values for the text, cords, etc... The problem is that when i hover over a note, the caption displays WAY far down on the bottom of the page.. however, if I bypass the array and just put in the actual values.. it works fine! The array values are definitly there.... so i have no idea why the caption would show so far down.. any ideas?
Kris Geens
Hello - very nice script. The boxes are not transparent in Safari, is there any way to solve this problem? Thanks in advance!
Juan Cataldo
I'm getting IE's error "Stack oveflow at line: 0" every time I move the pointer over the photos. Any ideas on how to solve it?
Juan Cataldo
About the "stack overflow" problem.

I have no problem until I try to add the 15th annotation. This seems to exceed IE's stack capacity, although Firefox can handle al least dozens of annotations.
LiLin
Does anyone solved the stack overflow problem for more than 15notes ?
Thanks !
alex
wow, pretty cool stuff. i wanted to display html in the notes so i had to comment out lines 352/353 and insert this instead:

// var t = document.createTextNode(this.text);
// titleArea.appendChild(t);
titleArea.innerHTML = this.text;
Kris
Hi all - same problem here, IE stack issue for more than 12-13 notes, does anyone has an idea how to solve this?
Lorenzo M
great job! I found this implementation very easy to use and modify. I added some ajax calls to save notes in a postgresql database, it took only a few lines of code. thank you!
Alexander
Thanks! Cool thing!
I'd like to focus attention on the following:
1) onsave callback obtains a former (not actual) text of the note. (?!)
It seems very pity problem.

2) It would be great to get a possibility to switch to read-only mode all notes of an image.
I mean via PhotoNoteContainer object.
btw, SetEditable(false) of the PhotoNote allows to change a rectangle of a note. It would be right to prevent it too.
Thank you again.
Bonny
To make it work in Opera (9) just add "opacity: .0;" to .fn-area-inner. That should probably do it for Safari too.
MoisesC
Hello folks. I was wondering if anyone can help me save the notes. I am currently using jQuery to send the Ajax request to the server-side. I'm still a bit fuzzy on Dusty and Mark's recommendation on how to save the notes object. Any help and pointers will really be appreciated! Thank you.
MoisesC
Dusty, any chance for a sample/snippet of code on how to save the notes? At least just enough to get me started.
Thank you.
zahra
Hello from france. i am searching how to "add notes" on a picture on web. Unfortunately I have no background in codes. "is anybody out there" who could help me.. i do realise on this page that it's "fairly straightforward" but in my case, i am just lost. a true beginner.
Nibbler
I had the same problem as Dave above. Solution is to make sure you are using numeric values in the array and not string values (123 and not '123')
nubie
I just stumble on this , and lovin it
I like to mix this to my existing slideshow app implemented with ruby on rails.
I wondering if anyone can give me ideas on how to make the notes that are created on a slide stick with that particular slides only, so when I go to next slides it starts fresh, and when I return to that slides, it will shows the notes.

Thank you
Paulim
is there any way of inserting web links on the notes?
Sagar
Hi
I have tried this script. It works well.
But one thing i need is that the note displayed when the script is loaded. is there any way so that we can see note on image only when we take mouse over the image . Means at the onmouseover of image.
Sagar
Hi
I have tried this script. It works well.
But one thing i need is that the note displayed when the script is loaded. is there any way so that we can see note on image only when we take mouse over the image . Means at the onmouseover of image.
Hi
I have made this script dynamic . Now when i add comment to image i am updating db. Now suppose i want to edit that comment. but at the same time i can't store in db. Because of some problem.
can any one help!
Sagar
I have made this script dynamic . Now when i add comment to image i am updating db. Now suppose i want to edit that comment. but at the same time i can't store in db. But when i am refreshing the page then it works fine. In short after adding new node . I want to refresh that perticular portion of image. how can i do that.
Sagar
Really nice script. It is very easy to use and understand.
Probably all the problem that i have mentioned above solved.

Sagar
Really nice script. It is very easy to use and understand.
Probably all the problem that i have mentioned above solved.

Sagar
Hi
This is nice one.
But one problem. Using this i want to make something like this that when i mouseover the image it should show me the notes and when i mouseout from the image it should hide the notes. can any one help?
Sagar
Any one can help!!! I tried a lot but don't found.
How to use this script to show the notes when mouse over the images and hide the notes when mouse out the images.
Henrik Lied
Ok, since no one has posted an absolute example, I thought I could.
http://dpaste.com/hold/11392/

Just go into the onsave()-method and add an AJAX request there. The variables you need are as following: note.rect.width, note.rect.height, note.rect.top, note.rect.left, this.gui.TextBox.value

Good. :)
Sagar
Hi
Henrik Lied
I have implemented the complete example using Ajax.
But one thing that is needed is that currently note is displayed on image when page is loaded and stay intact. But i want to display the note when i mouseover the image and want to hide the note when mouseout the image occurs. can u help me??
Yimmy
Dusty, thanks so much for posting this code! Anyone know how to modify this code so the boxes will display on top of an iframe that's displaying a PDF document? Any help is appreciated! Thanks!
G!G
Nice work Dusty :-)
I've fixed some bugs (like the IE Stack oveflow) and added readOnly mode to use your annotation with Seam. I've separated your code and the low level DragResize.js to use the latest version.
Here is my bulk : http://teamtex.homeip.net/permanent/sharedCode/imageAnnotation/imageAnnotation.zip
You can get my code back cause even if I'm not married, I don't have enought time to work on it ;-)
ericsk
I suggest that you can add a CSS property, "opacity: 0;", in .fn-area-inner class definition. Safari 3.0 cannot make the notes transparent on the screen through your original solution.
Anush Shetty
Can anyone help me with the php/mysql support
Berk
I 'm getting : "onsave must be implemented in order to *actually* save" error, and i'm using code like this :
function AddNote()
{
var numara = Math.floor(Math.random() * 1000000)
var newNote = new PhotoNote('Add note text here...', numara ,new PhotoNoteRect(10,10,50,50));
newNote.onsave = NotYaz(, newNote.rect.width, newNote.rect.height, newNote.rect.top, newNote.rect.left, '', numara);
newNote.ondelete = function (note) { return true; };
notes.AddNote(newNote);
newNote.Select();
}
by the way, i couldn't get the text message into the database with using JS. Can anybody help :)
Subhash
Hi,

I have used the code with a sample project. but i got error in firefox 1.1 when i click cancel or delete button.
drSpawn
Can anyone help me with the php/mysql support
PLZ!!!!!!
Dennis
Hi Dusty,

I really like your script. I was wondering if it would be possible to change it so it will only allow the addition of new notes and not the editing and the deletion of the current notes.

Thanks,
Dennis
internet sitesi
very nice script. i will try it on my web site. thanks to owner for this.
manuel
hey q tal por ahi
Manny Calvera
Please tell me how to save those values in the MySQL database.PLEASE! Thank you.
Nilay Shah
To save info to mysql, what i do is i invoke a function in the onsave method. The function should make a request through Ajax using new Ajax.request and just pass in a url for the script that will accept bunch of parameters that you need to pass in (like the text, the rectangle, etc.) -

If you need any more clarification, let me know.
Don
I'm struggling as well with how to incorporate a save mechanism with this, either to MySQL or the image header itself...
Manny Calavera
Well, someone, PLEASE: Make an MySQL insert example and post it. Thank you!
Don
Hey Dusty, if push comes to shove maybe you can add the save facility to your code and charge a few bucks for it?
Paulo Silva
I have the save code ready, using PHP, MySQL and Ajax.

email me at paulo[at]noflagra[dot]com and I can send code to your email.

[]'s
Paulo
Paulo Silva
I have the save code ready, using PHP, MySQL and Ajax.

email me at paulo[at]noflagra[dot]com and I can send code to your email.

[]'s
Paulo
Don
Paul, have sent you an email. Cheers.
Manny Calavera
I have sent you an e-mail but you didn't reply. Please share the code. Thank you very much.
Berk
Hi again, i had a problem but i fixed it, now i 'm using notes on my site, if you want any help, you can find me with contact
Don
Hmmm, think we may have lost Paulo! Paulo, are you still out there? Berk, are you saving notes in a db?
Manny Calavera
Come on people! Let's do this thing :D
Paulo
Guys, I've sent you an email with the files and an explanation for why I took so long.

I'm sorry I couldn't answer before.

[]'s
Paulo
Manny Calavera
Thank you so much, Paulo! Don't worry about the waiting, it's worthed. I'll give it a try myself.
Don
absolutely, many, many thanks!
Inder
Hey..!!
It looks nice to see the functionality of photo note on single image.But
if we have to display multiple images on page And we want photo notes for all.In that case this will not work .I tried to use it on multiple images but not working yet..!!!

---------
Thanks & regards
Inder Singh
Sebastian
Hi Paulo, I have send you a message but you don't answer.
Can you end me the files to fleyershaver [AT] yahoo [dot] de
Thanks
Sebastian
gopi
hi Paulo,
hi can u send the script for fotonotes with mysql, php, ajax support
i have send u the mail

thanks
Gopi
Boreal Kiss
Hello, I have developed a saving function for PhotoNotes that you don't need to use any database connections. I am happy if someone would imprement it. Your feedback is welcome. Thanks. BK
Manny Calavera
Well, Boreal Kiss, you just said that you have developed it for PhotoNotes. What integration are you talking about ?
Esteban
Please! I need to know how can I save the notes!
Paulo
Hey Guys,
I'm sorry I've been really away lately. Times being crazy for me here in California... it was easier in Brazil... :)

I'm putting all the corrected code on my website, under the blog section. Tomorrow it may be already available. Sorry for not answering everybody.

[]s
Paulo
fulvio
On Safari 3.0.4 (Mac OS X Leopard) the actual note is white instead of transparent.
Manny Calavera
That's bad :(
fulvio
If anyone would like some help regarding an AJAX solution done in Rails then feel free to contact me via e-mail on my blog (http://www.gotnull.com). I don't have any time to create a full tutorial for this, however I'm happy to answer any e-mails.

Quick run-down:

Create your model and controller:
script/generate controller Note
script/generate model Note

create your RJS templates:
app/views/notes/create.rjs (needed for update as well)
app/views/notes/destroy.rjs

AJAX request could look something like this:
function AddNote() {
var newNote = new PhotoNote('Add note text here . . .', -1, new PhotoNoteRect(10, 10, 50, 50);

newNote.onsave = function(note) {
var create = '/foo/bar/notes/create/params/go/here';
var ajax = new Ajax.Request(create, { method: 'post' });
}

notes.AddNote(newNote);
newNote.Select();
}

Might work, might not. I do have a working solution lying around somewhere where I can grab code for anyone who needs it.

Enjoy.
= )
John
Does anybody have a proper working code with PHP/MySQL for this
Sebastian
Hi Paulo,
what is the Url of the Blog where I can find the script with saving notes.
Esteban
You can find it on:

http://www.psilva.com.br/blog/

http://www.psilva.com.br/example.php#
Anush Shetty
Save is working, but update and delete from MySQL isn't working
Boreal Kiss
Manny Calavera,

I wrote some Ajax + PHP codes that work with PhotoNotes as a data-saving module. As it does not require any SQLs, it's very easy to setup. You can see the detail here (its demonstration as well):

http://labs.picovideo.jp/pn/en/
Razzaque
Hello,
Thanks for such a nice thing.
I am getting an error while I was trying to run an example. Here is the error:
------------
o has no properties
http://localhost/myproject1/js/photonotes.js
Line 584
------------

Please help me.

Thanks.
Razzaque
FYI- the error indicates this line of photonotes.js:
-------
if (o[a] && !l) return o[a](n, f, false);
--------

Your help will be much appreciated.

Razzaque
Hello,
I have solved the prob. Actually I was manipulating div "PhotoContainer" b4 writting it to the doc. haha.

Thanks.
DMOZ
I'll use it on my site for sure
okan
very good job! thanks all..
myworm
very good job! thanks all..
minesota
Can there be a show/hide option like http://www.fotonotes.net
FTT
I get an error every time @
/* add the note to the DOM */
this.element.appendChild(note.gui.ElementRect);

...I've tinkered but with no luck. Any suggestions at what I'm missing? I'm using this in a .Net application.

FTT
For my above comment...I'm not exactly sure what I was doing wrong but i created a new page and got it to work. I think my original problem was I had the photo in a gridview...I'm going to do some more tests on it to try and determine what was going wrong but it's working now! Great stuff!!!! Thanks!
seozap
nice, is it possible to place an image there on mouse over...instead of text ?
Firat
I have made some changs to save the notes in to SQL 2000 db in asp.

In the function "PhotoNote.prototype.CreateElements = function(revid)"
I invoke an external js function like that

SaveRevisionNote(currentNote ''); //Send Note and process to save it to DB
currentNote.Save(); // This was original code.



you can get all attributes from currentNote object.

It is also works for flash objects. The thing i could not manage is displaying a web page in an iframe and saving notes on it. If anyone has question or solution please let me know.

Thanks for this great code





Leandro
Anybody has separated onsave and onupdate methods ???
Jack
Can somebody tell me how to disable editing of notes
alec zapata
very fck awesome nice!!! thanks dude
Dean Eckles
This looks like a very useful project, and I just have a question about the licensing.

You mention that this implementation is loosely based on FotoNotes. But I notice that this has a much less restrictive license: FotoNotes is Open Source 2.1 but this is MIT.

Do you have a different license to FotoNotes, or is this implementation based on a previous version that had a different license?

This is obviously an important issue for anyone who wants to be sure they are legally using this code. Thanks much.
Marko
Dave,
I had the same problem with data in array, i solved it like this:
var rect = new PhotoNoteRect(parseInt(data['left']), parseInt(data['top']), parseInt(data['width']), parseInt(data['height']));
Like you see I only added parseInt.
I hope it'll work out for you.
Salle
Jack, to disable editing on a note:
note.SetEditable = "";
Salle
It can still be moved however, but I'm working on that...
(post a comment here if you solve it)
Marko
To disable editing, moving and resizing just override PhotoNote.prototype.Select function like this:
PhotoNote.prototype.Select = function()
{
this.dragresize.enabled = false;
this.selected = false;
this.SetEditable(false);
}
It should work fine.
Salle
It works, thanks Marko!
I wanted to be able to make some notes "non-editable" and some editable depending of which user who hade made them so I tried to add a property "editable" to the PhotoNote-object:

function PhotoNote(text,id,rect)
{
var props = {
text: text,
id: id,
rect: rect,
selected: false,
container: null,
dragresize: null,
oldRect: null,
YOffset: 10,
XOffset: 0,
onsave: null,
ondelete: null,
gui: null,
editable: false //new property
};

for (var p in props)
{
this[p] = props[p];
}
this.CreateElements();
}

PhotoNote.prototype.Select = function()
{
if(!this.container.editing)
{
this.ShowNoteText();
if(this.editable) //new if
{
this.dragresize.select(this.gui.ElementRect);
this.selected = true;
this.SetEditable(true);
}
else //if the node shouldn't be editable
{
this.dragresize.enabled = false;
this.selected = false;
this.SetEditable(false);
}
}
}

It seems to be working.
Salle
And then of course you can set some of them "locked":
note.editable = false;

and some of them fully editable:
note.editable = true;
Salle
Sorry, you probably want to have the notes editable by default, else you can't create new notes. So change the code-row above to true instead of false:
editable: true //new property

I will try to re-read the code before I post a comment here the next time... :)

Anyway, the only thing I'm missing from this great lib now is the possibility to hide the rectangles by default and show them when you hover the mouse-cursor above the picture. But that shouldn't be too hard to fix.

If you want to include my (with Markos help) small changes to a future version of this lib, it would be great. Perhaps rename the property if you feel the need.
Salle
Boddy, adding "opacity: .0;" to .fn-area-inner as you suggested works for Opera, Safari and Google Chrome as well! Example page: http://moblog.nu/showPicture.aspx?pictureID=1151405
oyunlar
Thanks.. great..
silifke
Tesekkurler. Super.. Thanks.
moazzam
I tried using the library but it keeps telling me that there is an error on line 506 in the library in IE7. In Firefox, it displays the note way below the page .

The URL of my experimental page is : http://chill-spa.com/img/

Any idea what I am doing wrong here?
moazzam
Right after I posted my comment, I saw the comment about using parseInt() for the values. I used that and it works.

The only problem now is that the div containing the image has this wierd container at the bottom (below the image) when I mouseOver it, it says "undefined" . I increased the size of the div at the bottom because the note box wasnt going all the way to the bottom.


rosl
hi SALLE, i tried your codes on how to make the tags editable or non-editable. but i seem to have errors, not sure why. can you send me ur copy of the js instead?

get back thanks
rosl
hi SALLE, i tried your codes on how to make the tags editable or non-editable. but i seem to have errors, not sure why. can you send me ur copy of the js instead?

get back thanks
Rosl
hi salle, i tried your codes on how to make tags editable and non-editable. but i'm left with errors, not sure why. could you send me a copy of ur JS instead?

get back thanks.
Rosl
hi salle, i tried your codes on how to make tags editable and non-editable. but i'm left with errors, not sure why. could you send me a copy of ur JS instead?

get back thanks.
Rosl
hi salle, i tried your codes on how to make tags editable and non-editable. but i'm left with errors, not sure why. could you send me a copy of ur JS instead?

get back thanks.
Rosl
hi salle, i tried your codes on how to make tags editable and non-editable. but i'm left with errors, not sure why. could you send me a copy of ur JS instead?

get back thanks.
Salle
Sure, this is my modified JS-file:
http://www.moblog.nu/common/js/photonotes.v1.js
kiz oyunlari
Thanks salle ..
kiz oyunlari
Thanks salle ..
dipali
I downloaded .js and .css file provided.I am trying to add code given in my web app. what else should i do to get code running
lucky
why error consolle give me the error this.element is null row: 78

uff i try many times but seems this script don't set this.element

:( :( :(
lucky
why error consolle give me the error this.element is null row: 78

uff i try many times but seems this script don't set this.element

:( :( :(
image mapper
I have modified this code for use in my image map tool site
http://www.image-maps.com

dupes
thanks for the help!
stephan
Can somebody please send me the example to save the notes to a MYSQL database. ephon_milo[at]yahoo[dot]com.

many thanks
stephan
Can somebody please send me the example to save the notes to a MYSQL database. ephon_milo[at]yahoo[dot]com.

many thanks
a norther website use PhotoNotes
this site use PhotoNotes with wonderful editing. hahahah
Iman
gr8 script. thanks for sharing. it can be easilly saved,edited & deleted in php,mysql. :)
Iman
gr8 script. thanks for sharing. it can be easilly saved,edited & deleted in php,mysql. :)
Iman
gr8 script. thanks for sharing. it can be easilly saved,edited & deleted in php,mysql. :)
Iman
gr8 script. thanks for sharing. it can be easilly saved,edited & deleted in php,mysql. :)
Iman
gr8 script. thanks for sharing. it can be easilly saved,edited & deleted in php,mysql. :)
Iman
sorry for repeated posting. server display error.
Iman
note on image not trasparent in safari.i can's solve the problem
Salle
As I wrote above it can be fixed to work with Safari, adding "opacity: .0;" to .fn-area-inner as Boddy suggested works for Opera, Safari and Google Chrome!

Here is my modified CSS:
http://www.moblog.nu/common/css/photonotes.v1.css
Manny Calavera
There are many other examples, better ones built upon strong frameworks. If this doesn't work like it should why don't you search for another example ?

Anyway, all my respect goes to dustyd. net as being the first who adopted this method and I'm happy I found it at the right time.

Cheers
Iman
Thanks Salle....its now working on safari :)


ChrisVaughan
Tried it with multiple images and it didn't appear to work. The tags are shown but when you click on add new it doesn't know which divid to add the tag to.

Any plans for that?
ChrisVaughan
Tried it with multiple images and it didn't appear to work. The tags are shown but when you click on add new it doesn't know which divid to add the tag to.

Any plans for that?
Mikie
Opera 9.63 Bug.
Note area is not transparent, it is full white rectangle over the image
Mikie
Opera 9.63 bug!!!!

notes aren't transparent, it is full white rectangle on the image
Salle
Opera works if you do the CSS-fix described above.
stev
how difficult would it be to include that into elgg directly or to advance this plugin http://community.elgg.org/pg/plugins/gabrielinux/read/18965/tidypics-photo-gallery-plugin-v106 ?
www.rank.vn
good
www.rank.vn
good
www.rank.vn
good
Wackychimp
FWIW... I worked out a very hackish way to save these to a DB. I'm only in need of one tag per photo so I'm dropping the coords and tag text into a cookie (from JavaScript) and then reading them back out of the cookie when I update my DB (in VBScript) on the next page.

Setting cookies in this function: PhotoNote.prototype.Save

One problem I'm having is that my rectangles are displaying fine in FireFox but are way off to the right in IE (IE v7.0). It's like IE thinks that the 0,0 point of the photo is in the middle for some reason. I suspect is has something to do with the DIV tag but I can't figure it out. Anybody had this or know of a fix?
Wackychimp
FWIW... I worked out a very hackish way to save these to a DB. I'm only in need of one tag per photo so I'm dropping the coords and tag text into a cookie (from JavaScript) and then reading them back out of the cookie when I update my DB (in VBScript) on the next page.

Setting cookies in this function: PhotoNote.prototype.Save

One problem I'm having is that my rectangles are displaying fine in FireFox but are way off to the right in IE (IE v7.0). It's like IE thinks that the 0,0 point of the photo is in the middle for some reason. I suspect is has something to do with the DIV tag but I can't figure it out. Anybody had this or know of a fix?
Wackychimp
Url.... Server.Error in this comment script got me too... sorry for the Double Post!
spodeli
nice efect
spodeli
nice efect
spodeli
nice efect
kumiko
i would like to ask a question about the meta charset problem for tis photo addnote. i wan to insert the chinese word thorugh the note, but it store the data chinese word to question marks (??). can someone plz guide me? tq
kumiko
i would like to ask a question about the meta charset problem for tis photo addnote. i wan to insert the chinese word thorugh the note, but it store the data chinese word to question marks (??). can someone plz guide me? tq
Franz
Hi to all, I've problem with this js...the line break on my notes don't run...... Suggest??
help please....
I write for example "test test" and then hit Carriege return , but when i see the notes the text is in 1 line!!!
pete
I am getting an error "Stack Overflow at line: 0" using the script. Is anyone else getting this and if so how did it get solved?

This is on IE8 only firefox works fine without this. Is there a look in the code that need to be removed?
edha
Hi

Can somebody please send me the example to add/edit/delete the notes to a MYSQL database with PHP.
madane[dot]medha[at]gmail[dot]com
Thanks..
ragtek
I'm also interested into a php connection
ragtek
I'm also interested into a php connection
ragtek
I'm also interested into a php connection
Adam jean
thanks for all for this information.
Adam jean
thanks for all for this information.
seo techniques
I would like to thank you for the efforts you have made.
Web Application Development India
Leading Website development Company India offers advanced web application development services for dynamic applications & websites by using ASP.NET, Java, JavaScript, AJAX, PHP, XML, CSS, HTML and XHTML.
srinu
Plaese help me. I want the store the notes store to database using php/mysql please help me and send code for me. Its urjent for me...

This is my mail-id : venky_sri007@yahoo.co.in
srinu
Plaese help me. I want the store the notes store to database using php/mysql please help me and send code for me. Its urjent for me...

This is my mail-id : venky_sri007@yahoo.co.in
srinu
Plaese help me. I want the store the notes store to database using php/mysql please help me and send code for me. Its urjent for me...

This is my mail-id : venky_sri007@yahoo.co.in
Matthew
I created a barebones web page to test this script at http://dev.takaitra.com/photonotes/. It has some issues in Firefox 3.5/Windows. The notes are completely white and block out the image underneath. I am able to move the notes completely outside of the image to the right but not all the way to the bottom. So, to me it seems this script is out of date and broken in the latest Firefox.
ragtek
It seems this is not supported:(
Matthew
I took it upon myself to update this script to work with the latest IE, Firefox, and Chrome. Please take a look at the project page: http://www.takaitra.com/projects/photonotes
Ask Büyüleri
I took it upon myself to update this script to work with the latest IE, Firefox, and Chrome. Please take a look at the project page: http://www.takaitra.com/projects/photonotes
Givioen
Dusty, how do i save the notes? At least it'll be enough to get me started.
Thanks.



Post a comment

   
 
  
  

    

All content © Dusty Davidson