jfweemaes / ubiquity-xforms

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

initial xform-ready and bind events don't fire #448

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. xform with bind tags and/or an xforms-ready action
2. local copy of ubiquity-xforms library
3. a submit button element 

I am using IE 7  on Windows XP sp3

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

I expect to see the results of my bind tags
or xform-ready action  soon after all of the library 
loading messages finish.

Instead, after the library loading messages nothing happens.
If I press the submit button the submit happens correctly.
I then return using the
IE Back button I once again see the library loading messages
but this time the bind and xforms-ready actions
also occur.

If I use the IE Reload button the xforms-ready and bind
have no effect, as on the initial page load.

Please use labels to indicate the version, operating system and browser
that you are using. Also, add some text below to provide additional
information.

Here is a sample form:

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xf="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events">
  <head>
 <head>
    <title>XForms xforms-ready event and bind </title>
    <script src="ubiquity-library/src/ubiquity-loader.js" type="t
ext/javascript">/**/</script>
    <style type="text/css">
      xf\:trigger xf\:label {
        background-color: blue;
      }
    </style>
  </head>
  <body>
<xf:model>
      <xf:instance>
        <Data xmlns="">
          <currentLot/>
          <currentItem/>
          <Lot code="">
            <Item code=""/>
            <Item code=""/>
          </Lot>
          <Lot code="">
            <Item code=""/>
            <Item code=""/>
          </Lot>
          <Lot code="">
            <Item code=""/>
            <Item code=""/>
          </Lot>
        </Data>
      </xf:instance>

      <xf:bind nodeset="/Data/currentLot" calculate="string('OK!')"/>
      <xf:bind nodeset="/Data/Lot/@code" calculate="position()"/>
      <xf:bind nodeset="Lot[@code]/Item/@code" calculate="position()"/>

  <xf:action ev:event="xforms-ready">
<xf:setvalue ref="/Data/currentLot" value="'Hello!'"></xf:setvalue>
  </xf:action>

      <xf:submission action="http://xformstest.org/cgi-bin/showinstance.sh"
method="post"
        id="sendStuff" includenamespaceprefixes=""/>
</xf:model>
 <hr />
<xf:output
ref="/Data/currentLot"><xf:label>currentLot</xf:label></xf:output>
<hr />
<xf:submit submission="sendStuff"><xf:label>Echo</xf:label></xf:submit>
<hr />
done
  </body>
</html> 

Original issue reported on code.google.com by ch...@yipyap.com on 7 May 2009 at 8:59