Thank you for all of your hard work, kgena_ua. This component is one of my favorites! Also, I'm not sure where to post bug reports but I hope its alright to post the fix here. If there is no active internet connection and the biography is not cached, then a crash occurs. Here is a screenshot of the error:
The fix was to replace this line (around line 549, use control+f to search):
if (this.xmlhttp != null && this.func != null) {if (this.xmlhttp.readyState == 4) {if (this.xmlhttp.status == 200) this.func(); else {this.on_search_done_callback(artist, list, done, handles);}}}
with this line:
this.on_state_change = function() {
if (this.xmlhttp != null && this.func != null) {
if (this.xmlhttp.readyState == 4) {
if (this.xmlhttp.status == 200) {
this.func();
} else {
if (this.on_search_done_callback != null) {
this.on_search_done_callback(artist, list, done, handles);
}
}
}
}
}
Now, the null check prevents the script from crashing and instead displays placeholder text. Attached are images of each event. Also, GetColour() works on the current version of JScript Panel. That error only affects older versions.