Using .load to replace previously ".load"ed content
ok, not sure the title is real clear. but basically what I want to do is load in a dialog into a div on the page, then, from that dialog, when a particular link is pressed, replace the content in that dialog with the content from another page. So basically it's like an iframe except I need the content brought in via .load. Is this possible?
Here's the scenario...
Login link pressed
overlay dialog pops up
.load in "login.html"
Login dialog displays. "Have no account? Click here to create one"
"Create account" link pressed
overlayed login.html is replaced with the content of create_account.html
The reason I'd like to do this with .load instead of an iframe is because the iframe content does not dynamically blend in with the styles on the calling page.
Thanks for any help,