I have this cf script below where the javascript in it works perfectly i.e.
a new window opens when I press 'click me' when I call it up using the url
in the browser.
But when I "POST" to it from another script the javascript window does not
open when I click "click me".
Is cf writing something kludgy to the browser when I post to it causing the
javascript not to execute??
Any help is appreciated.
Mike
<CFSETTING ENABLECFOUTPUTO NLY="YES">
<cfcontent type="image/svg+xml">
<cfoutput>
<svg width="1024px" height="626px" onload="initsvg (evt)" viewBox="0 0 1024
626" preserveAspectR atio="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="ht tp://www.w3.org/1999/xlink">
<title>Graphi c</title>
<defs>
<script language="JavaS cript">
<![CDATA[
var svgObj;
function initsvg(evt)
{
if ( window.svgDocum ent == null )
{
svgDocument = evt.target.owne rDocument;
}
svgObj = svgDocument.doc umentElement;
}
function goDetail()
{
var myurl = "";
var detailwin = open( myurl, "detail",
"toolbar=no,scr ollbars=yes,wid th=600,height=5 00,dependent=no ,resizable=yes, t
op=50,left=50") ;
detailwin.focus ();
}
]]>
</script>
</defs>
<g transform="tran slate(35,177)" onclick="goDeta il();">
<text font-family="Arial" font-size="10" font-weight="bold"
fill="##000000" >
click me
<set attributeName=" fill" attributeType=" CSS" to="##FF0000"
begin="mouseove r" end="mouseout"/>
<set attributeName=" fill" attributeType=" CSS" to="##FF0000"
begin="mousedow n" end="mouseup"/>
</text>
</g>
</svg>
</cfoutput>
<CFSETTING ENABLECFOUTPUTO NLY="No">
a new window opens when I press 'click me' when I call it up using the url
in the browser.
But when I "POST" to it from another script the javascript window does not
open when I click "click me".
Is cf writing something kludgy to the browser when I post to it causing the
javascript not to execute??
Any help is appreciated.
Mike
<CFSETTING ENABLECFOUTPUTO NLY="YES">
<cfcontent type="image/svg+xml">
<cfoutput>
<svg width="1024px" height="626px" onload="initsvg (evt)" viewBox="0 0 1024
626" preserveAspectR atio="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="ht tp://www.w3.org/1999/xlink">
<title>Graphi c</title>
<defs>
<script language="JavaS cript">
<![CDATA[
var svgObj;
function initsvg(evt)
{
if ( window.svgDocum ent == null )
{
svgDocument = evt.target.owne rDocument;
}
svgObj = svgDocument.doc umentElement;
}
function goDetail()
{
var myurl = "";
var detailwin = open( myurl, "detail",
"toolbar=no,scr ollbars=yes,wid th=600,height=5 00,dependent=no ,resizable=yes, t
op=50,left=50") ;
detailwin.focus ();
}
]]>
</script>
</defs>
<g transform="tran slate(35,177)" onclick="goDeta il();">
<text font-family="Arial" font-size="10" font-weight="bold"
fill="##000000" >
click me
<set attributeName=" fill" attributeType=" CSS" to="##FF0000"
begin="mouseove r" end="mouseout"/>
<set attributeName=" fill" attributeType=" CSS" to="##FF0000"
begin="mousedow n" end="mouseup"/>
</text>
</g>
</svg>
</cfoutput>
<CFSETTING ENABLECFOUTPUTO NLY="No">
Comment