Re: [Xsltforms-support] Submission problem
Brought to you by:
alain-couthures
|
From: Alain C. <ala...@ag...> - 2015-07-10 20:27:08
|
Mark, When compared with a dbpedia.org response, there should be response headers such as: Access-Control-Allow-Origin: http://localhost Access-Control-Allow-Credentials: true Access-Control-Expose-Headers: Content-Type Access-Control-Allow-Headers: Accept, Authorization, Slug, Link, Origin, Content-type The web administrator for www.nearby.org.uk should be contacted for these headers to be added, don't you think? Thank you for your feedback! --Alain Le 10/07/2015 22:17, Alain Couthures a écrit : > As I suspected, this is a cross-domain restriction. I have not been > looking at this for a long time and it has surely been improved > (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)! > > --Alain > > Le 10/07/2015 22:05, Alain Couthures a écrit : >> 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> >> >> >> >> ------------------------------------------------------------------------------ >> Don't Limit Your Business. Reach for the Cloud. >> GigeNET's Cloud Solutions provide you with the tools and support that >> you need to offload your IT needs and focus on growing your business. >> Configured For All Businesses. Start Your Cloud Today. >> https://www.gigenetcloud.com/ >> >> >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |