Hello guys ,
Stuck at a problem for two days . The problem is that i am trying to hit a webservice from localhost .
Just for testing purposes i wrote this code and it ran the way it was supposed to :
As you can see , everything is static and it works like a charm because i see something like this on the browser :
Now i need to extract the img element from it but i have no idea in how to go about it .
I tried using jquery like this :
Now i only see the alert("hello") as a pop up but nothing inside the function call and on my browser i see this
"Origin http://server_name is not allowed by Access-Control-Allow-Origin.