Automated Poll Rotation control flow
Back to the Web Services API
This chart illustrates the events, from top to bottom. For simplification, caching is implicit.
|Visitor's browser||Web Server||ViewsFlash Server|
|Goes to dynamic page http://main.big.com/sports.dyn, handled by the Web Server|
Constructs dynamic sports page which includes the embedded poll for "sports" place.
Because it is first time on this page, there is no VFPOLLS cookie. Issue
http call: http://vf.big.com/ViewsFlash/servlet/viewsflash?
|Returns HTML fragment for the voting form to main.big.com|
|Inserts HTML fragment with voting form into page and returns full page to visitor|
|Visitor sees page with embedded poll. Fills out poll and Submits voting form to vf.big.com|
|Tallies vote. Sends VFPOLLS cookie with domain "big.com" back to visitor, and redirects visitor browser to redisplay the original page http://main.big.com/sports.dyn|
|Visitor's browser quietly goes to http://main.big.com/sports.dyn again.|
Constructs dynamic page again.
This time, there is a VFPOLLS cookie. Its contents indicate that the
current poll has not expired. Therefore, issues http call:
|Returns HTML fragment with poll results display to main.big.com|
|Inserts HTML fragment with poll results display into page and returns full page to visitor.|
|Visitor sees the original sports page, but now sees the results instead of a voting form.|
... (a short time passes) ....
|Later, visitor returns to this page.|
|Because the VFPOLLS cookie indicates poll has not expired yet, issue getresults http call to vf.big.com|
..(even more time passes; poll expires in the meantime)...
|Visitor return to page|
|VFPOLL cookie indicates poll has expired. Issue getpoll http call to vf.big.com.|
Next: Extending ViewsFlash