rsjudge17 / ubiquity-xforms

Automatically exported from code.google.com/p/ubiquity-xforms
0 stars 0 forks source link

instance[@src] doesn't work for local files. #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download
http://ubiquity-xforms.googlecode.com/svn/trunk/_testsuite/xforms/html/test_inst
ance_src.html
and
http://ubiquity-xforms.googlecode.com/svn/trunk/_testsuite/xforms/html/test_inst
ance_src.xml
to the same directory.
2. Open test_instance_src.html in either Firefox 3 or IE6

What is the expected output? What do you see instead?

The input fields should bind to "Joe" and "Blow" respectively.  They do
not, instead, an error occurs ("undefined is not an object", when
attempting to load the xml that should be returned from the GET).

I have narrowed this down to the addition of support for the colour picker
control.  Prior to this, the function YAHOO.util.Connect.asyncRequest
(called in xlink.js) is defined in "connection-min.js".  Afterwards, it is
defined in "utilites.js".  

Removing "yui-input-color" from the list of required modules in
xforms-loader.js causes ubiquity to revert to the correct behaviour.

Original issue reported on code.google.com by paul.but...@gmail.com on 28 Aug 2008 at 10:22

GoogleCodeExporter commented 9 years ago
Taking a look at this right now (so, changing owner).

Original comment by rahul.ak...@gmail.com on 28 Aug 2008 at 5:30

GoogleCodeExporter commented 9 years ago
Thanks for the initial notes Paul. The utilities.js dependency seems 
unnecessary for 
the colorpicker (it existed in one the examples I looked at, which is probably 
how 
it found its way in xforms-loader.js in the first place). Removing the 
dependency 
doesn't affect the existing sample (_samples/input-color.html) so thats what 
I've 
done in r839.

I ran the instance/@src test in FF(2/3) and IE6. I can't get any of the 
functional 
tests going on IE7, but its seems quite likely thats a separate issue 
altogether.

Marking this one as fixed.

Original comment by rahul.ak...@gmail.com on 28 Aug 2008 at 6:05