Hi All,
Problem solved. Thanks for your help.
My problem was because I have used, in the same rails application, an old
version and library of Ruote Fluo Editor and the new one (John sorry if
it's not the correct term)
In the old library the syntax to render ant get the result of the editor
was :
RuoteFluoEditor.render(editor, tree)
and
RuoteFluoEditor.asJson('editor')
The new (may be from 2 years ?) is now :
FluoEditor.renderFlow(editor, tree)
and
FluoEditor.asJson('editor')
Because I mixed (sorry for these) the two syntaxes, I generate a javascript
error when I cliked on a button of the editor : The callback associated
with the button, editor.onChange, containt the old syntaxe, and the
execution of javascript stop, but the application still continue to work,
with a html request.
Looking in the direction of a "Ajax" or "remote" was a complete mistake of
my part.
@ John : Thanks for your help. I use ruote-on-rails as a starting point,
especially the view/definitions/edit.haml file, and the <div> for fluo
editor was inside a "form_for" helper. It's why I put the editor in a
"form_for", but you right, the two are not related
For the log : JS vs AJAX : For rails, I suppose that Rails tels you, in the
log, with kind of language you use for the controller request (HTML, JS,
XMS, etc ...), not the technolgy (AJAX) ? But we have to ask rails
developper :-)
Sorry to formulate my problem in a wrong direction (AJAX vs syntaxe)
@ Don French : In my understanding Ruote-Fluo and Ruote-Fluo-Editor is
javascript library develloped by John to rendering graphically and to edit
a process definition in a friendly user interface. It's part of the
Ruote-Kit gem, and you have acces to these in the _ruote URL if you use
ruote-kit. You have also a demo with ruote-for-rails
@steve : Thanks for your help. The ruote fluo editor doen't generate a
form. Just button with javascript callback.
Best regards,
Laurent
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en