I want to embed an .asp page on an html page. I cannot use an iframe. I tried:
<object width='100%' height='1500' type='text/html' data='url.asp'> alt : <a href='url.asp'>url</a> </object>'
works great in ff but not ie7. Any ideas? Is it possible to use the object tag to embed .asp pages for IE or does it only work in ff?
I’ve solved it in the past using Javascript and XMLHttp. It can get a bit hacky depending on the circumstances. In particular, you have to watch out for the inner page failing and how it affects/downgrades the outer one (hopefully you can keep it downgrading elegantly).
Search for XMLHttp (or check this great tutorial) and request the ‘child’ page from the outer one, rendering the HTML you need. Preferably you can get just the specific data you need and process it in Javascript.