Rainymountain
04-03-2017, 09:13 AM
Hello,
I'm working with this script: Ajax Tooltip http://www.javascriptkit.com/script/script2/ajaxtooltip.shtml .
Within the same domain, it works properly. But when I write a different domain URL as source, it doesn't, although I have granted CORS permissions on that other domain.
Example:
<a class="showTip" href="#INFO" title="ajax:../00/page1.htm">page 1</a> works,
but neither
<a class="showTip" href="#INFO" title="ajax:http://www.example.com/page2.htm">page 2</a>
nor
<a class="showTip" href="#INFO" title="ajax:www.example.com/page2.htm">page 2</a>
work.
What I am doing wrong?
I'm working with this script: Ajax Tooltip http://www.javascriptkit.com/script/script2/ajaxtooltip.shtml .
Within the same domain, it works properly. But when I write a different domain URL as source, it doesn't, although I have granted CORS permissions on that other domain.
Example:
<a class="showTip" href="#INFO" title="ajax:../00/page1.htm">page 1</a> works,
but neither
<a class="showTip" href="#INFO" title="ajax:http://www.example.com/page2.htm">page 2</a>
nor
<a class="showTip" href="#INFO" title="ajax:www.example.com/page2.htm">page 2</a>
work.
What I am doing wrong?