Menu

Schema not defined

2006-08-07
2013-03-22
  • Arnout Engelen

    Arnout Engelen - 2006-08-07

    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?

     
    • AJAXForms

      AJAXForms - 2006-08-08

      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.

       
    • Arnout Engelen

      Arnout Engelen - 2006-08-08

      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.

       
    • AJAXForms

      AJAXForms - 2006-08-08

      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.

       
    • Arnout Engelen

      Arnout Engelen - 2006-08-09

      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).

       
    • AJAXForms

      AJAXForms - 2006-08-10

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.