Hello Eric,

I have successfully tested this with a resource in the same domain and 
with the latest build.

I recently had to rename the binding.evaluate() method and I would like 
to know which release you have been using.

BTW, I wonder if the cross-domain restriction occurred for you, the form 
being at

file:///home/vdv/projects/xsltforms-code/build

while the resource being at

http://localhost:8088/exist/apps/betterform/sandbox

This is a limitation for any Javascript implementation within a browser...

What do you think?

-Alain

Le 24/08/2013 11:44, Eric van der Vlist a écrit :
> Hi,
>
> The following form:
>
> <?xml version="1.0" encoding="utf-8"?>
> <?xml-stylesheet href="xsltforms.xsl" type="text/xsl"?>
> <?xsltforms-options debug="yes"?>
> <html xmlns="http://www.w3.org/1999/xhtml";
> xmlns:xf="http://www.w3.org/2002/xforms";
>      xmlns:ev="http://www.w3.org/2001/xml-events"; >
>      <head>
>          <title>Submission on xforms-ready</title>
>          <xf:model id="model">
>              <xf:instance id="instance">
>                  <data xmlns="">Whatever</data>
>              </xf:instance>
>
>              <xf:submission id="echo" ref="instance('instance')"
> method="POST"
>
> action="http://localhost:8088/exist/apps/betterform/sandbox/echo.xq";
> replace="all"/>
>
>              <xf:send ev:event="xforms-ready" submission="echo"/>
>
>          </xf:model>
>      </head>
>      <body> </body>
> </html>
>
> Where echo.xq is:
>
> xquery version "1.0";
>
> (: echo-post.xq: Return all data from an HTTP post to the caller. :)
>
> declare namespace exist = "http://exist.sourceforge.net/NS/exist";;
> declare namespace xmldb="http://exist-db.org/xquery/xmldb";;
> declare namespace request="http://exist-db.org/xquery/request";;
>
> declare option exist:serialize "method=xml media-type=text/xml
> indent=yes";
>
> let $post-data := request:get-data()
>
> return
> <post-data>
>     {$post-data}
> </post-data>
>
> Raises the following error:
>
> XSLTForms Exception
> --------------------------
>
> Error dispatching event 'xforms-submit' :
>
> @file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:4403
> XsltForms_submission.prototype.submit@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:4445
> @file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:10197
> XsltForms_xmlevents.dispatch@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:10106
> XsltForms_dispatch.prototype.run@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:5240
> XsltForms_abstractAction.prototype.exec_@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:5084
> XsltForms_abstractAction.prototype.execute@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:5069
> XsltForms_browser.run@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:2778
> @file:///home/vdv/projects/xsltforms-code/build/suite.xml:26
> @file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:9983
> XsltForms_xmlevents.dispatch@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:10104
> XsltForms_xmlevents.dispatchList@file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:10075
> @file:///home/vdv/projects/xsltforms-code/build/xsltforms.js:3282
>
>
> TypeError
>
> this.binding.evaluate(...) is undefined
>
>
> Thanks,
>
> Eric
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to