Its taken from here
After the upgrade there are not more .dtl files , they are now .tt. Ok I moved the script to AgentTicketPhone.tt.
Code: Select all
<script type="text/javascript">//<![CDATA[
$('#Dest').bind('change', function (Event) {
var MyVariable = $('#CustomerID').val();
$.ajax({
type: 'get' ,
dataType: 'html' ,
url: 'extdata.pl'+'?q='+ MyVariable ,
success: function(html){
$("#DynamicField_Test2")
.replaceWith('<select id="DynamicField_Test2" name="DynamicField_Test2" class="DynamicFieldText">' +
html +
'</select>');
}
});
});
//]]></script>
I get error 500. I tried to see where the error is with :
Code: Select all
print '<option selected value="">-</option>';
1;
Code: Select all
$CommonObject{LogObject} = Kernel::System::Log->new(
LogPrefix => 'ExtData',
%CommonObject,
);