Dear support,
$$(“scheduler”).load("function/get_activity_list.php?cna=samli,“json”);
Can I alert some message if there is any errors(such as timeout) in loading JSON from the php. Could someone please advise?
reference link: http://202.75.84.150/mobile/showScheduler.php
Maria
May 14, 2015, 8:45am
2
Hello,
Please read the article about management of loading errors
For example you can use set the 3rd parameter in load method:
$$("scheduler").load("function/get_activity_list.php?cna=samli","json",{
success: function(){...},
error:function(){...}
});
Yes, I tried it.
But I found the success function called only in the first load.
If I select another month, suppose get_activity_list.php and success function is called. However success message is not showing up.
Please advise
reference link: http://202.75.84.150/mobile/showScheduler.php
Maria
May 20, 2015, 10:18am
4
It’s correct because load() method with your handler called only once.
You can set onLoadError event handler for the scheduler in case of dynamic loading:
$$("scheduler").attachEvent("onLoadError",function(){
...
});