TimeClypse
Programmer
I embedded a SVG object into my php page using the following code:
I'm using the following code to return a variable, when you click the SVG object:
I don't want the alert function, but i want to POST that variable (displayed by the alert function) to another php page, which uses this for further processing.
How to manage this, so that i can POST that variable to the required php page, from within the embedded SVG?
Code:
<object data="../../RIMapper/XML2SVG?RIM=aamsveen_groundwaterpoints.xml&validate=on" type="image/svg+xml" width="600" height="600" align="middle">
<a href="[URL unfurl="true"]http://www.adobe.com/svg/viewer/install/beta.html"><img[/URL] src="images/svgdownload.gif" width="600" height="600" align="middle"></a>
</object>
I'm using the following code to return a variable, when you click the SVG object:
Code:
<FRAGMENT DBID="none" NAME="showRIMData" TYPE="ECMASCRIPT">
function showRIMData(evt,theNS, theElem) {
if (theNS != '') { theElem = theNS + ":" + theElem; }
alert(evt.getTarget().getAttribute(theElem));
}
</FRAGMENT>
I don't want the alert function, but i want to POST that variable (displayed by the alert function) to another php page, which uses this for further processing.
How to manage this, so that i can POST that variable to the required php page, from within the embedded SVG?