NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on April 07, 2014, 09:24:50 AM

Title: NT8 how to tag on an image
Post by: Alberto on April 07, 2014, 09:24:50 AM
Hi,
My client need to have an image, like the attached one and need to tag on the circles.
Any idea on how to do it?

May be using Maps?

Thanks


[attachment deleted by admin]
Title: Re: NT8 how to tag on an image
Post by: Bruce on April 10, 2014, 05:41:46 AM
I think you could use an _ImageMap_ rather than a "Geography map".
You'll need to read up a bit on the HTML <map> tag, but once you understand it you can use the p_web.FreeUseMap, p_web.CreateUseMap and p_web.AddArea methods to create the HTML you need.

Cheers
Bruce


Title: Re: NT8 how to tag on an image
Post by: Alberto on April 12, 2014, 11:46:45 AM
Ok, and how do I use an _ImageMap_ instead, I didnt find that option playing with the Map example.
At least not in the Webserver extention or in the Map Field.
Thanks
Title: Re: NT8 how to tag on an image
Post by: Bruce on April 13, 2014, 10:53:50 PM
ImageMaps and Maps are very different things. The Maps example deals with Maps, not ImageMaps. As I recall the ImageMap functionality was added for someone to use, but I don't think I made any examples with it.

Your best approach is to read up on HTML imagemaps and see how they work, and then go from there.
Title: Re: NT8 how to tag on an image
Post by: Alberto on April 14, 2014, 02:34:05 AM
Ok, I´ll do the homework about MAP and ImageMap and let you know...

You said... As I recall the ImageMap functionality was added for someone to use,

How do I use or activate the  ImageMap functionality? I dont found it in the form Fields

Thanks
Title: Re: NT8 how to tag on an image
Post by: Alberto on April 17, 2014, 01:28:58 PM
Ok, I´ve played with Imagemap but it only define zones over the image that let you go to another image.
What I need is make a mark over the circles when the user clicks it AND cuold save this marks AND could redone it in the future when the user sees that image again.

Like when you tag in a map.

Any way to do it?
Title: Re: NT8 how to tag on an image
Post by: Bruce on April 18, 2014, 01:18:14 AM
maybe you can build a small example of the form you have in mind, then post it here, and we can go from there.

ie get to to the point you describe - where you've defined the image map, and the click goes somewhere.

cheers
Bruce
Title: Re: NT8 how to tag on an image
Post by: Alberto on April 18, 2014, 04:18:08 AM
Ok, Im trying to do this.
Which fild type must I use?

The code of the map is like:

            '<map name="\IMAGES\HOMBRECITO.JPG">'& |
            '<area shape="circle" alt="1" title="1" coords="226,102,5" href="\IMAGES\INSERT.jpg" target="_self" />'& |
            '<area shape="circle" alt="2" title="2" coords="194,102,4" href="\IMAGES\INSERT.jpg" target="_self" />'& |
            '<area shape="circle" alt="3" title="3" coords="160,127,8" href="\IMAGES\INSERT.jpg" target="_self" />'& |
            '........'
            '</map>'

I tried to use a Display field and add the code to the text/html/allow and the result is nothing, seeing it with Firebug it appears disable, see image 1

If I use a Map field I dont know where to add the map code.

How must I do it?

Thanks


[attachment deleted by admin]