Hi,
I have came up against some problem when trying to fetch remote
content using makeRequest() method.
My callback function from gadgets.io.makeRequest("...",callback)
invoked with following object as its parameter:
{ errors : "Error 404" }

Now, it is happened only for one specific page request, other page
request from the same server worked fine.
I investigated this in depth and found out some very very strange
thing:

All files that ends with html or htm that have curly brackets in src
attribute of element tags like <img> or <script> will not be returned
by makeRequest!

For example:
If you have some html file with an img tag that have src attribute
like this: <img src="{thumbnailUrl}">, then your page won't be
returned!
<img src="{test}"> and <script src="http://{testPage}";> fails too!

If you going to ask why should I use curly brackets in src attributes.
Well, it is not just because of src attribute itself, but because I am
using some JavaScript templates engine like JST or Opensocial
Templates.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to