Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 25th, 2002, 07:16 AM
Dicky Dicky is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 99 Dicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Print Table

I am finding that if I try and nest a table within a table using the print command the nested table is farmatted the same as the parent table even if you specify borders and colours within both of the table tags.
Example:
print("<table width="400" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#990000">");
print("<TR>");
print("<TD");
print("<TABLE WIDTH="100%" border="0">n" );

Reply With Quote
  #2  
Old September 25th, 2002, 10:59 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 23 sec
Reputation Power: 6
RE: Print Table

This sounds have nothing to do with the print command. Can you post up some full html that has this problem?

Check the source of this page...it is nothing but tables within tables.....

Also, moving to Client side forum...

Reply With Quote
  #3  
Old September 26th, 2002, 01:30 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
RE: Print Table

your third print statement does not have a ">" after the "D" in TD

Reply With Quote
  #4  
Old September 26th, 2002, 08:38 PM
Dicky Dicky is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 99 Dicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Print Table

Thanks for that I am on holiday as from tomorrow and will not have time to check till I get back (weeks time) but will post my results...

Reply With Quote
  #5  
Old October 3rd, 2002, 11:48 PM
sarah's Avatar
sarah sarah is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Auckland, New Zealand
Posts: 127 sarah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 32 sec
Reputation Power: 2
Send a message via ICQ to sarah Send a message via AIM to sarah Send a message via Google Talk to sarah
RE: Print Table

According to what I've discovered at http://www.richinstyle.com/ this is consistent behaviour. An element will take on the format of it's parent. In this case the second table is a child of the first table and will be formatted as per the parent.

Stylesheets are incredibly powerful but you do have to know what you are doing!

Reply With Quote
  #6  
Old October 11th, 2002, 10:58 AM
crickettdt crickettdt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Chippenham
Posts: 4 crickettdt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to crickettdt
RE: Print Table

This adaptation of your code works:

<html>
<body>
<?

print("<table width="400" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#990000">");
print("<TR>");
print("<TD align=center>");
print("<TABLE WIDTH="100" border="4" bordercolor="blue">n");
print("<TR>");
print("<TD width=50 align=center>Hello");
print("</TD>");
print("</TR>");
print("</Table>");
print("</TD>");
print("</TR>");
print("</Table>");

?>
</body>
</html>

You have to be careful of nesting. In HTML, tags need to be properly nested for them to behave properly.

The code i've posted shows a new table inside another table, with different properties, notice blue border.

If you are having problems of this sort, its always useful to view your page in a browser, right click the mouse, and choose view source.

Save this, and validate it at: http://validator.w3.org/

Its an HTML validator, and will highlight any problems with the outputted HTML.

Reply With Quote
  #7  
Old October 11th, 2002, 11:00 AM
crickettdt crickettdt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Chippenham
Posts: 4 crickettdt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to crickettdt
RE: Print Table

This adaptation of your code works:

<html>
<body>
<?

print("<table width="400" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#990000">");
print("<TR>");
print("<TD align=center>");
print("<TABLE WIDTH="100" border="4" bordercolor="blue">n");
print("<TR>");
print("<TD width=50 align=center>Hello");
print("</TD>");
print("</TR>");
print("</Table>");
print("</TD>");
print("</TR>");
print("</Table>");

?>
</body>
</html>

You have to be careful of nesting. In HTML, tags need to be properly nested for them to behave properly.

The code i've posted shows a new table inside another table, with different properties, notice blue border.

If you are having problems of this sort, its always useful to view your page in a browser, right click the mouse, and choose view source.

Save this, and validate it at: http://validator.w3.org/

Its an HTML validator, and will highlight any problems with the outputted HTML.

Reply With Quote
  #8  
Old October 21st, 2002, 06:43 AM
Dicky Dicky is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 99 Dicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Print Table

Thanks to all - My PHP was ok it was as some of you have said the fact that you have to be carefull when nesting the HTML and embarrassingly for me it was a mistake in my HTML and not nesting the HTML correctly as well as missing out a ">" - thanks Evilive....

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Print Table


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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