Announcement

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

#1 2008-10-15 00:28:23

dbo
New member
Registered: 2007-07-16
Posts: 2

Xinha + Ajax + innerHTML

I love Xinha but have hit a bit of a stumbling block. I'm building a sorta of CMS type application that I'd like to leverage Xinha in. I'm loading in the configuration files etc upon first page load, but after that everything is driven off of Ajax, thus there onload event is not being called after the initial load. In my application I make Ajax calls and dynamically generate the textareas via divs and innerHTML. I'm struggling to figure out how I can force Xinha to load when I'm creating the textareas on the fly. Please help!

Offline

#2 2008-10-15 00:32:01

dbo
New member
Registered: 2007-07-16
Posts: 2

Re: Xinha + Ajax + innerHTML

Really I think all I need to do is have a way that I invoke this manually Xinha.addOnloadHandler(xinha_init);

I tried just calling xinha_init(); but I get an error saying that it's not a function?

Offline

#3 2008-10-15 08:17:35

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Xinha + Ajax + innerHTML

I don't think Xinha would be very suited to your application.  Building up and tearing down xinha editors without page-reloads will be painful.

NB: You should use a javascript debugger to find why xinha_init is not defined.  This is beyond the scope of Xinha, it is a problem in your application logic - if you don't know Javascript, you are in for a steep learning curve.


James Sleeman

Offline

Board footer

Powered by FluxBB