Skip to Content
0
Former Member
Jan 10, 2008 at 04:00 PM

Access denied: HTTP - Host Request with Widget Foundation + Yahoo

47 Views

Hi,

I have a problem with the new Yahoo widget engine's (4.5) suggested structure, when trying to execute an RFC request.

An older version of my .kon file has a classic structure, and it works fine, I write the script into the .kon file, it looks like this:

-


<action trigger = "onLoad">

<![CDATA[

// Standard SAP Widget Foundation Libraries

include("js/utils/Common.js");

include("js/utils/PlatformUtil.js");

include("js/utils/Timer.js");

include("js/utils/DataLoader.js");

include("js/utils/RFCRequest.js");

request.execute(function(response) ...

...

]]>

</action>

-


When I try to use the new structure (the .kon file contains only the source of the script, no CDATA, just 'src = "Scripts/Main.js"' ), and execute the request from the source JavaScript file, then I get this error:

utils.DataLoader]> Exception was catched: XMLHttpRequest.send(): Access denied: HTTP - Host Request.

Saw anybody this problem already?

Thanks,

Gyuri