468,104 Members | 1,322 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,104 developers. It's quick & easy.

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 2035

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by MPowell | last post: by
reply views Thread by Just D. | last post: by
4 posts views Thread by Jon Slaughter | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.