Hello guys,
I have attached 2 directories, ex1 and ex2.It supposed to be 2 domains
www.domain1.com and
Welcome to DOMAIN2.COM. In one of the domain it is running the index.html from ex1, and it's javascript code. It is simeple html, few links, click to one of the link, it will call a remote link with ajax, and after the ajax is complete it will show a message.
In the same page, i will insert a image, with this link
http://localhost/acum2/ex/2/image.php, this image it is supposed to be loaded from the other domain,
Welcome to DOMAIN2.COM.
Now here is what i want. When the image is loaded, i want through some method, php, javascript, cgi perl, or whatever script, to run a javascript function, or to click one of the links in the page, to act like a virtual click. In simple words, when the image it is loaded to click on of the links, or to run the javascript function that i will be needing. I have a couple of ideeas about how to do this, but i didn't succeded with it, so i want your advices. If you know how to do something like this, in perl cgi or any method you may know that is posible to do this, please bid and post me a message to talk more about this script.I'm sure it is very easy, but i don't know how to do at this momment.
Once again, WE DO NOT MODIFY ANYTHING IN THE DIR 1.
Thanks for reading this, and good luck.