By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

How can I allow people access to my datafeed with javascript

P: n/a
I get this error: Error: uncaught exception: Permission denied to call

I think I need to sign my script, but not sure if what I want to do
will even work.

So let me explain.

I have a datafeed on my site
for simplicity it is a php page with only <?PHP echo "Hello"; ?>

I have a .js file on that reads the php file.
var xmlHttp ("UniversalBrowserRead");
xmlHttp=new XMLHttpRequest();
xmlHttp.onreadystatechange = stateChanged;"Get", "")

function stateChanged()

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
document.getElementById("output").innerHTML=xmlHtt p.responseText

function GetXmlHttpObject(handler)
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
alert("This example doesn't work in Opera")
if (navigator.userAgent.indexOf("MSIE")>=0)
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
objXmlHttp=new ActiveXObject(strName)
return objXmlHttp
alert("Error. Scripting for ActiveX might be disabled")
if (navigator.userAgent.indexOf("Mozilla")>=0)
objXmlHttp=new XMLHttpRequest()
return objXmlHttp
I want other people to be able to just add a <script> to their site
that accesses my .js file and output the data to their site.

here is the sample of of the script:
<script src=""
<div id="output"></DIV>

Is this possible? To allow the public to access a js file on my server
to read my data and display on their site?

If I do need to sign the javescript, how do I do that?

Jun 16 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a

An example of what I want to do is similar to google adwords:

<script type="text/javascript"

Jun 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.