By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

End user drawing on website image

P: 1
I'm developing a content management application using PHP/MySQL that uses images. I need the end user to be able to draw text boxes, rectangles, and arrows on the image within the browser. It needs to be as easy as drawing a text box and arrows in MS Word or Excel.

It probably has to be AJAX. I also need it to save to MySQL so that it will display later.

Any ideas?

Jan 10 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,333
hi ...

this is quite a task :) ... drawing with html, javascript is not possible ... but in case you only need rectangles it could be simulated with some dhtml stuff. ajax has nothing to do with that ... it is simply a XMLHttpRequest that allows 'silent' refreshing of parts of a page ...

so back to the problem. you could give the user a tool that allows him to 'draw' divs on top of the image and you could save their coordinates later on to reproduce them. but be aware ... you cannot edit the image itself with javascript. may be you could use an activeX (only for IE) or a java-applet for that task ... in case you have to edit the image.

kind regards
Jan 10 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.