@a_5mith Thanks. Installed but still no drag and drop widgets. How can I help investigate this further? It it a CSS problem or javascript?
a question about async load widget html
-
hello there, I have tried to add a widget to my forum , but it load the widget html in a async way, so when I pick a dom in
$(document).ready(function(){ $('some dom').dosth()})
,I cant obtain the dom because the widget html dom haven't load yet.
how can i solve this, very grateful if any help , much thanks -
You can wait until document is loaded, so async in this situation is not suitable.
-
thanks , but how could I know when the document is loaded completely
-
You'll have to listen for
action:ajaxify.contentLoaded
event, it is attached towindow
. -
@julian thanks, but I have tried to listen to the hook, and the callback in the
action:ajaxify.contentLoaded
listener excute even ealier than the callback in$(document).ready
,why is that...