<%@language = "javascript" %>
<%
/*  $Revision$
    $Id$

    File:               fac_widget.asp
    Description:        Dynamische widget pagina
    Parameters:         wgt_key, if omitted, an empty marker is returned
    Context:            Widgets
    Note:               Returned de volledige HTML van een individuele widget zodat de rendering op 1 plek (serverside) gebeurd

*/
DOCTYPE_Disable = true; // Ik heb de <!DOCTYPE html> niet nodig want ik verwerk de Response zelf
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/iface.inc" -->
<!-- #include file="fac_widget.inc" -->
<%
var wgt_key = getQParamInt("wgt_key");
var mode = getQParamSafe("mode", "show");

if (wgt_key > -1)
{
    var widget = wgt.get_widget(wgt_key);
    wgt.renderWidget(widget, mode);
}
else if (wgt_key == -1)
{
    Response.Write("<div class='wgt-marker'></div>");
    wgt.empty_col();
}
Response.End;
%>