no source for mxSelect

1 view
Skip to first unread message

Terry B

unread,
Mar 24, 2008, 3:04:49 PM3/24/08
to mxAjax
In mxSelect.cfm

change from
setListeners: function() {
Event.observe($(this.options.source),
this.options.eventType,
this.execute.bindAsEventListener(this),
false);
eval("$(this.options.source).on"+this.options.eventType+" =
function(){return false;};");
},

to

setListeners: function() {
if($(this.options.source))
{
Event.observe($(this.options.source),
this.options.eventType,
this.execute.bindAsEventListener(this),
false);
eval("$(this.options.source).on"+this.options.eventType+" =
function(){return false;};");
}
},



I can now not have a source and just populate a select box without
having to worry about another field at all.
Reply all
Reply to author
Forward
0 new messages