Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[XML/SVG] Return variable from embedded SVG object

Status
Not open for further replies.

TimeClypse

Programmer
May 30, 2005
2
NL
I embedded a SVG object into my php page using the following code:

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?
 
Plug the value into a hidden form variable and submit the form to the php page.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top