Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove all html from page?

Status
Not open for further replies.

paulsw1

Programmer
Nov 30, 2006
5
US
I have a pop-up window. On post-back the server code may decide to close the pop-up. I do this by registering startup JS code that just does a 'window.close()'.

This works, but a) a fair amount of unneeded html gets sent back to the browser, and b) the pop-up window flashes (showing the skeleton html) before it closes.

The best idea I have to minimize these effects is to try and strip the html from the page before it gets sent back to the client. Is there a relatively easy way to do this (perhaps in prerender event?) - I'd rather not get involved in writing an http module at the moment (whatever one of those is!). Thanks,

Paul.
 
Thanks so much - this'll work fine!
Paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top