Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script - Table create for webpage

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,28032
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Script - Table create for webpage
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Script - Table create for webpage - 11/15/2005 8:50:01 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
(NOT ASP)
I know this would probably fit better out at an HTML Forum, but I figure someone here has ran across this before. (And I haven't received any responses back from one of the HTML Forums I posted this question on)

I currently have a script that connects to an Access Database and uses the information to create a basic html which only displays a Table. The problem is how the actual page is displayed. I don't believe it's an actual VBScript problem, since I get the same problem if I create the page manually(using the information pulled from the database), but I'm curious if anyone has come across the same problem before.

All of the information is pulled out correctly, but I'm trying to correct the actual layout of the page.
If there are 15 lines in the table, then the table doesn't start until about the 16th line of the page. (20 lines in table, 21st line is where it starts on the page)
When I create the page manually, with bogus information, it displays correctly. When I manually create the page with the information pulled from the Access Database, I get the same display as when the script creates it.

Has anyone come across this before or run into the same issue?
Here's the source for the actual page. I can post the script I wrote to do this, but the problem should be in the html coding and not the script itself.

      

< Message edited by Country73 -- 11/15/2005 8:52:23 AM >
 
 
Post #: 1
 
 RE: Script - Table create for webpage - 11/15/2005 10:02:11 PM   
  ehvbs

 

Posts: 2012
Score: 48
Joined: 6/22/2005
From: Germany
Status: offline
Hi Country73,

the code you posted looks okay to IE and Mozilla. But running your code thru HtmlTidy
gives an error concerning the "TBODY" in the table tag. If removing this doesn't solve
your problem, you should show us your vbs code.

(in reply to Country73)
 
 
Post #: 2
 
 RE: Script - Table create for webpage - 11/18/2005 2:02:00 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Well, I removed the TBODY from the webpage, but it's still displaying in the same manner.
Here's the script:


      

(in reply to ehvbs)
 
 
Post #: 3
 
 RE: Script - Table create for webpage - 11/19/2005 3:50:28 AM   
  TNO


Posts: 1036
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
The answer is so simple you overlooked it.

you don't need the <BR> tags. You already have <TR> tags defining the Table Rows.

Good Luck

< Message edited by TNO -- 11/19/2005 11:47:51 PM >


_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to Country73)
 
 
Post #: 4
 
 RE: Script - Table create for webpage - 11/21/2005 12:27:34 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
DOH!

Why oh why did I put that <BR> in there?!?
Thanks for pointing out my simple mistake TNO, that did the trick.

(in reply to TNO)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Script - Table create for webpage Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts