I'm focusing on joomla. I personally use the json code, i.e.

<script language="JavaScript1.2">
    jQuery(function() {
        jQuery('.text_area').change(function() {
            var traID = jQuery(this).val();
            jQuery.getJSON('?option=com_propertyform&view=ajaxdata&format=raw', {
                traid: traID
            }, function(response) {
                if (response) {

but there's an answer error "500 Internal Server Error 71 ms". I produce a view that's ajaxdata. So anybody assist me to ways to get response from that page.

your url isn't correct.

In case your file is exterior, alter the getJSON to

jQuery.getJSON('index.php?option=com_propertyform&view=ajaxdata&format=raw', {...});

However, in case your JavaScript is produced by PHP, get it done such as this

 jQuery.getJSON('<?php echo JRoute::_('index.php?option=com_propertyform&view=ajaxdata&format=raw'); ?>', {...});