Docstoc

iframe-vs-scrolling-div

Document Sample
iframe-vs-scrolling-div Powered By Docstoc
					Iframe vs scrolling div

Written by Bob Scaggs
Wednesday, 15 October 2008 16:34 - Last Updated Friday, 17 October 2008 20:36




In one I my apps at work I had a problem which was solved with the use of a scrolling div.  The
application formerly used an iframe to load a piece of content from the CMS.  The iframe had a
width and height parameters of 420 pixels wide and 750 pixels high.  The iframe automatically
scrolled vertically to present the full content.  The resource that was loaded into the iframe had
a cookie with it which contained two pieces of information that were required by the application,
a document id and a revision number.  These fields were interrogated in the JAVA code and
loaded into a DB where they were associated with a customer record and timestamp.  The goal
being to have a record of what version of the terms and conditions the customer saw at the time
they applied.  The first thing that changed was that the CMS team had decided that they no
longer wanted to be in the business of creating cookies and the associated business logic
required around that.  They had come up with an XML content based approach where the
calling applications will be returned an XML based response with elements in the container to
pass information such as document id, revision number, title and raw html content. 




Here is a sample of the scrolling div.




Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In eget lorem a neque iaculis placerat.
Vivamus purus eros, semper at, tristique sed, iaculis eget, eros. Ut tellus odio, aliquam sit amet,
fermentum vitae, placerat et, nulla. Nulla eu odio a nulla convallis scelerisque. Quisque
faucibus. Quisque congue magna id nibh. Sed est nibh, tincidunt at, rhoncus et, faucibus at,
urna. Cras et dui vel turpis ullamcorper adipiscing. Donec a mauris sit amet urna facilisis
fringilla. Quisque nec odio at elit tempus varius. Etiam egestas vehicula tellus. Proin turpis
lorem, vulputate pulvinar, vehicula vel, eleifend at, nisi. Aenean elementum, massa dignissim
auctor ultricies, est ligula hendrerit metus, ac iaculis felis dui et massa. Maecenas non nulla
eget dui ornare gravida. Suspendisse potenti.




In at mi. Suspendisse dignissim orci eget ligula. Donec at massa. Fusce velit urna, viverra non,
blandit id, placerat eu, dolor. Sed sit amet quam. Praesent ornare urna sit amet tortor. Praesent
et turpis et purus commodo condimentum. Fusce vitae justo. Proin at ipsum eget velit tincidunt
euismod. Nulla elit. Aliquam lobortis pharetra lectus.




Nulla vehicula turpis sit amet magna. Pellentesque habitant morbi tristique senectus et netus et
malesuada fames ac turpis egestas. In nisi tellus, pulvinar consectetuer, adipiscing id,
scelerisque ut, quam. Curabitur tincidunt sollicitudin mi. Etiam pellentesque, nibh fermentum
iaculis ultricies, leo sapien lobortis risus, ornare consectetuer lorem enim venenatis augue.
Vivamus mi libero, venenatis rhoncus, cursus sed, aliquet ut, erat. Mauris ullamcorper. Duis ut



                                                                                              1/2
Iframe vs scrolling div

Written by Bob Scaggs
Wednesday, 15 October 2008 16:34 - Last Updated Friday, 17 October 2008 20:36

enim. Phasellus sodales velit in diam. Donec id dui in erat pharetra posuere. Nam sit amet mi id
libero convallis facilisis. Integer tempus, quam ut commodo imperdiet, turpis nisi vestibulum
turpis, sed fermentum dui sapien id dui. Integer sit amet mauris non dolor dapibus tincidunt.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.




                                                                                           2/2

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:11
posted:6/17/2010
language:English
pages:2
Description: Top Technology For 2010 Year
Sherin William Sherin William http://
About