- Joined
- Aug 6, 2009
- Messages
- 2,133
- Reaction score
- 433
Okay so here is something I need help with.
Go here Maps
Download this text file http://work.p1x3.com/207.txt
Draw text file to drop area on a page.
A list should appear on left as well as markers on the map.
When you click on list item map will pan top marker.
Now you see for each list item I have edit/delete?
When those are clicked I need to do something.
Since list is dynamically appended js doesn't really wanna work here.
For example if I click delete on one item, it should be removed from list (easy .parent.parent.slideup/remove) and marker should be removed from map (markers are stored in var stops, i.e. stop[1].marker.setMap(null))
And I can't seem to make it work.
Feel free to look at source code to maybe get better understanding of what I am trying to do.
Go here Maps
Download this text file http://work.p1x3.com/207.txt
Draw text file to drop area on a page.
A list should appear on left as well as markers on the map.
When you click on list item map will pan top marker.
Now you see for each list item I have edit/delete?
When those are clicked I need to do something.
Since list is dynamically appended js doesn't really wanna work here.
For example if I click delete on one item, it should be removed from list (easy .parent.parent.slideup/remove) and marker should be removed from map (markers are stored in var stops, i.e. stop[1].marker.setMap(null))
And I can't seem to make it work.
Feel free to look at source code to maybe get better understanding of what I am trying to do.

