Make JavaScript on map page unobtrusive
-
Marnen Laibow-Koser
[Notes for my own reference later.]
It seems that the problem is in events_helper (and in YM4R): event_map generates dynamic JavaScript, all right, but then embeds it right into the HTML. What's the best way of putting the output into an extra file? Should we have a dynamic RJS or .js.erb script, or simply have a static script that reads dynamic inputs from hidden DOM elements? I'm leaning toward the latter approach at the moment, but I need to do more research.
-
Marnen Laibow-Koser
(from [f0897fc791e5f4181c4064cdff76f6cc0b6a2f9c]) Wrap event information in a div so we can address it later. [#3 Make JavaScript on map page unobtrusive] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser
(from [bc6367ad82cac67a7cc0adc09fe1cf39b21ae0b0]) Remove map info window content from JavaScript by passing it as a DOM element. [#3 Make JavaScript on map page unobtrusive] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser
(from [619dcce03c79ffa08978e39488dee4e6e3726101]) Put latitude and longitude into DOM. [#3 Make JavaScript on map page unobtrusive] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser
(from [e00c149449334c5b15c08616856627e494b6c328]) Move JavaScript for map into separate file. [#3 Make JavaScript on map page unobtrusive] http://github.com/marnen/quorum2...
-
Marnen Laibow-Koser
- State changed from open to resolved
This is done now, and incorporated into beta 2.8.2.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.