Thanx for reply Mr. Jason,
In my apps there is one strange thing is happens when i run that apps
in orkut, it gave me undefined result,
when i open firebug it gave me error
In Param Tabs errors:---
authz
bypassSpecCache
container orkut-sandbox
contentType TEXT
gadget
http://hosting.gmodules.com/ig/gadgets/file/blah/blah.xml
getSummaries false
headers
httpMethod GET
numEntries 3
postData
refresh 3600
signOwner true
signViewer true
st
url
http://mycompany/FunnyMoneyGifts/GiftItems.action
In Headers Tabs errors:----
Response Headers
Cache-Control no-cache, no-store, max-age=0, must-
revalidate
Pragma no-cache
Expires Fri, 01 Jan 1990 00:00:00 GMT
Content-Type text/html; charset=UTF-8
Content-Encoding gzip
Date Fri, 26 Sep 2008 10:43:47 GMT
X-Content-Type-Options nosniff
Content-Length 117
Server GFE/1.3
Request Headers
Host
j39png9jh9q1r97d6s9bce8s9suv4dog.sandbox.orkut.gmodules.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US;
rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2
Accept text/html,application/xhtml
+xml,application/
xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer gave me some data which open my apps
Even this project working perfectly till yesterday now it gave me
error.
Whereas the same code implemented on Hi5 and it perfectly working.
I have also check my response page which is perfectly working in my
server and also check through the
http://validator.w3.org site to find
out that there is any html error, but it gave me no error and no
warning.
With that i also paste a few code of my xml file may be it helps you
to find out the problem.......
function makeRequest(url) // passing the URL
{
var params = {};
alert(url); // it gave me proper result
params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.GET;
gadgets.io.makeRequest(url, responseData, params);
}
function responseData(obj)
{
alert(obj.text); // it gaves me undefined.
document.getElementById("funnyImageDisplay").innerHTML = obj.text;
}
with that this is the message sending code..................
function sendMessage()
{
thumb = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
var html = "<img src='" + thumb + "'/>"+" send a Funny Gifts "+"<img
src='" + funnyImagePath + "'/>";
alert("The HTML value is :-- \n"+html); \\ it show me user and
funnyimage path properly...
var params = [];
var titleName = viewer.getDisplayName()+" Send Message to you through
Funny Money Gift Application ..!";
params[opensocial.Message.Field.TITLE]=titleName; //
titlename put in Title
var body="This is Funny Images for just for kidding.. Don't Mind it.";
var textarea=document.getElementById("messageText").value;
alert(textarea); // gave me same message...
// here we add the user image and funnyimagepath url in body
body += "<img src='" + thumb + "'/>"+" send a Funny Gifts "+"<img
src='" + funnyImagePath + "'/>";
// here thumb is user image which is shown in the message dialog box..
// funnyImagePath is the path of funny image which located in our
server..
body += "with Message is "+textarea;
var message = opensocial.newMessage(body, params);
var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS;
alert("The recipient are "+recipient);
opensocial.requestSendMessage(recipient, message);
}
On Sep 26, 4:12 pm, hem <
hemantfu...@gmail.com> wrote:
> Thanx for reply Mr. Jason,
>
> In my apps there is one strange thing is happens when i run that apps
> in orkut, it gave me undefined result,
> when i open firebug it gave me error
>
> In Param Tabs errors:---
>
> authz
> bypassSpecCache
> container orkut-sandbox
> contentType TEXT
> gadget
http://hosting.gmodules.com/ig/gadgets/file/blah/blah.xml
> getSummaries false
> headers
> httpMethod GET
> numEntries 3
> postData
> refresh 3600
> signOwner true
> signViewer true
> st
> url
http://mycompany/FunnyMoneyGifts/GiftItems.action
>
> In Headers Tabs errors:----
>
> Response Headers
>
> Cache-Control no-cache, no-store, max-age=0, must-
> revalidate
> Pragma no-cache
> Expires Fri, 01 Jan 1990 00:00:00 GMT
> Content-Type text/html; charset=UTF-8
> Content-Encoding gzip
> Date Fri, 26 Sep 2008 10:43:47 GMT
> X-Content-Type-Options nosniff
> Content-Length 117
> Server GFE/1.3
>
> Request Headers
>
> Host
>
j39png9jh9q1r97d6s9bce8s9suv4dog.sandbox.orkut.gmodules.com
> User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2
> Accept text/html,application/xhtml+xml,application/
> xml;q=0.9,*/*;q=0.8
> Accept-Language en-us,en;q=0.5
> Accept-Encoding gzip,deflate
> Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive 300
> Connection keep-alive
> Refererhttp://
j39png9jh9q1r97d6s9bce8s9suv4dog.sandbox.orkut.gmodules.com/ga...
>
> Even this project working perfectly till yesterday now it gave me
> error.
> Whereas the same code implemented on Hi5 and it perfectly working.
>
> I have also check my response page which is perfectly working in my
> server and also check through thehttp://validator.w3.orgsite to find
> out that there is any html error, but it gave me no error and no
> warning.
>
> With that i also paste a few code of my xml file may be it helps you
> to find out the problem.......
>
> function makeRequest(url) // passing the URL
> {
> var params = {};
> alert(url); // it gave me proper result
> params[gadgets.io.RequestParameters.METHOD] =
> gadgets.io.MethodType.GET;
> gadgets.io.makeRequest(url, responseData, params);
>
> }
>
> function responseData(obj)
> {
> alert(obj.text); // it gaves me undefined.
> document.getElementById("funnyImageDisplay").innerHTML = obj.text;
>
> }
>
> with that this is the message sending code..................
> function sendMessage()
> {
> thumb = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
> var html = "<img src='" + thumb + "'/>"+" send a Funny Gifts "+"<img
> src='" + funnyImagePath + "'/>";
>
> alert("The HTML value is :-- \n"+html); \\ it show me user and
> funnyimage path properly...
>
> var params = [];
> var titleName = viewer.getDisplayName()+" Send Message to you through
> Funny Money Gift Application ..!";
>
> params[opensocial.Message.Field.TITLE]=titleName; //
> titlename put in Title
> var body="This is Funny Images for just for kidding.. Don't Mind it.";
>
> var textarea=document.getElementById("messageText").value;
> alert(textarea); // gave me same message...
>
> // here we add the user image and funnyimagepath url in body
> body += "<img src='" + thumb + "'/>"+" send a Funny Gifts "+"<img
> src='" + funnyImagePath + "'/>";
>
> // here thumb is user image which is shown in the message dialog box..
> // funnyImagePath is the path of funny image which located in our
> server..
>
> body += "with Message is "+textarea;
>
> var message = opensocial.newMessage(body, params);
>
> var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS;
> alert("The recipient are "+recipient);
> opensocial.requestSendMessage(recipient, message);