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

Seat Selection

P: 3
Hello, This is my first post here!

I'm trying to create a bit of Ajax which will allow people select tables on my picture by clicking on the tables allowing them to table of their choice. I am thinking of using image maps for table selection. I am not sure how to write the ajax in order to have the selected tables change color, indicating that they are taken. Does anyone have any recommendations for the image manipulation. I would rather not create a server side script to edit the image and have the user reload the picture every time they make a selection, I expect most people will change their table selections a few times before selecting the table of their choice.

Thanks a lot,
James
Nov 10 '07 #1
Share this Question
Share on Google+
5 Replies


gits
Expert Mod 5K+
P: 5,390
hi ...

welcome to TSDN ...

do you have some coding done already, that you could post here? the general idea would be to pass something to the server that identifies the selection the user made onclick on the imagemap ... i think you know how the ajax-call works with a query-string? ... you may use an attribute to store something at the area which is clicked and pass that value wth the ajax-call's query-string ...

kind regards
Nov 11 '07 #2

P: 3
I am not worried about getting the information into the ajax, but how do I use ajax to alter the image so that when a seat is taken the table's color turns black instead of white.

Thank you!
James
Nov 12 '07 #3

gits
Expert Mod 5K+
P: 5,390
hmm ... i would recommend to experiment with css-divs and some transparent styles to achieve your goal, in case you want to avoid image-replacing ...
Nov 12 '07 #4

P: 3
Thank you, you more/less answered my question. I was curious if their was a simple technique that I simply missed. Since their is not one, I can do an image replace, but not use a new image for their selection.

Thank you,
James
Nov 13 '07 #5

gits
Expert Mod 5K+
P: 5,390
glad to hear that your are on a track for your problem ... javascript has very, very poor image-handling-abilities ... you may replace the src-attributes or set some style properties, use transitions or something ... but it has no 'real' image-manipulation-abilities ...

post back to the forum anytime you have more questions ...

kind regards
Nov 13 '07 #6

Post your reply

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