I search the web a response to my question but I don't find anything...
I want to create a dialog allowing users to choose file for a "gallery" folder (for inserting image or attachment to the page). I retrieve folder content using Ajax calls and JSON description.
This part works well, CKEditor.ajax retrieves the data
I retrieve an array containing filename, icons, etc...
For each file I want to create an new UI element (HTML) for displaying content...
I do the work in this order :
- - Create empty dialog
- onLoad : get ajax content
-onShow : add content to the dialog (for that moment, add json string returned by server in an HTML element)