HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 2nd, 2004, 01:56 AM
JMANCALLOSA JMANCALLOSA is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 JMANCALLOSA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question about Layers(DIV)

Hi:
I have a document(invoice, letter patent,...), that it will have a different number of details and concepts.
These will be in the body of the document. These documents will have another sections. Depending of the amount
of details, when the document is printed it will have more or less pages. In each page I print different sections
(header, footer, ...). Iīm trying to print all the documents using one ASP page. I define different sections, fields,...
for each document, and depending of the position, size, style,... that I define in the DB I print the sections.
What I do until now is to print in ASP a layer with <div> for each detail line. Later in the client(JavaScript),
I can know how many pages it will have the document using offSetHeight. Then I can print all the headers, footers,...
that I need. But in the server I canīt know how many pages it will have a document because it depends of the
number of details.
The problem is that itīs very slow to draw all these layers in the client.
I would need a function that in ASP(in the server) tells me what height it will have a certain layer(DIV) with
these parameters(text, size of the text, width of the layer,...)
Somebody knows how to know it in the server?
Because in the client with JavaScript I know it using offsetHeight but I canīt do it in the client because itīs
very very slow.

Thank you,
JMAN

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Question about Layers(DIV)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway