Hi Alain,
Indeed, I will contact them to suggest they fix the headers.
Thanks once again Alain for support well beyond the call of duty!
Best wishes
Mark
> On 10 Jul 2015, at 22:26, Alain Couthures <[email protected]>
> wrote:
>
> Mark,
>
> When compared with a dbpedia.org response, there should be response headers
> such as:
>
> Access-Control-Allow-Origin: http://localhost <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 <http://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>https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
>> <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 :
>>>> <html xmlns=" <http://www.w3.org/1999/xhtml>http://www.w3.org/1999/xhtml
>>>> <http://www.w3.org/1999/xhtml>"
>>>> xmlns:nr=" <http://www.nearby.org.uk/>http://www.nearby.org.uk
>>>> <http://www.nearby.org.uk/>"
>>>> xmlns:xf=" <http://www.w3.org/2002/xforms>http://www.w3.org/2002/xforms
>>>> <http://www.w3.org/2002/xforms>"
>>>> xmlns:ev="
>>>> <http://www.w3.org/2001/xml-events>http://www.w3.org/2001/xml-events
>>>> <http://www.w3.org/2001/xml-events>">
>>>>
>>>> <head>
>>>> <title>Test</title>
>>>>
>>>>
>>>> <xf:model id="theModel">
>>>> <xf:instance id="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:instance id="gridRef">
>>>> <convert xmlns="
>>>> <http://www.nearby.org.uk/>http://www.nearby.org.uk
>>>> <http://www.nearby.org.uk/>"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>> <http://www.w3.org/2001/XMLSchema-instance>" xsi:schemaLocation="
>>>> <http://www.nearby.org.uk/api/convert.xsd>http://www.nearby.org.uk/api/convert.xsd
>>>> <http://www.nearby.org.uk/api/convert.xsd>">
>>>> <info href="
>>>> <http://www.nearby.org.uk/api/convert-help.php>http://www.nearby.org.uk/api/convert-help.php
>>>> <http://www.nearby.org.uk/api/convert-help.php>"/>
>>>> <input>
>>>> <en datum="osgb36" e="302872"
>>>> n="966758"/>
>>>> </input>
>>>> <output>
>>>> <gaz country="United Kingdom"/>
>>>> <gr10 datum="osgb36" gr10="ND
>>>> 02872 66758"/>
>>>> <gr datum="osgb36"
>>>> gr="ND0287266758" digits="10"/>
>>>> <ll datum="wgs84"
>>>> lat="58.577939885331" long="-3.6719623952203"/>
>>>> </output>
>>>> </convert>
>>>> </xf:instance>
>>>>
>>>>
>>>> <xf:submission id="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>http://www.nearby.org.uk/api/convert.php
>>>> <http://www.nearby.org.uk/api/convert.php>">
>>>> <xf:action ev:event="xforms-submit-error">
>>>>
>>>> <xf:message level="modal">'<xf:output
>>>> value="instance('var')/convert/p"/>' getGridRef didn't work</xf:message>
>>>> </xf:action>
>>>> </xf:submission>
>>>>
>>>> </xf:model>
>>>>
>>>> </head>
>>>>
>>>> <body>
>>>> <xf:input ref="instance('var')/convert/p">
>>>> <xf:label>EPSG:27700 co-ordinates</xf:label>
>>>> </xf:input>
>>>>
>>>> <xf:submit submission="getGridRef">
>>>> <xf:label>Get Ordnance Survey Grid
>>>> Reference</xf:label>
>>>> </xf:submit>
>>>>
>>>> <p>OS Grid Reference is: <xf:output
>>>> ref="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/ <https://www.gigenetcloud.com/>
>>>
>>> _______________________________________________
>>> Xsltforms-support mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>>> <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/ <https://www.gigenetcloud.com/>
>>
>> _______________________________________________
>> Xsltforms-support mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>> <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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support