Hi there, I experience an JavaScript error
„afterInsertionPoint has no properties” in the xforms.js This happens, when I try to insert into an element.
After the error occures, the Doesn’t return – I see the loading.gif
forever. Can anyone help me on this one? Thanks a lot :oliver This is my xform: <?xml version="1.0"
encoding="UTF-8"?> <html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsl:version="2.0"> <head> <title><xsl:value-of
select="doc('input:instance')"/></title> <xforms:model>
<xforms:instance
id="main" xmlns="">
<wiki-page>
<name>Test3</name>
<content>
<version
number="0" time=""/>
</content>
<comments>
<comment
time="" owner=""/>
</comments>
<attachments/>
</wiki-page>
</xforms:instance>
<xforms:instance
id="memory" xmlns="">
<memory>
<old-content>inhalt</old-content>
</memory>
</xforms:instance>
<xforms:submission
id="save" method="post" replace="instance" ref="instance('main')"
action="/wiki/save"/> </xforms:model> </head> <body> <xforms:repeat nodeset="instance('main')/content/version">
<p>ver: <xforms:output ref="." /> </p>
</xforms:repeat>
<!--p>ver:
<xforms:output ref="@number" /> at: <xforms:output
value="concat(day-from-dateTime(@time),'.',month-from-dateTime(@time),'.',year-from-dateTime(@time),'
',hours-from-dateTime(@time),':',minutes-from-dateTime(@time))"
/></p--> <xforms:trigger>
<xforms:label>save</xforms:label>
<xforms:action
ev:event="DOMActivate">
<xforms:insert
nodeset="instance('main')/content"
at="1" position="before"/>
<!--xforms:setvalue
ref="instance('main')/content/version[1]"
value="instance('memory')"/>
<xforms:setvalue ref="instance('main')/content/version[1]/@time"
value="current-dateTime()"/>
<xforms:setvalue ref="instance('main')/content/version[1]/@number"
value="count(instance('main')/content/version) - 1"/-->
<!--xforms:send
submission="save"/-->
<!--xforms:toggle
case="edit-off"/-->
</xforms:action> </xforms:trigger>
</body> </html> Oliver Sofwareentwicklung product + concept GmbH Monbijouplatz 5 10178 Berlin Fax: +49 30 / 6980 80 60 www.productandconcept.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
The problem does NOT
appear, when I remove the repeat, so there must be some connection… Oliver Softwareentwicklung product + concept
GmbH Von: Oliver Hi there, I experience an JavaScript error
„afterInsertionPoint has no properties” in the xforms.js This happens, when I try to insert into an element.
After the error occures, the Doesn’t return – I see the loading.gif
forever. Can anyone help me on this one? Thanks a lot :oliver This is my xform: <?xml version="1.0" encoding="UTF-8"?> <html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsl:version="2.0"> <head> <title><xsl:value-of
select="doc('input:instance')"/></title> <xforms:model>
<xforms:instance
id="main" xmlns="">
<wiki-page>
<name>Test3</name>
<content>
<version
number="0" time=""/>
</content>
<comments>
<comment
time="" owner=""/>
</comments>
<attachments/>
</wiki-page>
</xforms:instance>
<xforms:instance
id="memory" xmlns="">
<memory>
<old-content>inhalt</old-content>
</memory>
</xforms:instance>
<xforms:submission
id="save" method="post" replace="instance" ref="instance('main')"
action="/wiki/save"/> </xforms:model> </head> <body> <xforms:repeat nodeset="instance('main')/content/version">
<p>ver: <xforms:output ref="." /> </p>
</xforms:repeat>
<!--p>ver:
<xforms:output ref="@number" /> at: <xforms:output
value="concat(day-from-dateTime(@time),'.',month-from-dateTime(@time),'.',year-from-dateTime(@time),'
',hours-from-dateTime(@time),':',minutes-from-dateTime(@time))"
/></p--> <xforms:trigger>
<xforms:label>save</xforms:label>
<xforms:action
ev:event="DOMActivate">
<xforms:insert
nodeset="instance('main')/content"
at="1" position="before"/>
<!--xforms:setvalue
ref="instance('main')/content/version[1]"
value="instance('memory')"/>
<xforms:setvalue ref="instance('main')/content/version[1]/@time"
value="current-dateTime()"/>
<xforms:setvalue ref="instance('main')/content/version[1]/@number"
value="count(instance('main')/content/version) - 1"/-->
<!--xforms:send
submission="save"/-->
<!--xforms:toggle
case="edit-off"/-->
</xforms:action> </xforms:trigger>
</body> </html> Oliver Sofwareentwicklung product + concept GmbH Monbijouplatz 5 10178 Berlin Fax: +49 30 / 6980 80 60 www.productandconcept.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Oliver Charlet-2
Olivier,
I have been unable to reproduce the problem with the XHTML+XForms code in your email. I tried to run this in the XForms sandbox. Could this problem have been fixed since the version of PresentationServer you are using? Please let us know if you can reproduce this problem with the latest builds. Alex On 4/26/06, Oliver Charlet <[hidden email]> wrote: > > > > Hi there, > > > > I experience an JavaScript error „afterInsertionPoint has no properties" in > the xforms.js > > This happens, when I try to insert into an element. After the error occures, > the ajax request > > Doesn't return – I see the loading.gif forever. > > > > Can anyone help me on this one? > > Thanks a lot > > :oliver > > > > This is my xform: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <html xmlns="http://www.w3.org/1999/xhtml" > > xmlns:xforms="http://www.w3.org/2002/xforms" > > xmlns:ev="http://www.w3.org/2001/xml-events" > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xsl:version="2.0"> > > <head> > > <title><xsl:value-of select="doc('input:instance')"/></title> > > <xforms:model> > > <xforms:instance id="main" xmlns=""> > > <wiki-page> > > <name>Test3</name> > > <content> > > <version number="0" time=""/> > > </content> > > <comments> > > <comment time="" owner=""/> > > </comments> > > <attachments/> > > </wiki-page> > > </xforms:instance> > > <xforms:instance id="memory" xmlns=""> > > <memory> > > <old-content>inhalt</old-content> > > </memory> > > </xforms:instance> > > <xforms:submission id="save" method="post" replace="instance" > ref="instance('main')" action="/wiki/save"/> > > </xforms:model> > > </head> > > <body> > > > > > > <xforms:repeat > nodeset="instance('main')/content/version"> > > <p>ver: <xforms:output ref="." /> </p> > > </xforms:repeat> > > <!--p>ver: <xforms:output ref="@number" /> at: > <xforms:output > value="concat(day-from-dateTime(@time),'.',month-from-dateTime(@time),'.',year-from-dateTime(@time),' > ',hours-from-dateTime(@time),':',minutes-from-dateTime(@time))" > /></p--> > > > > <xforms:trigger> > > <xforms:label>save</xforms:label> > > > > <xforms:action ev:event="DOMActivate"> > > <xforms:insert nodeset="instance('main')/content" at="1" > position="before"/> > > <!--xforms:setvalue > ref="instance('main')/content/version[1]" > value="instance('memory')"/> > > <xforms:setvalue > ref="instance('main')/content/version[1]/@time" > value="current-dateTime()"/> > > <xforms:setvalue > ref="instance('main')/content/version[1]/@number" > value="count(instance('main')/content/version) - 1"/--> > > <!--xforms:send submission="save"/--> > > <!--xforms:toggle case="edit-off"/--> > > </xforms:action> > > </xforms:trigger> > > > > </body> > > </html> > > > > > > > > > > > > Oliver Charlet > > Sofwareentwicklung > > > > product + concept GmbH > > Monbijouplatz 5 > > 10178 Berlin > > > > Fax: +49 30 / 6980 80 60 > > [hidden email] > > www.productandconcept.com > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
thanks for taking a look at it. I just noticed, that I use 3.0.beta3.200509020235, which comes with the latest OPS studio update. I guess I should update to 3.0.1, right? Oliver Charlet Softwareentwicklung product + concept GmbH > -----Ursprüngliche Nachricht----- > Von: [hidden email] [mailto:[hidden email]] Im Auftrag von > Alessandro Vernet > Gesendet: Mittwoch, 3. Mai 2006 20:43 > An: [hidden email] > Betreff: Re: [ops-users] xforms:insert JS error > > Olivier, > > I have been unable to reproduce the problem with the XHTML+XForms code > in your email. I tried to run this in the XForms sandbox. Could this > problem have been fixed since the version of PresentationServer you > are using? Please let us know if you can reproduce this problem with > the latest builds. > > Alex > > On 4/26/06, Oliver Charlet <[hidden email]> wrote: > > > > > > > > Hi there, > > > > > > > > I experience an JavaScript error afterInsertionPoint has no properties" > in > > the xforms.js > > > > This happens, when I try to insert into an element. After the error > occures, > > the ajax request > > > > Doesn't return I see the loading.gif forever. > > > > > > > > Can anyone help me on this one? > > > > Thanks a lot > > > > :oliver > > > > > > > > This is my xform: > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <html xmlns="http://www.w3.org/1999/xhtml" > > > > xmlns:xforms="http://www.w3.org/2002/xforms" > > > > xmlns:ev="http://www.w3.org/2001/xml-events" > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > > xsl:version="2.0"> > > > > <head> > > > > <title><xsl:value-of select="doc('input:instance')"/></title> > > > > <xforms:model> > > > > <xforms:instance id="main" xmlns=""> > > > > <wiki-page> > > > > <name>Test3</name> > > > > <content> > > > > <version number="0" time=""/> > > > > </content> > > > > <comments> > > > > <comment time="" owner=""/> > > > > </comments> > > > > <attachments/> > > > > </wiki-page> > > > > </xforms:instance> > > > > <xforms:instance id="memory" xmlns=""> > > > > <memory> > > > > <old-content>inhalt</old-content> > > > > </memory> > > > > </xforms:instance> > > > > <xforms:submission id="save" method="post" > replace="instance" > > ref="instance('main')" action="/wiki/save"/> > > > > </xforms:model> > > > > </head> > > > > <body> > > > > > > > > > > > > <xforms:repeat > > nodeset="instance('main')/content/version"> > > > > <p>ver: <xforms:output ref="." /> </p> > > > > </xforms:repeat> > > > > <!--p>ver: <xforms:output ref="@number" /> at: > > <xforms:output > > value="concat(day-from-dateTime(@time),'.',month-from- > dateTime(@time),'.',year-from-dateTime(@time),' > > ',hours-from-dateTime(@time),':',minutes-from-dateTime(@time))" > > /></p--> > > > > > > > > <xforms:trigger> > > > > <xforms:label>save</xforms:label> > > > > > > > > <xforms:action ev:event="DOMActivate"> > > > > <xforms:insert nodeset="instance('main')/content" at="1" > > position="before"/> > > > > <!--xforms:setvalue > > ref="instance('main')/content/version[1]" > > value="instance('memory')"/> > > > > <xforms:setvalue > > ref="instance('main')/content/version[1]/@time" > > value="current-dateTime()"/> > > > > <xforms:setvalue > > ref="instance('main')/content/version[1]/@number" > > value="count(instance('main')/content/version) - 1"/--> > > > > <!--xforms:send submission="save"/--> > > > > <!--xforms:toggle case="edit-off"/--> > > > > </xforms:action> > > > > </xforms:trigger> > > > > > > > > </body> > > > > </html> > > > > > > > > > > > > > > > > > > > > > > > > Oliver Charlet > > > > Sofwareentwicklung > > > > > > > > product + concept GmbH > > > > Monbijouplatz 5 > > > > 10178 Berlin > > > > > > > > Fax: +49 30 / 6980 80 60 > > > > [hidden email] > > > > www.productandconcept.com > > > > > > > > -- > > You receive this message as a subscriber of the [hidden email] > > mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Olivier,
Yes, you should definitely upgrade. You can either go to the released 3.0.1 version of PresentationServer (1st link below) or to an "unstable build" which will contain all the changes made to the platform since the 3.0.1 release (2nd link below). 1) http://forge.objectweb.org/project/showfiles.php?group_id=168 2) http://forge.objectweb.org/nightlybuilds/ops/ops/ops.war Alex On 5/4/06, Oliver Charlet <[hidden email]> wrote: > Hi Alex, > > thanks for taking a look at it. > I just noticed, that I use 3.0.beta3.200509020235, which comes with the > latest OPS studio update. I guess I should update to 3.0.1, right? > > Oliver Charlet > Softwareentwicklung > > product + concept GmbH > > -----Ursprüngliche Nachricht----- > > Von: [hidden email] [mailto:[hidden email]] Im Auftrag von > > Alessandro Vernet > > Gesendet: Mittwoch, 3. Mai 2006 20:43 > > An: [hidden email] > > Betreff: Re: [ops-users] xforms:insert JS error > > > > Olivier, > > > > I have been unable to reproduce the problem with the XHTML+XForms code > > in your email. I tried to run this in the XForms sandbox. Could this > > problem have been fixed since the version of PresentationServer you > > are using? Please let us know if you can reproduce this problem with > > the latest builds. > > > > Alex > > > > On 4/26/06, Oliver Charlet <[hidden email]> wrote: > > > > > > > > > > > > Hi there, > > > > > > > > > > > > I experience an JavaScript error „afterInsertionPoint has no properties" > > in > > > the xforms.js > > > > > > This happens, when I try to insert into an element. After the error > > occures, > > > the ajax request > > > > > > Doesn't return – I see the loading.gif forever. > > > > > > > > > > > > Can anyone help me on this one? > > > > > > Thanks a lot > > > > > > :oliver > > > > > > > > > > > > This is my xform: > > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > <html xmlns="http://www.w3.org/1999/xhtml" > > > > > > xmlns:xforms="http://www.w3.org/2002/xforms" > > > > > > xmlns:ev="http://www.w3.org/2001/xml-events" > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > > > > xsl:version="2.0"> > > > > > > <head> > > > > > > <title><xsl:value-of select="doc('input:instance')"/></title> > > > > > > <xforms:model> > > > > > > <xforms:instance id="main" xmlns=""> > > > > > > <wiki-page> > > > > > > <name>Test3</name> > > > > > > <content> > > > > > > <version number="0" time=""/> > > > > > > </content> > > > > > > <comments> > > > > > > <comment time="" owner=""/> > > > > > > </comments> > > > > > > <attachments/> > > > > > > </wiki-page> > > > > > > </xforms:instance> > > > > > > <xforms:instance id="memory" xmlns=""> > > > > > > <memory> > > > > > > <old-content>inhalt</old-content> > > > > > > </memory> > > > > > > </xforms:instance> > > > > > > <xforms:submission id="save" method="post" > > replace="instance" > > > ref="instance('main')" action="/wiki/save"/> > > > > > > </xforms:model> > > > > > > </head> > > > > > > <body> > > > > > > > > > > > > > > > > > > <xforms:repeat > > > nodeset="instance('main')/content/version"> > > > > > > <p>ver: <xforms:output ref="." /> </p> > > > > > > </xforms:repeat> > > > > > > <!--p>ver: <xforms:output ref="@number" /> at: > > > <xforms:output > > > value="concat(day-from-dateTime(@time),'.',month-from- > > dateTime(@time),'.',year-from-dateTime(@time),' > > > ',hours-from-dateTime(@time),':',minutes-from-dateTime(@time))" > > > /></p--> > > > > > > > > > > > > <xforms:trigger> > > > > > > <xforms:label>save</xforms:label> > > > > > > > > > > > > <xforms:action ev:event="DOMActivate"> > > > > > > <xforms:insert nodeset="instance('main')/content" at="1" > > > position="before"/> > > > > > > <!--xforms:setvalue > > > ref="instance('main')/content/version[1]" > > > value="instance('memory')"/> > > > > > > <xforms:setvalue > > > ref="instance('main')/content/version[1]/@time" > > > value="current-dateTime()"/> > > > > > > <xforms:setvalue > > > ref="instance('main')/content/version[1]/@number" > > > value="count(instance('main')/content/version) - 1"/--> > > > > > > <!--xforms:send submission="save"/--> > > > > > > <!--xforms:toggle case="edit-off"/--> > > > > > > </xforms:action> > > > > > > </xforms:trigger> > > > > > > > > > > > > </body> > > > > > > </html> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Oliver Charlet > > > > > > Sofwareentwicklung > > > > > > > > > > > > product + concept GmbH > > > > > > Monbijouplatz 5 > > > > > > 10178 Berlin > > > > > > > > > > > > Fax: +49 30 / 6980 80 60 > > > > > > [hidden email] > > > > > > www.productandconcept.com > > > > > > > > > > > > -- > > > You receive this message as a subscriber of the [hidden email] > > > mailing list. > > > To unsubscribe: mailto:[hidden email] > > > For general help: mailto:[hidden email]?subject=help > > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > > > > > > > -- > > Blog (XML, Web apps, Open Source): > > http://www.orbeon.com/blog/ > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |