Menu

#198 className attribute ignored

Feature_Request
open
nobody
5
2001-12-18
2001-12-18
No

DynLayers, like other HTML entities, can have a
className attribute set by which CSS may be used to
control style information. However, the getOuterHTML
function does not return the class attribute. This
simple inclusion would allow designers to more easily
control the look of their DynLayers through actual CSS
stylesheets.

Here is an example of how the getOuterHTML function
could include this attribute:

var s='<div id="'+this.id+'" ';
if (this.className) s+='class="'+this.className+'" ';
s += 'style="';
if (this.visible==false) s+=' visibility:hidden;';
...

Discussion

  • Robert Rainwater

    Logged In: YES
    user_id=16618

    This however wouldn't work in NS 4.

     
  • Chris Campbell

    Chris Campbell - 2001-12-18

    Logged In: YES
    user_id=288889

    No, in the NS4 section it would look like this:

    var s='\n<layer id="'+this.id+'"';
    if (this.className) s+=' class="'+this.className+'"';
    if (this.visible==false) s+=' visibility="hide"';
    ...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.