Saving: This is just a demo...

June 28 2008

  • 2 replies.
  • This question is not yet resolved.
  • This question was started by Thomas Stahl.
  • Last post by Thomas Stahl.
Thomas Stahl
member
28 June, 15:30
I am new to Xopus. I try to evaluate it for some of our applications.

I downloaded Xopus, installed it on a local apache. The 3 examples work fine - with one exception: when I try to save the document (by clicking on the button), I get the "This is just a demo..." message.

I tried the following in xopus/config/config.js:

IO.setSaveXMLFunction(mySaveFunction);
function mySaveFunction (xmlURI, xmlDocument)
{
alert( "URI=" + xmlURI + "\nDOC=" + xmlDocument );
// HTTPTools.postXML("/myapp/save.aspx", xmlDocument, "UTF-8");
}

But nothing has changed, still I get "...just a demo...". What is missing? What did I misunderstand?

Sjoerd
Xopus Team
28 June, 17:39
Those examples all have their own javascript file, overriding your save function.
Thomas Stahl
member
28 June, 21:43
Thank you very much for your quick and competent help! I never got a "forum solution" so quickly. Great!

I completely oversaw the line

<x:javascript src="js/save.js"/>

in the start.html file.

Maybe you should mention that on your how-to pages.


React

HTML will be shown as HTML code.
Linebreaks and Links starting with http:// are automatically resolved