|
Posted by Neredbojias on 04/17/06 12:55
To further the education of mankind, hemant.singh@gmail.com vouchsafed:
> Hello all,
> I am developing a solution(JS/Ajax+ruby) which will be hosted on say
> domain x.com
>
> now my client can be comg from any domain, all they need to do is
>
> <!-- Magic script starts -->
> <div id="mymagic">
> <script src="http://x.com/javascripts/client.js" />
> <script type='text/javascript'>
> showThemReality();
> </script>
> </div>
> <!-- Magic script ends -->
>
> Now the client.js loaded from x.com is making a ajax connection to
> x.com, is this a issue? If not than how to access x.com server scripts
> from client.js? I am try'g and it is giving me permission denied
> exception.
You don't have your first script element properly closed.
(Group deja vu?)
As for the source of javascript files, one can normally call a .js file
from any domain.
--
Neredbojias
Infinity can have limits.
Navigation:
[Reply to this message]
|