473,226 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Buffering HTML page

Hi,

I'm developing a websolution using ASP and DHTML technology that's
running on a MS IIS webserver.

My solution is frame based with a toolbar on top, a hidden frame for
scripts in the middel (all actions run here), and on bottom html pages
will be shown. The bottom page contains forms witch is developed with
a 3ed party design tool from Acrobat and stored as HTML. It wouldn't
be any problem storing these files as html. But the main thing about
these files is that we don't want to modify these files because then
we have a big task of modifying hundreds of files.

My problem is that we have to customize these form html pages with
javascript to insert data like addresses and other predefined data
which has to be filled in. When the HTML page loads data witch is
inserted by the designer as default data is shown first and then 5
seconds or so later the customized correct information overwrites this
information.
I would like to buffer the HTML page so long that the end user doesn't
see the default data from the designer, but just show the customized
data.

"Buffering enabled" is on in the webserver, I've inserted
Response.buffer = True in the frame page, top page and middle page,
but since the bottom page contains html pages that "can't" be
modifyed, I haven't been able to verify that this page is beeing
buffered.

So I just wounder if there is anyone that can help me find a solution
in how to buffer the html page long enough so the end user doesn't see
the changes.

I will also like to mention that it doesn't work putting the
javascript insert in the start of page load because then I get a
javascript error saying that the object doesn't excists.

And - a solution is to load the html page serverside and find a way to
insert the correct data serverside and then write the page to the
browser but I find this solution a little bit difficult.

Okey - hope there are some clever ASP/DHTML experts out there!
In advance thanks for helping!!!

Kind regards,

Jon Haakon
Jul 19 '05 #1
2 2292

If I'm getting this right you are replacing value's in a form after this
form has been loaded clientside, using JavaScript right?

If this is the case, and you want to hide the original default data (which
you probably use as the "key" to out what values are to be replaced with
what data) you could do this by putting a DIV (or any other tag) around the
actual form content and use the "display: none" style attribute to hide the
content as long as the page hasn't been parsed.

Basically you could do this:

<HTML>
<HEAD>
<script language="javascript">

function initPage(){
// call your form-processsing code here
// the page has now loaded, so we disable the loading message
document.getElementById("waitMsg").style.display = "none";
// and show the actual content
document.getElementById("content").style.display = "";
}

</script>
</HEAD>
<body onload="initPage();">

<div id="waitMsg">
please wait while loading...
</div>
<div id="content" style="display: none">
your form-content goes here
</div>
</body>
</HTML>

hope this helps,
J.
"Jon Haakon" <jo**@spama.no> wrote in message
news:2e**************************@posting.google.c om...
Hi,

I'm developing a websolution using ASP and DHTML technology that's
running on a MS IIS webserver.

My solution is frame based with a toolbar on top, a hidden frame for
scripts in the middel (all actions run here), and on bottom html pages
will be shown. The bottom page contains forms witch is developed with
a 3ed party design tool from Acrobat and stored as HTML. It wouldn't
be any problem storing these files as html. But the main thing about
these files is that we don't want to modify these files because then
we have a big task of modifying hundreds of files.

My problem is that we have to customize these form html pages with
javascript to insert data like addresses and other predefined data
which has to be filled in. When the HTML page loads data witch is
inserted by the designer as default data is shown first and then 5
seconds or so later the customized correct information overwrites this
information.
I would like to buffer the HTML page so long that the end user doesn't
see the default data from the designer, but just show the customized
data.

"Buffering enabled" is on in the webserver, I've inserted
Response.buffer = True in the frame page, top page and middle page,
but since the bottom page contains html pages that "can't" be
modifyed, I haven't been able to verify that this page is beeing
buffered.

So I just wounder if there is anyone that can help me find a solution
in how to buffer the html page long enough so the end user doesn't see
the changes.

I will also like to mention that it doesn't work putting the
javascript insert in the start of page load because then I get a
javascript error saying that the object doesn't excists.

And - a solution is to load the html page serverside and find a way to
insert the correct data serverside and then write the page to the
browser but I find this solution a little bit difficult.

Okey - hope there are some clever ASP/DHTML experts out there!
In advance thanks for helping!!!

Kind regards,

Jon Haakon

Jul 19 '05 #2
Please post to one newsgroup only.

another answer in microsoft.public.inetserver.iis

Cheers
Ken

"Jon Haakon" <jo**@spama.no> wrote in message
news:2e**************************@posting.google.c om...
: Hi,
:
: I'm developing a websolution using ASP and DHTML technology that's
: running on a MS IIS webserver.
:
: My solution is frame based with a toolbar on top, a hidden frame for
: scripts in the middel (all actions run here), and on bottom html pages
: will be shown. The bottom page contains forms witch is developed with
: a 3ed party design tool from Acrobat and stored as HTML. It wouldn't
: be any problem storing these files as html. But the main thing about
: these files is that we don't want to modify these files because then
: we have a big task of modifying hundreds of files.
:
: My problem is that we have to customize these form html pages with
: javascript to insert data like addresses and other predefined data
: which has to be filled in. When the HTML page loads data witch is
: inserted by the designer as default data is shown first and then 5
: seconds or so later the customized correct information overwrites this
: information.
: I would like to buffer the HTML page so long that the end user doesn't
: see the default data from the designer, but just show the customized
: data.
:
: "Buffering enabled" is on in the webserver, I've inserted
: Response.buffer = True in the frame page, top page and middle page,
: but since the bottom page contains html pages that "can't" be
: modifyed, I haven't been able to verify that this page is beeing
: buffered.
:
: So I just wounder if there is anyone that can help me find a solution
: in how to buffer the html page long enough so the end user doesn't see
: the changes.
:
: I will also like to mention that it doesn't work putting the
: javascript insert in the start of page load because then I get a
: javascript error saying that the object doesn't excists.
:
: And - a solution is to load the html page serverside and find a way to
: insert the correct data serverside and then write the page to the
: browser but I find this solution a little bit difficult.
:
: Okey - hope there are some clever ASP/DHTML experts out there!
: In advance thanks for helping!!!
:
: Kind regards,
:
: Jon Haakon
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David Morgan | last post by:
Hi This is a really weird problem. We have a website that has been running for about six months with no problems. We have recently moved it to a new server with a new ISP. The server is of a...
2
by: MPowell | last post by:
Gents/Ladies, I'm doing (at least plan on ) lots of Reads and Writes across a communication channel. I'm told that for the 'receive side' it'd be prudent to implement a double buffering scheme to...
2
by: Sam-Kiwi | last post by:
I've spent the last 6 months developing a pay-per-download website using ASP.NET Users purchase documents and then download them. The intention is that users are only charged for documents...
0
by: Just D. | last post by:
Who knows and could explain the ASPX understanding of caching, buffering, etc.? Each ASPX page has the property "buffer=true" by default. We also can include this tag to the page header: <meta...
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
4
by: Jon Slaughter | last post by:
I'm using eval to excute some mixed php and html code but I cannot debug it. I am essentially using filegetcontents to load up a php/html file and then inserting it into another php/html file and...
11
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition:...
0
by: JRough | last post by:
On Sep 26, 3:23 pm, Captain Paralytic <paul_laut...@yahoo.comwrote: without the exit I get this again: Warning: Cannot modify header information - headers already sent by (output started at...
1
by: coolsti | last post by:
I am having a curious problem with Vista working on a Lenovo thinkpad. To test and demonstrate this problem, I have a PHP script that does not terminate. It enters an infinite loop where it...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.