6 messages in com.googlegroups.opensocial-orkutRe: Guys, i really need help. Pls answer
FromSent OnAttachments
wess...@googlemail.com16 Mar 2008 17:56 
Marc Wessely17 Mar 2008 10:38 
wess...@googlemail.com19 Mar 2008 03:18 
Jason19 Mar 2008 17:20 
Marc Wessely21 Mar 2008 13:18 
Jason24 Mar 2008 16:14 
Subject:Re: Guys, i really need help. Pls answer
From:Jason (apij@google.com)
Date:03/24/2008 04:14:47 PM
List:com.googlegroups.opensocial-orkut

Hi marc. If you could reproduce your issue with no more than two or three functions (preferably contained in the same file), this will help me in determining whether it's related to a bug in orkut's OpenSocial implementation.

gadgets.io.getProxyUrl() generates a special URL to a specified resource. When this URL is accessed, the given resource is cached using Google's infrastructure, and this cached version is returned on subsequent requests. If your application receives a lot of traffic, getProxyUrl() can result in a substantial savings in bandwidth on your end. Responses from gadgets.io.makeRequest() are also cached, so you don't need to use getProxyUrl() with makeRequest().

The gadgets.rpc library is used for executing remote procedure calls against certain services and, from what little I know about it, could conceivably be used to execute parent-level JavaScript from an embedded iframe, albeit slowly. Unfortunately, documentation is limited at this point, but the interface is available:

http://code.google.com/apis/opensocial/docs/0.7/reference/gadgets.rpc.html

Please let me know when you have a smaller sample that produces the originally reported error. Thanks marc.

On Mar 21, 1:19 pm, "Marc Wessely" <wess@googlemail.com> wrote:

Hi Jason,

Now i am getting another error instead of the one i have mentioned before:

[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame
::http://sandbox.orkut.com/js/gen/common016.js:: ta_qc :: line 28" data: no] var h=a[ta_za];for(var i=0;i<h[ta_];i++){var j=h[i];if(j[ta_x]=="hidden")f.push(...

its delivering the websites content but what does this error mean? somehow there is an error with the XMLHttpRequest Object!

I have read about the gadget.getProxyUrl function as parameter of makeRequest what is the difference of calling makeRequest with makeRequest("www.google.com",params) and
makeRequest(gadgets.getProcyUrl("www.google.com"),params) ?

Regarding your request:

What do you mean by a smaller sample? only the part of my app responsible for the browser stuff?

My Point is when i load the webcontent returned by makeRequest in a div-container inside the app, it manipulates the styles (e.g. bgcolor) of my app. So i wanted to load that inside an iframe to avoid that but then the relative links, contents of src-attributes and css-refernces are not resoloved properly.

Somehow the communication between the iframe in which the app is loaded and the gadget server allows this resolving mechanism. is there a way i can establish such a communication between the iframe i want to load the websites content in and the iframe the app is loaded in? i was reading about gadgets.rpc* - what does it do?

marc.

2008/3/20, Jason <apij@google.com>:

Hi marc. Yes, I see the error as well. Is there any way you can send me a smaller sample that triggers the same message? Does the error appear if you include only the iframe and the function executed when "Go" is clicked?

- Jason

On Mar 19, 3:18 am, "wess@googlemail.com" <wess@googlemail.com> wrote:

Hi Google Team,

Pls look into that problem mentioned below - i am stuck otherwise. My App url is: eiche.informatik.uni-rostock.de/clipping/share/ clipboard.xml

thanks

marc.

On 17 Mrz., 18:38, "Marc Wessely" <wess@googlemail.com> wrote:

Google Team - any ideas ??

Hi,

I am developing a webclipping application with opensocial. Means i want users clipping webcontent and sharing that articles or pictures with other members of orkut.

Thats why i need to implement a kind of webbrowser in which users can clip the content of websites. To avoid the "same origin policy" i am using gadgets.io.makeRequest function to retrieve the websites html which url the user entered in the adressbar of this browser.

When i am getting the content back , orkut throws an error:

ta_c.orkutXmlHttp has no properties [Break on this error] }}}function ta_ic(){ta_hc();if(typeof ta_fc! ="undefined"){return new ActiveXObje...

in common014.js - line 28!

But i am able to display the content in a div-container inside my app. But that causes problems as it destroys the design of the app. So i wanted to paste the html returned back into an iframe but then problems occured and websites are not getting displayed properly.

Another Problem is that i need to add EventListeners to this iframe to initiate the process of clipping. But when user clicks on links inside the iframe - access to the property addEventListener is denied.

I read something about the getProxyUrl function - will that help?