One thing I don't really understand yet: when I change the template to submit to some other page, I see in my Apache logs that information is indeed posted and Apache returned 200 OK.
However, my browser doesn't redirect to that page and shows the 'This is a template' popup. What could might wrong?
The problem is browser security. You can try write in xforms file: <div id="console"/>. This activate the log console, so you can see the error.
Browser security don't allow do a request if page host and request destination host are different. You are right but currently the only way is that page and destination are in the same host.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ah, clear. The console is really useful, i think it deseres a mention in the docs :).
In case of a `replace="all"'-submission, it might be interesting to see how Orbeon implements `optimize-post-all' (http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-submission).
It sounds like it might be a way to work around this (haven't really looked into it though).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I built the template and uploaded the result:
http://www.bzzt.net/~arnouten/ajaxforms-test/
However, when I visit the page, it gives the error "Schema http://www.w3.org/1999/XMLSchema not defined".
How can I fix that?
Thanks for tell me. It's a bug.
You only must change http://www.w3.org/1999/XMLSchema by http://www.w3.org/2001/XMLSchema in xforms file or
download the new release of template.
I am very grateful if you could send me your opinions or suggestions.
Worked - this is pretty cool stuff.
One thing I don't really understand yet: when I change the template to submit to some other page, I see in my Apache logs that information is indeed posted and Apache returned 200 OK.
However, my browser doesn't redirect to that page and shows the 'This is a template' popup. What could might wrong?
It might be nice to change the example so that it redirects to something http://xformstest.org/cgi-bin/echo.sh so people can see the result.
The problem is browser security. You can try write in xforms file: <div id="console"/>. This activate the log console, so you can see the error.
Browser security don't allow do a request if page host and request destination host are different. You are right but currently the only way is that page and destination are in the same host.
Ah, clear. The console is really useful, i think it deseres a mention in the docs :).
In case of a `replace="all"'-submission, it might be interesting to see how Orbeon implements `optimize-post-all' (http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-submission).
It sounds like it might be a way to work around this (haven't really looked into it though).
You are right, I will include console in docs.
'optimeze-post-all' might be interesting but I can't implement it because AJAXForms uses XMLHttpRequest.