People,
I've found the problem... there was an "," after an element in the
makePostRequest...
So, if you have some IE related problem, review EVERY line on your code...
and use a great Js debuuger!!
Sorry by the post....
Luciano
On Thu, May 15, 2008 at 10:39 AM, Luciano Ricardi <[EMAIL PROTECTED]> wrote:
> No...
>
> It's related to some Javascript calls... This calls work fine on Firefox...
> some calls works on IE6 and a lot not works on IE7... For example... A call
> to a javascript function that only detect if the VIEWER is the owner and
> then make a request to our server and apply the custom layout to the
> gadget...
>
> function DefOwner() {
> var req2 = opensocial.newDataRequest();
> req2.add(req2.newFetchPersonRequest('VIEWER'), 'viewer');
> req2.send(f_is_owner);
> }
>
> function f_is_owner(data) {
> var viewer2 = data.get("viewer").getData();
> if(viewer2.isOwner()) {
> url = "http://200.200.200.200/canvas_owner.php";
> } else {
> url = "http://200.200.200.200/canvas_viewer.php";
> }
>
> function makeRequest() {
> var params = {};
> params[gadgets.io.RequestParameters.AUTHORIZATION] =
> gadgets.io.AuthorizationType.SIGNED;
> params[gadgets.io.RequestParameters.CONTENT_TYPE] =
> gadgets.io.ContentType.TEXT;
> makeCachedRequest(url, response, params, 10);
> };
>
> function response(obj) {
> var str = obj.text;
> var html = str;
> document.getElementById('main').innerHTML = html;
> };
>
> function makeCachedRequest(url, callback, params, refreshInterval) {
> var ts = new Date().getTime();
> var sep = "?";
> if (refreshInterval && refreshInterval > 0) {
> ts = Math.floor(ts / (refreshInterval * 1000));
> }
> if (url.indexOf("?") > -1) {
> sep = "&";
> }
> url = [ url, sep, "nocache=", ts ].join("");
> gadgets.io.makeRequest(url, response, params);
> };
>
> makeRequest();
> };
>
>
> When calling this function using "onClick" event handler on a link for
> example.. or even calling through an href="javascript:DefOwner();" IE6 and
> IE7 show errors and don't renderize the gadget properly...
>
>
> On Thu, May 15, 2008 at 9:38 AM, justin kruger <[EMAIL PROTECTED]>
> wrote:
>
>>
>> is it related to doc type?
>>
>> On Thu, May 15, 2008 at 7:36 AM, Luciano Ricardi <[EMAIL PROTECTED]>
>> wrote:
>> > Hi all,
>> >
>> > We are developing some complex gadgets that interacts with our external
>> > servers and, we are having a lot of problems when using IE6 and IE7. On
>> > Firefox, for example, that works fine.
>> >
>> > The errors are on javascript generated by OpenSocial Container, and
>> there
>> > are so many...
>> >
>> > Is someone experiencing the same problem?
>> >
>> > Thanks,
>> >
>> > Luciano
>> >
>> > >
>> >
>>
>>
>>
>> --
>> --
>> Justin Kruger
>> http://jDavid.net
>> [EMAIL PROTECTED]
>>
>> "If you are successful, it is because somewhere, sometime, someone
>> gave you a life or an idea that started you in the right direction.
>> Remember also that you are indebted to life until you help some less
>> fortunate person, just as you were helped." --Melinda Gates
>>
>> >>
>>
>
>
> --
> Luciano
--
Luciano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---