HighDots Forums  

Expanding transarent cell without javascript?

alt.html alt.html


Discuss Expanding transarent cell without javascript? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Bailey
 
Posts: n/a

Default Expanding transarent cell without javascript? - 04-11-2008 , 07:33 AM






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


Many thanks

Andy


Reply With Quote
  #2  
Old   
cwdjrxyz
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-11-2008 , 12:09 PM






On Apr 11, 7:33 am, "Andrew Bailey" <a... (AT) REMOVETOEMAILMEmanyplay (DOT) com>
wrote:
Quote:
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.



Reply With Quote
  #3  
Old   
Andrew Bailey
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-11-2008 , 03:57 PM




"cwdjrxyz" <spamtrap2 (AT) cwdjr (DOT) info> wrote

Quote:
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.

Thanks for replying, I didn't quite understand what you were saying but I
think the gist is that using document.write for page rendering is bad and
that's exactly what I want to avoid.

Andy



Reply With Quote
  #4  
Old   
Jim Moe
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-11-2008 , 06:02 PM



On 04/11/08 05:33 am, Andrew Bailey wrote:
Quote:
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.

Quote:
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)


Reply With Quote
  #5  
Old   
Andrew Bailey
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-12-2008 , 08:38 AM




"Jim Moe" <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote

Quote:
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.


Quote:
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.


Quote:
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.


Quote:
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.


Quote:
THE QUESTION:

Is it possible to replicate my expanding cell example without javascript?

Yes.
Well thanks for that... IDIOT!!!

Quote:
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #6  
Old   
Neredbojias
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-12-2008 , 12:37 PM



On 11 Apr 2008, "Andrew Bailey" <andy (AT) REMOVETOEMAILMEmanyplay (DOT) com>
wrote:

Quote:
Hi Guys,
What about the gals?

Quote:
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


Reply With Quote
  #7  
Old   
Jim Moe
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-12-2008 , 02:25 PM



On 04/12/08 06:38 am, Andrew Bailey wrote:
Quote:
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)


Reply With Quote
  #8  
Old   
Neredbojias
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-12-2008 , 07:07 PM



On 12 Apr 2008, Neredbojias <me@http://www.neredbojias.com/_eml/fliam.php>
wrote:

Quote:
Is it possible to replicate my expanding cell example without
javascript?
Okay, I did a little putzin' with your page. -Didn't check for any extant
errors, but replaced j/s with ss. See it here:

http://www.neredbojias.com/tsttst/expand_ex.php


--
Neredbojias
http://www.neredbojias.com/
Great sights and sounds


Reply With Quote
  #9  
Old   
Andrew Bailey
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-13-2008 , 04:46 AM




"Jim Moe" <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote

Quote:
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)
Hi Jim,

Apologies for being short with you but from my point of view it really does
look like you either didn't read or don't understand the original post.

here it is again...

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


Many thanks

Andy



....So I've got some code that works BUT (as in it's a bad thing) it uses
javascript and as my question clearly states, I want to create the same
effect WITHOUT using javascript.

.... I then provide a link to a test url which reiterates the question in
both the content and the code.


The reason why I was short is that the first comment you make is...

Quote:
1. Some people do not have JS enabled. Using JS as an integral part of
the
display rendering is therefore a poor plan.
Which is why I do NOT want to use javascript.

Then you say...

Quote:
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.
Which refers to using onclick and proper links which has NOTHING to do with
the question (the only onclick / link is a small bit of test code to switch
some content from short to long to demonstrate that my example cell can
expand)... and then you repeat yourself about using javascript like you
almost think I'm saying the opposite of what I am... I DON'T WANT TO USE JS
I WANT TO USE CSS.

Then you say...

Quote:
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.
Well by this time I'm almost screaming at the screen because again you
appear to think I want browser sniffing and that I want to render
browser-specific html which of course is the total opposite of what I want.


The funny thing is that I thought I might get someone that didn't grasp what
I wanted so I separated the question to make it absolutely clear, like
this....


THE QUESTION:

Is it possible to replicate my expanding cell example without javascript?


.... and you go and answer with "Yes" which to me was just plain stupid and
as unhelpful as anyone could possibly be, so I hope you (and others) can see
why your reply annoyed me.

Anyhoo, sorry for being short with you.


Andy


PS: After I typed this reply I re-read it and it occurred to me that you may
have thought that the question was about how to write "expanding" code when
it's really about "I made these cool transparent cells but they screw up
when you expand them unless you use browser specific code, which I want to
avoid" but that is a long shot as everyone knows that tables expand on their
own without any code.







Reply With Quote
  #10  
Old   
Andrew Bailey
 
Posts: n/a

Default Re: Expanding transarent cell without javascript? - 04-13-2008 , 04:56 AM




"Neredbojias" <me@http://www.neredbojias.com/_eml/fliam.php> wrote in
message news:Xns9A7E6C07F653neredbojiasnano (AT) 85 (DOT) 214.90.236...
Quote:
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

Whoops!

It looks like I haven't made my question clear enough as it would appear
that you think I want to know how to expand a table cell?

When in reality, my question is about transparent cells that stop being
transparent when you expand them.

Andy


PS: I have apologised and explained my response to Jim as a reply to his
reply.








Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.