Hi
i have a little problem
i have build the form - in which i can delete my
globals..
and everythings works - only the kill will not kill my global :)
i have checked all of the parameters - they are correct...
i get also a response - "deleting successully" (my own response)
but the global isn`t deleted ...
Here is the surce - just cut & paste ...i have commented out the kill
command - so you can`t do any bad things....
[code]
<HTML>
<HEAD>
<TITLE> Cache Server Page </TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT">
function loadNew(pName)
{
window.location.href="test.csp?Global="+pName;
}
function remove(pName)
{
window.location.href="test.csp?Global="+pName+"&KILL=TRUE";
}
</SCRIPT>
<TABLE>
<TR>
<TD>
<FIELDSET><legend>Global zum löschen auswählen<legend>
<csp:query name="query" classname="%Dictionary.CompiledClass"
queryname="Summary">
<Select>
<csp:while counter=queryRow condition=query.Next()>
<option value="#(query.GetData(1))#"onClick="loadNew(this.value)">
#(query.GetData(1))#
</option>
</csp:while>
</select>
<br><br>
<SCRIPT LANGUAGE="CACHE" RUNAT="SERVER">
w (%request.Get("Global"))
if ($D(%request.Data("Global",1)))
{
w " <input type='button' value='LÖSCHEN?'
onClick=remove('"_(%request.Get("Global"))_"')>"
}
if ($D(%request.Data("Global",1)) && ($D(%request.Data("KILL",1))))
{
w " <FONT COLOR=#FF0000>wurde gelöscht</FONT>"
//kill ^%request.Get("Global")
}
</SCRIPT>
</FIELDSET>
</TD>
</TR>
<TR>
<TD>
<br><br><br>
<FIELDSET><legend>Mehrere Globals löschen<legend>
IN ARBEIT
</FIELDSET>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
[/code]