CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Español

 como hago un popup?

Print topic Send  topic

Author Message
mvera

Posts: 5
Posted: 07/10/2006, 9:44 AM

hola maestros soy nuevo en foro y necesito orientacion :

tengo un record dentro hay un link que quiero que llame a un popup que tiene una lista de servicios.


¿como lo puedo hacer?

un saludo.:-)
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 07/10/2006, 6:55 PM

Si usas PHP:

En el Evento BeforeShow del link:

global $nombredelformulario;

$lnk=$nombredelformulario->nombrelink->GetLink();
$newlnk="$lnk\" onclick=\"javascript:window.open(this.href,'Nombre PopUp','width=640,height=480,top='+(screen.height-480)/2+',left='+(screen.width-640)/2+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');return false;";
$nombredelformulario->nombre->SetLink($newlnk);

Este código abre un popup de 640x480.

Luis

_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
mvera

Posts: 5
Posted: 07/11/2006, 11:31 AM

muchas gracias pero intente adaptar lo que me diste pero no funciona.

-puse el static adress(href source) hacia la misma pag.

eventos:

<?php
//BindEvents Method @1-B173C19C
function BindEvents()
{
global $m_prestaciones_persona;
$m_prestaciones_persona->Link1->CCSEvents["BeforeShow"] = "m_prestaciones_persona_Link1_BeforeShow";
}
//End BindEvents Method

//m_prestaciones_persona_Link1_BeforeShow @31-060EF052
function m_prestaciones_persona_Link1_BeforeShow(& $sender)
{
$m_prestaciones_persona_Link1_BeforeShow = true;
$Component = & $sender;
$Container = CCGetParentContainer($sender);
global $m_prestaciones_persona; //Compatibility
//End m_prestaciones_persona_Link1_BeforeShow

//Custom Code @32-2A29BDB7
// -------------------------
// Write your own code here.

global $m_prestaciones_persona;

$lnk=$m_prestaciones_persona->Link1->GetLink();
$newlnk="$lnk\" onclick=\"javascript:window.open(this.href,'Nombre PopUp','width=640,height=480,top='+(screen.height-480)/2+',left='+(screen.width-640)/2+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');return false;";
$m_prestaciones_persona->Link1->SetLink($newlnk);







// -------------------------
//End Custom Code

//Close m_prestaciones_persona_Link1_BeforeShow @31-9086C453
return $m_prestaciones_persona_Link1_BeforeShow;
}
//End Close m_prestaciones_persona_Link1_BeforeShow


?>



en que me podre estar equivocando?
un saludo y gracias.
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 07/11/2006, 2:57 PM

Te da algún error cuando ejecutas la página? En el código javascript generado cuando ejecutas la página (View Source en IE) ves algun error?

A que te refieres cuando dices:

-puse el static adress(href source) hacia la misma pag.

No debería esta página ser el popup que deseas llamar?

Te envío de nuevo el código (de una aplicación en funciomiento) en caso que el anterior tuviese algun error:

global $job_adverts;

$lnk=$job_adverts->Link1->GetLink();
$newlnk="$lnk\" onclick=\"javascript:window.open(this.href,'PositionDetails','width=640,height=480,top='+(screen.height-480)/2+',left='+(screen.width-640)/2+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');return false;";
$job_adverts->Link1->SetLink($newlnk);



_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
mvera

Posts: 5
Posted: 07/12/2006, 12:38 PM

si me sale un error javascript

linea 182
car 1
codigo 0
error :se esperaba objeto
en man.php

180 $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
181 $Tpl->SetVar("Error", $Error);
182 $Tpl->Parse("Error", false);
183 }
184 $CCSForm = $this->EditMode ? $this-


-puse el static adress(href source) hacia la misma pag.
quise decir:

1-seleccione el link
2-Data(en los tab) -> Href Source
3. en LINK adress -> Static Adress puse que fuera al popup


muchas gracias chequeare lo que me dices.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.