473,388 Members | 1,400 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,388 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 2301

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.