jQuery UI Tabs via Ajax -- Recommended way of preparing panel content

jQuery UI Tabs via Ajax -- Recommended way of preparing panel content

The sample in this site does not show how to pepare a panel content exept for preloaded content.

There could be several ways I can think of, someting like:

    (1) complete html format which includes tags of doctype, html, and every thing,

    (2) html format without tags of doctype , html, and head, or

    (3) html format only includes content itself.

I wonder what is the recommended way for preparing panel content, because I have experienced

some probems in either way.

In case of (1), there happened some  disturvance of layout due to contention of styling between the calling

and the  called. Sometimes, overriding of style does not work.

In case of (2), there happened some disturvance of styling due to lack of css.

In cace of (3), it is troblesome to code inline style for every tag.

I would like to see some examples of coding for this.

masa