Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Wouldnt life be easier...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

aspwiz
Junior Member

250 Posts

Posted - 21 February 2005 :  06:05:10  Show Profile  Visit aspwiz's Homepage
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  Show Profile
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.”
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 21 February 2005 :  10:14:33  Show Profile  Visit D3mon's Homepage
imagine that!


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 February 2005 :  10:42:09  Show Profile
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.”
Go to Top of Page

aspwiz
Junior Member

250 Posts

Posted - 21 February 2005 :  13:06:40  Show Profile  Visit aspwiz's Homepage
i certainly would not do strPageOutput=strPageOutput&blah.

that method of string concaternation is VERY VERY slow!
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 23 February 2005 :  19:17:47  Show Profile
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


Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 24 February 2005 :  05:58:04  Show Profile
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.”
Go to Top of Page

aspwiz
Junior Member

250 Posts

Posted - 03 March 2005 :  16:15:38  Show Profile  Visit aspwiz's Homepage
were talking milliseconds here.... literally.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07