Jquery modal with complete HTML page written on-the-fly -
i got admin interface proper css styles.
i'm wondering if there way in jquery open modal complete html page written on-the-fly ?
my goal avoid conflicts css admin interface writting whole new html page in modal.
modal content:
<!doctype html> <html> <head> /* modal specific css here */ </head> <body> /* content here */ </body> </html> i know it's possible load specific url in modal, try avoid http request.
except within <iframe> (which requires http request), there no way have <html> tag inside original html page. therefore modal must part of original html page, , inherit css.
the best answer can think of (and 1 commonly used, eg in twitter bootstrap) case, create modal div , overwrite admin css modal's own css:
<div id="modal"> modal content. </div> and in css file:
#modal whatever { // modal specific css }
Comments
Post a Comment