W3C home > Mailing lists > Public > www-forms@w3.org > February 2006

Re: replace="instance"

From: Peter Nunn <peter.nunn@vistic.net>
Date: Sat, 11 Feb 2006 13:15:09 +1300
Message-ID: <43ED2C8D.6030804@vistic.net>
To: Nicolás Echániz <nico@rakar.com>
CC: www-forms@w3.org, dev-tech-xforms@lists.mozilla.org

Nicolás Echániz wrote:
>
> Hi,
>
> I'm trying to do the following:
>
> I have 2 select1 fields, one for country (pais), the other for city 
> (ciudad).
>
> When the document is loaded requested, I generate a list of countries 
> (in an instance), but not of cities.
>
> My idea is to use the xforms-value-changed event on the first select1 
> so that I can get the cities from a database lookup using the 
> submitted country ID.
>
> The example is quite simple and it's partially working (on 
> Mozilla+XForms).
>
> The form does get submitted when I select a country and the server app 
> returns the updated instance data. I've checked this with Allan 
> Beaufour's XForms Buddy.
>
> The problem is that although everything seems fine up to this point, 
> the cities select doesn't show the newly received options.
>
> Am I missing something?
>
This is a bug that is in the mozilla xforms processor where itemsets are 
not dynamically updated.  My Mozzie project 
http://www.sourceforge.net/projects/mozzie fixes this issue.  Eventually 
the code will hopefully appear back into the main truck of the mozilla 
project.
Received on Saturday, 11 February 2006 00:15:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT