Author |
Topic |
|
aspwiz
Junior Member
250 Posts |
Posted - 21 February 2005 : 06:05:10
|
Wouldnt life be easier if we could build up the output of a page in one string, then just output that to the browser.
It would allow us to do some nifty replacements for xhtml compatibility, and other things before sending that string off to the browser.
Oh well.... I may just dive in and do this. |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 21 February 2005 : 06:25:40
|
I seem to recall someone attempting something like this before; don't remember the exact details but I'll try searching around, see what I can come up with.
I suppose one way to do it would be to create a new variable in config.asp - strPageOutput, for example - then go through each file and replace response.write with strPageOutput=strPageOutput&. You could then run your replacements, etc. at the end of inc_footer.asp before a reponse.write of strPageOutput. Sure there would be some minor performance issues doing it that way, but it's a start.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 21 February 2005 : 10:42:09
|
Couldn't turn up that previous post using search. I think the guy who was trying to do it was doing so so he could apply a template before sending the HTML to the client, if that helps anyone else to unearth it.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
aspwiz
Junior Member
250 Posts |
Posted - 21 February 2005 : 13:06:40
|
i certainly would not do strPageOutput=strPageOutput&blah.
that method of string concaternation is VERY VERY slow! |
|
|
-gary
Development Team Member
406 Posts |
Posted - 23 February 2005 : 19:17:47
|
Larger pages would suffer since you're not flushing as you go. Currently, you can DL as the server process farther down the page. To buffer and send would make the entire process wait. |
KawiForums.com
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 24 February 2005 : 05:58:04
|
quote: Originally posted by aspwiz that method of string concaternation is VERY VERY slow!
Really? I figured there's be a performance hit, but not that bad. Guess that's my something new learned for today
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
aspwiz
Junior Member
250 Posts |
Posted - 03 March 2005 : 16:15:38
|
were talking milliseconds here.... literally. |
|
|
|
Topic |
|