You are not logged in.
Pages: 1
Is there any way to end Xinha with a built in command, almost like the start method? basically I want to end xinha so that I can restart it later. Since I am operating with Ajax, if the xinha is started, and then the user hits 'cancel', the page is not refreshed. The user can then change his mind and re-go into the textarea section, however there is no page reloading. And Xinha won't start again because it has already started and has never been ended by a page refesh.
Any ideas on how I can end Xinha?
Last edited by tymoteusz3 (2007-04-26 15:56:53)
Offline
I'm running into this same problem in developing a CMS. I have an Ajax-driven site that has a list of pages. When you click on "edit" next to a page, it gives you an "edit page" form that's sent via Ajax, so the entire page isn't reloaded, just the content of my main div element. The first time you click on "edit page", it works great and loads Xinha perfectly. Then, if you click "Save" or "Cancel", it takes you pack to the list of pages (again using Ajax instead of doing a full page load). This time if you click "edit page" it shows the same form as before, but this time (and any other times after the very first attempt), it gives me a "disabled" Xinha editor with no content (even though the textarea element has content).
Any ideas? Is there a good way to do this? Obviously I'm not using the onload method of loading Xinha, because there really isn't a real page load after the very first time you login to the site. It seems like Xinha's getting created and setup properly the first time, but each subsequent time it's already initialized, therefore it doesn't load properly.
Thanks!
Jesse
Offline
not an ideal solution, but what I do in that case is when it needs to go I hide it or destroy the DOM object, and when it needs to be brought back I reshow/recreate DOM object and then use:
xinha_editors = [ 'content' ];
xinha_config = null;
xinha_init();
To reintialise it.
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Pages: 1