Trying to run the 'XForms/Suggesting Items' example from WikiBooks

4 views
Skip to first unread message

Tom

unread,
Sep 3, 2009, 10:00:38 AM9/3/09
to Ubiquity XForms Developers
Hi,
I've been trying to run the XForms/Suggesting Items example from the
wiki books XForm examples ( http://en.wikibooks.org/wiki/XForms/Suggesting_Items
), but have failed to get it working with Ubiquity. Briefly, the
example gets a list of suggestions from a server, updated as the user
types in an input field.

The form loads and appears to display correctly, and makes requests
for suggestions as the input field changes (visible in the webserver
log), but the 'Suggestions' box never updates.

My setup is as follows:
I'm using a local copy of Ubiquity, as I had problems directly
accessing the hosted copy on googlecode. Firefox reported permissions
issues:

Security Error: Content at http://localhost:8080/xforms/wkbksuggest.xhtml
may not load data from http://ubiquity-xforms.googlecode.com/svn/tags/0.7.0/src/behaviours/decorator.xml#decorator.

and also had problems loading the style sheets due to incorrect MIME
type, e.g.

Error: The stylesheet http://ubiquity-xforms.googlecode.com/svn/tags/0.7.0/src/assets/style/alert.css
was not loaded because its MIME type, "text/plain", is not "text/css".
Source File: http://localhost:8080/xforms/wkbksuggest.xhtml
Line: 0

These problems were resolved by using a local copy of Ubiquity, which
seems to be working as all the samples are functional.

The copy of the wiki-books example that I'm testing with is as posted
on the wiki page (http://en.wikibooks.org/wiki/XForms/
Suggesting_Items#Version_with_no_logging) except that I've moved
xf:model from the document head to the body; added a link to the local
Ubiquity js loader and changed the link for getting suggestions to a
local script that echos the original (to circumvent firefox issues
with cross-site scripting).

I'm new to XForms, so it's quite probable that I'm making a silly
mistake somewhere, but any pointers to where I'm going wrong would be
much appreciated.

regards,

Tom
Reply all
Reply to author
Forward
0 new messages