Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Data base gurus....a question for you

Thread Tools
 
Old Aug 2, 2003 | 01:52 PM
  #1  
ironwedge's Avatar
Thread Starter
Registered User
 
Joined: Apr 2001
Posts: 1,209
Likes: 0
From: Anchorage
Default Data base gurus....a question for you

Anyone know how to link a image map to a Access database?

I'm working on a project in which I'd like to show a neighborhood map (platte map), which of course would be the image map. Then when an individual lot/home site is selected/clicked on the image map it would open the corresponding record in the database. Of course in the database I could go nuts with photos of the house, photos and details of the participating families, etc.

This project does NOT need to be on the net, so I'm really not talking about a dynamic website. At the most it would be nice to distribute the thing on CD, or just share the file.

Also, it doesn't have to be Access (that's just what I'm dumping data into), the real trick is just to link the imagemap to a database record.

Anyone done this?
Reply
Old Aug 2, 2003 | 02:20 PM
  #2  
lehighwiz's Avatar
Registered User
 
Joined: Aug 2001
Posts: 577
Likes: 0
From: Pottsville
Default

can the page refresh after the click or do want to do it without a browser refresh?
Reply
Old Aug 2, 2003 | 11:49 PM
  #3  
ironwedge's Avatar
Thread Starter
Registered User
 
Joined: Apr 2001
Posts: 1,209
Likes: 0
From: Anchorage
Default

Hmmm, to refresh....or not?

Really doesn't matter, whatever works. Again, I'm really not looking to use it on a server (internet), so it really doesn't even have to use a broswer.

Thanks for the reply & cheers to you -
Reply
Old Aug 4, 2003 | 01:42 AM
  #4  
emc2's Avatar
Registered User
 
Joined: Jan 2002
Posts: 301
Likes: 0
From: Bend
Default

If you only want 1 picture per record then you could just make a field called "PICTURE" and make its datatype a hyperlink and then link to the picture file you have.

If you have multiple pics you might want to create a seperate table of just picture links and have a ID field on picture table that correspondes to the ID field of the data table.
Reply
Old Aug 4, 2003 | 10:41 AM
  #5  
ironwedge's Avatar
Thread Starter
Registered User
 
Joined: Apr 2001
Posts: 1,209
Likes: 0
From: Anchorage
Default

Hmm, that might work. There is only on photo in the record but I'd like to see all the other data fields for that record too (address, phone number, etc).

Ideally, a click on the image map would open the entire corresponding record.
Reply
Old Aug 4, 2003 | 12:23 PM
  #6  
thunderchicken's Avatar
Registered User
 
Joined: Mar 2002
Posts: 1,457
Likes: 0
From: Zionsville
Default

What development language are you working in? Straight HTML? ASP? .NET? php? cgi?
Reply
Old Aug 4, 2003 | 01:37 PM
  #7  
ironwedge's Avatar
Thread Starter
Registered User
 
Joined: Apr 2001
Posts: 1,209
Likes: 0
From: Anchorage
Default

[QUOTE]Originally posted by thunderchicken
[B]What development language are you working in?
Reply
Old Aug 4, 2003 | 02:32 PM
  #8  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

create a table of the geometric areas of the image map and relate those areas to the record ID of the corresponding house. Postgres has built in geometric data types, that might be useful.

Then when someone clicks, build your sql to join the area table against the house info table based on the coordinates you from the map click.
Reply
Old Aug 4, 2003 | 02:34 PM
  #9  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

on the cd, you can include the database, webserver and everything and put a little batch file wrapper around it all. ppl throw in the cd, it starts the database and the webserver and opens a browser to point to the new localhost webserver. very easy, and then it's also a standard interface so should be easier for users to use right away. I'd say that's easier than a standalone app w/ access db.
Reply
Old Aug 4, 2003 | 11:03 PM
  #10  
ironwedge's Avatar
Thread Starter
Registered User
 
Joined: Apr 2001
Posts: 1,209
Likes: 0
From: Anchorage
Default

Thanks Josh -
Reply



All times are GMT -8. The time now is 08:05 AM.