473,322 Members | 1,734 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,322 software developers and data experts.

Dynamic HTML size

Hi

Generating dynamic HTML via CGI script
(for example a file list)
I would like to send an alert if the size is greater as some limit
Apr 12 '12 #1
6 1562
gits
5,390 Expert Mod 4TB
could you please explain your issue in more detail so that a reader could follow it? and what do you have done so far to solve the problem?
Apr 12 '12 #2
Hi

A CGI script is generating the HTML page , as reading a file and put out the content into a dynamic HTML page. If the file size is greater as a limit, I would like to send an alert or some other kind of notification and stop the HTML generation .
Apr 12 '12 #3
gits
5,390 Expert Mod 4TB
then i would suggest that the CGI script checks the filesize first - if the input-file is less then the limit then fine - otherwise it creates another output with your mentioned notice. this could even include the generation of JavaScript code into the page.
Apr 12 '12 #4
Hi

Unfortunatly I can determine the file size only if I read in. The server is running on a mainframe z/OS system .
Apr 12 '12 #5
gits
5,390 Expert Mod 4TB
uhhh ... i'm not familiar with such ... but if this is the case then you even read it in - determine the size and then decide which output is to be generated. looks like overhead of course, and it is - but i can't say whether or how to determine filesize if something like this fails:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl -w
  2.  
  3. $filename = '/path/to/your/file.ext';
  4. $filesize = -s $filename;
PS: such a question might be answered better in the PERL forum then
Apr 12 '12 #6
Hi

I hoped to put out some fancy message on the top of the HTML page, if I notice at the end of the HTML page, that the input is too large
Apr 12 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: jason | last post by:
What is the best way to build a dynamic html body message if one is looping through a customer table (=/=500 customers) and corresponding inventory table: 1. FSO html template with paramters 2....
1
by: SAN CAZIANO | last post by:
I have create a dynamic html table by adding some rows where I have to put some value in an input field and now how can I get all value of all row ??? I try this but it doesn' work button...
3
by: Aaron Gervais | last post by:
I am brand-new to javascript, but after reading some tutorials online I was able to make a dynamic HTML photo gallery in javascript. It works fine in all browsers except IE6 (big surprise). I've...
0
by: Amy B | last post by:
Hi, I am using the code below to dynamically build an html table and write it to excel an excel spreadsheet. This code works great except that I need the headers use AutoFilter on the headers,...
0
by: Mark Rae | last post by:
Hi all, Seems we've had a bit of a glut of posts relating to dynamic HTML lately (checkboxes in grids etc), so I thought I'd give a plug to this: ...
0
by: robert112 | last post by:
Hi all, I have a WYSIWIG editor (fckeditor) and allow the users to create dynamic html which I save and display later on in the application. The aim is to have the user be able to create...
0
by: gman united | last post by:
We have a classic asp site. The last index value from the dropdown list get populated first. selecting each dropdown value creates dynamic html table. It works fine when it loads for the first time...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.