Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-08-30 08:14:17

truss
New member
Registered: 2006-08-30
Posts: 1

Trouble on double loading on AJAX/Web2.0 site - requires sizeEditor()

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

pat - PHP Application Tools

Offline

#2 2006-08-30 13:23:34

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: Trouble on double loading on AJAX/Web2.0 site - requires sizeEditor()

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

Board footer

Powered by FluxBB