3 messages in com.googlegroups.google-mashup-editorRe: Permission denied on accesing PHP...
FromSent OnAttachments
Rafa24 Nov 2007 12:40 
Jason27 Nov 2007 08:59 
Rafa01 Dec 2007 09:45 
Subject:Re: Permission denied on accesing PHP script
From:Jason (gmej@google.com)
Date:11/27/2007 08:59:11 AM
List:com.googlegroups.google-mashup-editor

Hi Rafa. For security reasons, most browsers prevent cross-domain requests -- that is, an application hosted on one domain cannot fetch data hosted on a different domain. In this case, because your PHP script does not reside on googlemashups.com, your mashup is not permitted to open the connection. This will become less of an issue when GME-created applications can be hosted on arbitrary domains, which is coming in the not-too-distant future.

You have several options In the meantime. If you control the script, you may try modifying it to return an RSS or Atom feed. In this way, you can use GME's JavaScript API to construct the URL and use is as the data source for a gm:list -- GME handles the fetching for you. Otherwise, you may be able to use tools like Yahoo! Pipes or Dapper to format the response as a GME-compatible feed as I've done with Jookebox.

http://jookebox.googlemashups.com

Please let me know if you have any more questions.

- Jason

On Nov 24, 12:40 pm, Rafa <rafa@gmail.com> wrote:

Hi, I need to execute a PHP script as part of a mashup, however it says "Permission denied" (status bar on IE6). The PHP script can be succesfully accessed from any external location.

The mashup can be found here:http://xmap2.googlemashups.com

And the javascript line (inside the mashup) that is causing the permission error is the following:

serverData.open('GET','http://www.it.uc3m.es/rsfuente/GIMI/ dnscheck.php?domain=' + inputId);

I would apprecite any help on this. Regards,