I've function for imageResizing($p, $p2); which I use like this:
<image src="<?php echo imageResizing($url, $size); ?>"></image>
I'm using jquery ajax to fetch the data from objects and display them:
$.ajax({
            url: "..",
            type: "POST",
            async: true,
            cache: false,
            data: ({dataList: dataList}),
            dataType: "json",
            success: function (list) {
                jQuery.each(list, function(i, data) {
                    var pictureURL = data.url; // Get url like http://google.com
                    var htmlContainer = '<p> data.name</p><h1> data.lastname</h1><img src="<?php echo imageResizing(pictureURL, 300);?>"></img>';
                    $('#..').append(htmlContainer);
                });
            }
        });
I get correct data.name/lastname values, but when I try to use my function for picture resizing I get stuck! I understand, that PHP and JS doesn't run on the same time, also client-side/server-side fact. How can I achieve this?
