[solved] problem with jquery colorbox

i tried to implemented colorbox in my application

and i need to load js file when colorbox load

i had read about registerScriptFile position from this

because when colorbox load, doesn’t have head tag,

then i put position in POS_BEGIN

it works when i load colorbox page in the first time.

but when i closed the colorbox page,

then i opened the same colorbox page for the second time,

the js file cannot load.

when colorbox page loaded, i had tried using load, end & ready,

but still cannot load the js file.

is there a way to load js file, when colorbox page loaded?


has been solved

the lesson that i get is because everytime i load colorbox page, it load js file too.

it can’t load twice.

don’t work.