ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Call Javascript Function on Element Loaded In Popup and or PopUpForm
Title:
B
I
{code}
?
Hello everyone, Please I have a rare case where I want to cause an AjaxDropDown to load its contents only after a popup is displayed I know the behavior is supposed to be automatic but well in this case it does not and there are no errors in javascript console Please kindly help as this is urgent Regards
Save Changes
Cancel
seamfaces
asked at 19 Jun 2015
the popup/popupform is loaded when it is displayed, so the dropdown will also load on display, anyway, you can set .Load(false) and after call $('#dropdownid').data('api').load()
at 19 Jun 2015
Omu
The Problem is where do i put $('#dropdownid').data('api').load() Because $().ready({}) is not working for me
at 19 Jun 2015
seamfaces
in the content of the popup (popup view) put: <script>$(function(){ $('#dropdownid').data('api').load(); });</script> but this would be the same as not setting .Load(false) and not having the script
at 19 Jun 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK