Thursday, 19 September 2013

event fired just before an elemet renders on html

event fired just before an elemet renders on html

I am working on a code where I am genrating my own DIVs using mustache and
appending it to the main index.html (keeping this a single page
application)
I know if I use jQueryMobile, there is a page event 'beforePageShow' which
is fired just before the page starts loading. You can use this to set some
dynamic variables that is used in the page.
I want to do something same in my page where I am rendering a div : a new
one if its not already appeneded to index.html or just hide/shiow if it
already exists. Although I want to initialize some environment variables
before the div loads. Is this possible?
Please help
Thanks Ankur

No comments:

Post a Comment