Announcement

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

#1 2011-08-18 09:52:33

Frenchie76
New member
Registered: 2011-08-18
Posts: 1

how to initialize Xinha within body tags ???

Hello !

In my page, I've got a DIV which isn't displayed (display:none) and is completly empty. That DIV is set at "display:block" when I call an Ajax function, and this function also puts some html inside that DIV (for information, i'm using that DIV as a fullpage "pop up" when it's called through AJAX because I don't wan't to use pop up windows with the window.open method)
So, my DIV is set at "display:block" when I call my Ajax function, and this function also puts dynamically a form (with a textarea) within the DIV. Of course, my page (its headers) hasn't been reloaded because of Ajax.
It means that Xinha didn't initialize my textarea since it didn't exist at the moment the page was loaded and before I call my Ajax function.
So how can I do to initialize Xinha for that textarea which "just appears" in my page ???

I hope my explanation is clear enough, sorry for my english ;-)

Thanks a lot for your help !

Offline

#2 2011-08-18 19:56:08

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

Re: how to initialize Xinha within body tags ???

Just initialize Xinha after you display the block.  How you go about doing that is entirely dependant on your own Javascript code.


James Sleeman

Offline

Board footer

Powered by FluxBB