You are not logged in.
Hi there,
We're using Xinha within patForms. patForms dynamically generates HTML forms, e.g. to add comments to a web-blog. As we want to use inplace-editing, it happens that we diplay the same form over and over again (for different blog entries etc.). We simply use AJAX-Requests to receive the HTML form and display it.
The first instance of the form (including a Xinha editor) works fine. Then I cancel or submit the form and remove the whole HTML form.
Calling the editor again (e.g. to comment another article) causes to appear a similiar HTML form. This time, the Xinha looks inactive and it is not possible to wake it up the normal way. Maybe this is because we use the same Javascript variable to hold the Xinha editor instance.
Accidently I figured out, that calling sizeEditor() cleans things up and Xinha works as expected.
Maybe this is an issue with Xinha Core?
Does it work for you?
Besides Xinha and AJAX works great.
regards gERD
Offline
Xinha, in its trunk version, is not able to be generated and be degenerated at will. Try the branch i'm working on, i've started it to answer this precise issue. Unfortunatly it's not finished yet, especially the plugins, i've not looked at them yet since I dont use any of the Xinha plugins for my actual project.
Demo generate/degenerate
~$ svn co http://svn.xinha.python-hosting.com/branches/mokhet/ xinha
To generate, it is using the usual way, but before removing your form, you will have to dispose the editor.
editorReference.dispose();
Offline