pes Posted February 27, 2003 Posted February 27, 2003 My boss wants me to make a link from an image map to a specific field in a web-enabled database. I am not a programmer. Does anyone know if/how I can do this within FMP and web companion?
Jeff Spall Posted February 27, 2003 Posted February 27, 2003 I hope I'm understanding you right: the database fields should provide the urls to the image map?? I guess if you call the page from an FMP action, then something like: <MAP NAME=map1> <AREA SHAPE=rect COORDS="0,30,50,50" HREF="[FMP-FIELD:field1]"> <AREA SHAPE=rect COORDS="0,0,50,20" HREF="[FMP-Field:field2]"> </MAP><IMG USEMAP="#map1" SRC="theimage.jpg"> .....would work, though I think it's a more reliable solution to chop the image up in a table and use individual HREFs delivered by FMP jeff
pes Posted February 27, 2003 Author Posted February 27, 2003 Let me explain. There will be an image map of a building layout. He wants me to carve up the image map (which I can do) and create links to individual fields in the database. For example, if someone clicked on the Room 1 section of the image map, it would go to the Room 1 field in the database. Would the above action work for this?
SoCalMacDude Posted February 27, 2003 Posted February 27, 2003 When you say "it would go to the Room 1 field in the database," are you asking it to search the database to find Room 1, then display an HTML page using Room 1 data from the database? If so, I would expect that a long URL that searches the database and returns the room template page, populated with Room 1 info, would be the answer. Although I use Lasso rather than web companion, I expect it could be done with WC. Here is an example of how I used it. Look at the link attached to each button, and attach a similar one to each slice of the image map. http://www.flandersco.com/ElectricalSearch.html Good luck!
Recommended Posts
This topic is 7931 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now