![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is there a way to define the content of a div or a span in one place, but then place it in the document in another place? I do not want to do absolute position. I will probably want to include that span in a table cell. The reason I want to do this is to make the table code nice and compact and to be able to see the table structure even if the div has long content. |
#3
| |||
| |||
|
|
in post: <news:ccu1dv$1vpm$1 (AT) news (DOT) wplus.net Aaron Fude <aaronfude (AT) yahoo (DOT) com> said: Is there a way to define the content of a div or a span in one place, but then place it in the document in another place? http://allmyfaqs.com/faq.pl?Include_one_file_in_another The reason I want to do this is to make the table code nice and compact and to be able to see the table structure even if the div has long content. thats fine using the server side options at the link above before the server does its majic but the end result spat out at the browser end will have the <td> containing goodies. and just in case you're using <table>s for layouts. <smack on wrist/ stop it. use css. |
|
-- b r u c i e |
#4
| |||
| |||
|
|
ok, ok - I'll reveal what I'm really trying to do. I have a page with a lot of content. It is tablular data and the able has 1000 lines. I was planning to break it up into 20 tables with 50 rows each. I will then use COOLjsTree (http://javascript.cooldev.com) to hide all but one table. The darn thing is, COOLjsTree requires its HTML content to be a valid javascript string which is cubersome for a table with 50 lines. So I thought I would put that table in a div and just mention the dive in the javascript string. |
#5
| |||
| |||
|
|
ok, ok - I'll reveal what I'm really trying to do.... |
|
I have a page with a lot... snip |
![]() |
| Thread Tools | |
| Display Modes | |
| |