issue 5
(Getting duplicates records in my timeline listing from ajax ...) commented on by mark.borkum
- The problem is caused by extraneous calls to "f()" in the loadXML and loadJSON
methods of Timeline and Timeline._Impl
It can be resolved [with no flickering] by ignoring responses with the "304 Not
Modified" status code.
1. Replace lines 193 and 197 of simile_timeline.rb, with:
"function(xml,url){#{js_id}_event_source.clear();#{js_id}_event_source.loadJSON(xml,url);})}",
2. Wrap the FOUR calls to "f()" in the loadXML and loadJSON methods, with:
if(xmlhttp.status!=304){
f(...)
}
The problem is caused by extraneous calls to "f()" in the loadXML and loadJSON
methods of Timeline and Timeline._Impl
It can be resolved [with no flickering] by ignoring responses with the "304 Not
Modified" status code.
1. Replace lines 193 and 197 of simile_timeline.rb, with:
"function(xml,url){#{js_id}_event_source.clear();#{js_id}_event_source.loadJSON(xml,url);})}",
2. Wrap the FOUR calls to "f()" in the loadXML and loadJSON methods, with:
if(xmlhttp.status!=304){
f(...)
}
issue 5
(Getting duplicates records in my timeline listing from ajax ...) reported by ep...@opensourceconnections.com
- What steps will reproduce the problem?
1. Go to www.hightechcville.com
2. click browse events
3. if you move back and forth in the timeline you see each ajax call
duplicating an event!
What steps will reproduce the problem?
1. Go to www.hightechcville.com
2. click browse events
3. if you move back and forth in the timeline you see each ajax call
duplicating an event!