dynamically include html pages (client side)

dynamically include html pages (client side)

hi,

usually there some code part that are redundant in the code, exist a way to put them into some external file and incude those external html files where neded???

I try with something like this:

$('#footerDiv').load('Shared/Footer.html').trigger("create");

but it dont load the html5 data attribute   and without loading html5 data attribute jquerymobile framework stop to work

any idea???

p.s 
I'm italia pls ignore some english mistakes