after appending html, stuff doesnt work
Hi,
I'm working on a list with doctypes and fases. There are
n types and
n fases. The fases can be ordered by dragging them.
example:
[btn Append new type]
- a
- a.1
- a.2
- a.3
[btn Append new fase]
- b
- b.1
- b.2
- b.3
[btn Append new fase]
I have a fancybox (lightbox) to append new doctypes and fases, but after appending either one, the functions dont work anymore (dragging and opening the lightbox of the appended doctype.
The HTML gets appended without a prob. But it seems that the initiation of the draggable <ul> and the lightbox links doenst work.
I tried adding Javascript to re-initialize the functions, but this doenst work.
How can i fix the prob that appended links with the right class show the lightbox when they are clicked, and how do i make an <ul> draggble after one is added?
p.s.
function appendFase(docTypeId,appendThis){
$(docTypeId).append(appendThis);
$(docTypeId).sortable('refresh');
}
gives error's...