I created a PHP file, which give back an image location. for example: https://www.example.com/api/example.php Its give back this: https://www.example.com/image1.png
Its okey. But I need to read the example.php and GET the image location (so the https:// www dot example dot com/image1.png) and display on my site with Javascript.
var wheelImageName = "url/image1.png";
function begin()
{
surface = document.getElementById(canvasId);
if (surface.getContext)
{
wheel = new Image();
wheel.onload = initialDraw;
wheel.src = wheelImageName;
}
}
This is the code now, My question is, how to modify this, to read the target image url from the example.php.
Thanks!