![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Guys, I have developed some code that allows me to create transparent tables, however some of these tables need to be able to expand and shrink. I can do it but it requires javascript to document.write certain parts of the html differently depending on browser type. THE QUESTION: Is it possible to replicate my expanding cell example without javascript? THE EXAMPLE URL: http://www.microbuild.com/microbuild...d_example.html |
#3
| |||
| |||
|
|
On Apr 11, 7:33 am, "Andrew Bailey" <a... (AT) REMOVETOEMAILMEmanyplay (DOT) com wrote: Hi Guys, I have developed some code that allows me to create transparent tables, however some of these tables need to be able to expand and shrink. I can do it but it requires javascript to document.write certain parts of the html differently depending on browser type. THE QUESTION: Is it possible to replicate my expanding cell example without javascript? THE EXAMPLE URL: http://www.microbuild.com/microbuild...d_example.html It should be possible to use php on the server rather than javascript. In fact you often have to do this if you write valid xhtml 1.1 code and serve it properly as application/xhtml+xml, because a document.write in javascript is usually not allowed because of xml considerations. For instance, you might drag in something that is unclosed with a document.write, and that is a very serious and often fatal error for xml devices. Thus many xml parsers are set not to allow document.write. Also with PHP with the GD extension(built in on the fairly recent versions of php, but must be installed on a few early versions) you can write code with GD for text on a transparent background. Thus, for some text tables, you could expand or reduce the image size for the resulting png or whatever in the usual way. |
#4
| |||
| |||
|
|
I have developed some code that allows me to create transparent tables, however some of these tables need to be able to expand and shrink. I can do it but it requires javascript to document.write certain parts of the html differently depending on browser type. 1. Some people do not have JS enabled. Using JS as an integral part of the |
|
THE QUESTION: Is it possible to replicate my expanding cell example without javascript? Yes. |
#5
| ||||||
| ||||||
|
|
On 04/11/08 05:33 am, Andrew Bailey wrote: I have developed some code that allows me to create transparent tables, however some of these tables need to be able to expand and shrink. I can do it but it requires javascript to document.write certain parts of the html differently depending on browser type. |
|
1. Some people do not have JS enabled. Using JS as an integral part of the display rendering is therefore a poor plan. |
|
2. There is no such protocol as "javascript:" even though it is unofficially supported by most browsers. Provide a proper link and use the "onclick" attribute to service the JS functionality. And again those who have JS disabled cannot effectively use your site. |
|
3. Browser sniffing is inherently bad. There is almost no reason to write browser-specific code. Those rare and bizarre cases are due to IE limitations and can be worked around using IE-specific conditional statements in the header. |
|
THE QUESTION: Is it possible to replicate my expanding cell example without javascript? Yes. |
|
-- jmm (hyphen) list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email) |
#6
| |||
| |||
|
|
Hi Guys, |
|
Is it possible to replicate my expanding cell example without javascript? THE EXAMPLE URL: http://www.microbuild.com/microbuild...d_example.html |
#7
| |||
| |||
|
|
1. Some people do not have JS enabled. Using JS as an integral part of the display rendering is therefore a poor plan. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. You did not ask about this. 2. There is no such protocol as "javascript:" even though it is unofficially supported by most browsers. Provide a proper link and use the "onclick" attribute to service the JS functionality. And again those who have JS disabled cannot effectively use your site. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. I just showed you how. 3. Browser sniffing is inherently bad. There is almost no reason to write browser-specific code. Those rare and bizarre cases are due to IE limitations and can be worked around using IE-specific conditional statements in the header. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. You did not ask about this. THE QUESTION: Is it possible to replicate my expanding cell example without javascript? Yes. Well thanks for that... IDIOT!!! You asked, I answered. Pardon me for being on point. |
#8
| |||
| |||
|
|
Is it possible to replicate my expanding cell example without javascript? |
#9
| ||||
| ||||
|
|
On 04/12/08 06:38 am, Andrew Bailey wrote: 1. Some people do not have JS enabled. Using JS as an integral part of the display rendering is therefore a poor plan. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. You did not ask about this. 2. There is no such protocol as "javascript:" even though it is unofficially supported by most browsers. Provide a proper link and use the "onclick" attribute to service the JS functionality. And again those who have JS disabled cannot effectively use your site. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. I just showed you how. 3. Browser sniffing is inherently bad. There is almost no reason to write browser-specific code. Those rare and bizarre cases are due to IE limitations and can be worked around using IE-specific conditional statements in the header. Hello?... yes I AGREE, I'm trying to find a way to achieve the same effect WITHOUT javascript. You did not ask about this. THE QUESTION: Is it possible to replicate my expanding cell example without javascript? Yes. Well thanks for that... IDIOT!!! You asked, I answered. Pardon me for being on point. You did not provide sufficient (or any, actually) context for a meaningful answer beyond that it can be done. There are server-side opions. There are CSS opions. Why is a dropdown (<select> element) insufficient for your design? -- jmm (hyphen) list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email) |
|
1. Some people do not have JS enabled. Using JS as an integral part of the display rendering is therefore a poor plan. |
|
2. There is no such protocol as "javascript:" even though it is unofficially supported by most browsers. Provide a proper link and use the "onclick" attribute to service the JS functionality. And again those who have JS disabled cannot effectively use your site. |
|
3. Browser sniffing is inherently bad. There is almost no reason to write browser-specific code. Those rare and bizarre cases are due to IE limitations and can be worked around using IE-specific conditional statements in the header. |
because again you
#10
| |||
| |||
|
|
On 11 Apr 2008, "Andrew Bailey" <andy (AT) REMOVETOEMAILMEmanyplay (DOT) com wrote: Hi Guys, What about the gals? Is it possible to replicate my expanding cell example without javascript? THE EXAMPLE URL: http://www.microbuild.com/microbuild...d_example.html From viewing your sample page, it is just about the easiest thing in the world using server-side methods. Here is an _empirical_ php example: div TEST<br TEST<br TEST<br ? if ($biggy) { ? TEST<br TEST<br TEST<br TEST<br TEST<br ? } ? /div a href="mypage.php?biggy=anything">Expand</a Btw, Jim Moe isn't an idiot, and you should really be more polite when you're asking for help. -- Neredbojias http://www.neredbojias.com/ Great sights and sounds |
![]() |
| Thread Tools | |
| Display Modes | |
| |