Hi there:


I have a JavaScript to access an Autodesk Plugin that looks like this:

function Layers_clientessta(Layer,VAL)
{
        var Mapa = getMap();          
        var Clientes = Mapa.getMapLayer(Layer);
        var T21710 = Mapa.getMapLayer(Layer);
        if (VAL == 'ON')     
              {
                        if (Layer == 'CLIENTESSTA'){
                          Clientes.setVisibility(true);
                  Clientes.setRebuild(true);
                                  }
                                  if (Layer == 'T21710'){
                          T21710.setVisibility(true);
                  T21710.setRebuild(true);
                                  }
                                  
          }                                else
          {
                                if (Layer == 'CLIENTESSTA'){
                  Clientes.setVisibility(false);
                  Clientes.setRebuild(false);
                                  }
                                 if (Layer == 'T21710'){
                          T21710.setVisibility(false);
                  T21710.setRebuild(false);
                                  }
          }
          Mapa.refresh();
                                           
}

As you can see I pick up 2 parameters, the name of the layer and its visibility 
(on, off) so far so good ...
I was doing it using A Tag, like:

<a href="javascript:Layers_clientessta('T21710','Off')">OFF</a><p>

Once again, so far so good, then my boss asked me to use CFTREE, and I tried:

Skipping the cfform and cftree, my item looks like this:

<cftreeitem value="Off" parent="Supermercados" img="element" 
href="javascript:Layers_clientessta('CLIENTESSTA','Off')" expand="Yes">

the problem is my href isn�t passing the atributes to my JS function.
Thanks
Vinicius Carvalho


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to