Re: [Xsltforms-support] Submission problem
Brought to you by:
alain-couthures
|
From: Alain C. <ala...@ag...> - 2015-07-10 20:06:09
|
Hello Mark, The browser debugger says that the response is empty... but it can be viewed in a different tab! I have to check the HTTP request... --Alain Le 10/07/2015 21:57, Mark Seaborne a écrit : > <htmlxmlns="http://www.w3.org/1999/xhtml" > xmlns:nr="http://www.nearby.org.uk" > xmlns:xf="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events"> > > <head> > <title>Test</title> > > > <xf:modelid="theModel"> > <xf:instanceid="var"xmlns=""> > <doc> > <!--co-ordinates--> > <convert> > <key>37d6c2c0832f6b</key> > <p>303743,967206</p> > <in>gr-osgb36</in> > <need>gr10-osgb36</need> > <output>sxml</output> > </convert> > </doc> > </xf:instance> > > <xf:instanceid="gridRef"> > <convertxmlns="http://www.nearby.org.uk"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.nearby.org.uk/api/convert.xsd"> > <infohref="http://www.nearby.org.uk/api/convert-help.php"/> > <input> > <endatum="osgb36"e="302872"n="966758"/> > </input> > <output> > <gazcountry="United Kingdom"/> > <gr10datum="osgb36"gr10="ND 02872 66758"/> > <grdatum="osgb36"gr="ND0287266758"digits="10"/> > <lldatum="wgs84"lat="58.577939885331"long="-3.6719623952203"/> > </output> > </convert> > </xf:instance> > > > <xf:submissionid="getGridRef" > method="get" > replace="instance" > instance="gridRef" > ref="instance('var')/convert" > serialization="application/x-www-form-urlencoded" > resource="http://www.nearby.org.uk/api/convert.php"> > <xf:actionev:event="xforms-submit-error"> > <xf:messagelevel="modal">'<xf:outputvalue="instance('var')/convert/p"/>' > getGridRef didn't work</xf:message> > </xf:action> > </xf:submission> > > </xf:model> > > </head> > > <body> > <xf:inputref="instance('var')/convert/p"> > <xf:label>EPSG:27700 co-ordinates</xf:label> > </xf:input> > > <xf:submitsubmission="getGridRef"> > <xf:label>Get Ordnance Survey Grid Reference</xf:label> > </xf:submit> > > <p>OS Grid Reference is: > <xf:outputref="instance('gridRef')/nr:output/nr:gr10/@gr10"/></p> > </body> > </html> |