[mochikit] Re: Newbie - DoSimpleXmlHttpRequest not returning!

2006-07-09 Thread forty

Thanks for that!


Kevin Damm wrote:

 One of the restrictions on XMLHttpRequests is that they can only work
 on the same domain as the script they originated from.  This is a
 javascript security feature to avoid malicious scripts found on
 another domain.  Unfortunately, this means that you can't even share
 script information between www.yourdomain.com and data.yourdomain.com,
 for example.

 In your case, the script running on mochikit.org cannot share
 information with yahoo.com.  You can only fire XHRs to the
 mochikit.org domain.

  - Kevin


 On 7/8/06, forty [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm a newbie at this. I have tried to use the doSimpleXMLHttpRequest
  through the Mochikit Interpreter but it doesn't seem to return
  anything.
 
  I am typing:
  doSimpleXMLHttpRequest(http://www.yahoo.com;)
  (and i've tried many different urls)
 
  and nothing happens. I've tried through both Internet Explorer and
  Opera. I've also looked at the HTTP requests being sent out through my
  computer using Fiddler and no calls are made.
 
  Can someone tell me what I'm doing wrong? I guess its extremely simple!
 
  Thanks
 
 
  
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~--~~~~--~~--~--~---



[mochikit] Re: Newbie - DoSimpleXmlHttpRequest not returning!

2006-07-08 Thread Kevin Damm

One of the restrictions on XMLHttpRequests is that they can only work
on the same domain as the script they originated from.  This is a
javascript security feature to avoid malicious scripts found on
another domain.  Unfortunately, this means that you can't even share
script information between www.yourdomain.com and data.yourdomain.com,
for example.

In your case, the script running on mochikit.org cannot share
information with yahoo.com.  You can only fire XHRs to the
mochikit.org domain.

 - Kevin


On 7/8/06, forty [EMAIL PROTECTED] wrote:

 Hi,

 I'm a newbie at this. I have tried to use the doSimpleXMLHttpRequest
 through the Mochikit Interpreter but it doesn't seem to return
 anything.

 I am typing:
 doSimpleXMLHttpRequest(http://www.yahoo.com;)
 (and i've tried many different urls)

 and nothing happens. I've tried through both Internet Explorer and
 Opera. I've also looked at the HTTP requests being sent out through my
 computer using Fiddler and no calls are made.

 Can someone tell me what I'm doing wrong? I guess its extremely simple!

 Thanks


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~--~~~~--~~--~--~---