so here's the thing - google maps crashes browsers on slower machines when you try and map too many locations at once. we're allowing users to select real estate listings to map by providing a checkbox beside each of the listings that show up through their search. they can display up to 99 listings on a page and i just know somebody is going to sit there and click all of them (because i haven't let them have a "map all" function).is there any way for me to have all the checkboxes become inactive after the user selects, say, 20 items?
8/26/2005 1:42:12 PM
a better solution would be to allow them to check as many as they want and then only show them 20 - with a next button for the others
8/26/2005 1:43:25 PM
that's not a bad strategy - any other alternative ideas
8/26/2005 1:44:56 PM
Just let it crash and laugh at them. Just put a little disclaimer by the submit button.
8/26/2005 1:49:59 PM
Yes, you 'can' disable them but, javascript is a bitch when dealing with various browsers.Why are we giving ideas to google?Just run a counter, when the clicked event happens ++ it, when it hits 20, prevent the checkmark from happening. I believe you can do that by just returning false from the clicked event. I may be wrong. When they click a clicked one, -- the counter, and you're good to go. And show them in a lable the number of items they have left they can check.
8/26/2005 2:19:53 PM
8/26/2005 2:25:47 PM
uh...Firefox?
8/26/2005 2:28:15 PM
8/26/2005 2:29:32 PM
to do it properly you should probably use JavaScript if it's detected as enabled, and dirty, slow postback if not (probably mentioning in a big red warning box that it's using postback because they have javascript disabled)
8/26/2005 2:31:28 PM
If they're using Google Maps, they're going to have to have JavaScript on anyway.
8/26/2005 2:50:53 PM
8/26/2005 7:39:47 PM