Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Fiala on Mar 28, 2009 02:00
open dhtmlx forum
dhtmlxToolbar addInput with &

The addInput and setValue function seem to have a Problem with Text including an & (Ampersand).
In this case i get the 'Null or not an Object' Error .

Is there any workaround for this ?
Answer posted by Alex (support) on Mar 30, 2009 07:02

You can try to make a small modification in the dhtmlxtoolbar.js file, addInput method, line 356:

dhtmlXToolbarObject.prototype.addInput = function(id, pos, value, width) {
  // please, add this line line
value = String(value).replace(/\&/g, "&");

...