mvera
Posts: 5
|
Posted: 07/12/2006, 12:43 PM |
|
hola maestros intente hacer un link invisible dependiendo de la ocacion.
hice lo siguiente.
1-creo la pag.
2-pongo un link (la pag. esta en blanco , puse solo el link)
3-events(en tab)->before show->add action ->hide or show component.
4-le doy los datos .
5-genera lo siguiente:
<?php
//BindEvents Method @1-8E75EC7B
function BindEvents()
{
global $Link1;
$Link1->CCSEvents["BeforeShow"] = "Link1_BeforeShow";
}
//End BindEvents Method
//Link1_BeforeShow @7-84E70291
function Link1_BeforeShow(& $sender)
{
$Link1_BeforeShow = true;
$Component = & $sender;
$Container = CCGetParentContainer($sender);
global $Link1; //Compatibility
//End Link1_BeforeShow
//Hide-Show Component @8-EAF14065
$Parameter1 = CCGetFromGet("de", "");
$Parameter2 = CCGetSession("sss");
if ((strlen($Parameter1) && strlen($Parameter2)) && ( 0 <= CCCompareValues($Parameter1, $Parameter2, ccsText)))
$Component->Visible = false;
//End Hide-Show Component
//Close Link1_BeforeShow @7-368844F2
return $Link1_BeforeShow;
}
//End Close Link1_BeforeShow
?>
refresco la pag. pero el link sigue en la pantalla.
¿alguna orientacion?
un saludo.
|
|
|
bedollandres
Posts: 48
|
Posted: 07/13/2006, 9:00 AM |
|
el las propiedades del link, en "visible" ponle dynamic
_________________
bedollandres |
|
|
bedollandres
Posts: 48
|
Posted: 07/13/2006, 9:00 AM |
|
el las propiedades del link, en "visible" ponle dynamic
_________________
bedollandres |
|
|
mvera
Posts: 5
|
Posted: 07/13/2006, 1:25 PM |
|
muchas gracias eso era.
un saludo
|
|
|
|