Hi there,
I'm having several problems with the auto adjust height. Could you
give me a help?

My application is not using setInterval nor setTimeout and it is
working just fine in IE 6, Chrome, Opera and Safari with
gadgets.window.adjustHeight();
in IE 7 it does not work every time.
But in FF2 and FF3 it never works.

I'm getting this error mensage in fireBug when using FF3:

[Exception... "'Error: Unknown RPC service: resize_iframe' when
calling method: [nsIDOMEventListener::handleEvent]" nsresult:
"0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:

"<unknown>" data: no]
F()content-...t&debug=0 (linha 556)
? in content-rewrite:views:dynamic-height.js?
v=ba5eca2daf14ce8bb94930fd3f802f&container=orkut&[EMAIL 
PROTECTED]()content-...t&debug=0
(linha 585)
? in [EMAIL PROTECTED]()opensoci...-0.7.3.js (linha 120)
? in content-rewrite:views:dynamic-height.js?
v=ba5eca2daf14ce8bb94930fd3f802f&container=orkut&[EMAIL 
PROTECTED]()content-...t&debug=0
(linha 174)
? in

ifr?url=http%3A%2F%2Fcorp.dito.com.br%2Forkut_height.xml&parent=http://
prod.sandbox.orkut.com&lang=pt&country=BR&synd=orkut&view=canvas&nocache=1&mid=0&libs=content-

rewrite%3Adynamic-height%3Aviews&h=600&st=AFinprQj-
xCOxEq6vtfsYpFxtTs0QnZrR-F3idL1dqmel1GgcEWOldx7uTgL-
WvnjMSh_eEmhqjVUbVhegpeINitZCsXF7-
ZZb1cfmuBurL2jEtdiRdVZrk#gadgetId=989902011775&ga

dgetOwner=11514101038667816426&gadgetViewer=11514101038667816426&view-
params=&prefetch=0p0&[EMAIL PROTECTED]()ifr?url=...p0&time=1 (linha 2165)
[Break on this error] }try{D[b]=c.gadgets.rpc.receiveSameDomain

I also tried using setTimeout in the method:
function adjustPageHeight(){
        gadgets.window.adjustHeight();
        setTimeout('adjustPageHeight()',1000);
    }

to fix the problem in the FF2 and 3, but it doesn't do the trick, it
actually keeps increasing the iframe pixel by pixel every second.

Would you please help me?

If you need to take a look at my code:
http://corp.dito.com.br/orkut_height.xml

Thank you in advanced.

André





On 25 ago, 19:12, Jason <[EMAIL PROTECTED]> wrote:
> Most of the time, issues relating to gadgets.window.adjustHeight are
> due to it being called before the application's DOM finishes rendering
> which is why the setInterval hack sometimes works and sometimes does
> not. If you refactor your code a bit to ensure adjustHeight is being
> called after the DOM has fully updated, you won't have to rely on the
> setTimeout or setInterval functions at all.
>
> If anyone has an application that does NOT use either setInterval or
> setTimeout but DOES display inconsistent adjustHeight behavior (e.g.
> sometimes the height is adjusted correctly and sometimes it isn't),
> please reply with the link and I'll take a look.
>
> - Jason
>
> On Aug 24, 10:10 pm, "RAJA SEKHAR" <[EMAIL PROTECTED]> wrote:
>
> > ok And this is working some times and some times it is not working in FF
>
> > This is comppletely not working in IE 7
>
> > can u lok at this please
>
> > Thanks
> > Rajasekhar
>
> > On Mon, Aug 25, 2008 at 10:37 AM, Ramanpreet Singh
> > <[EMAIL PROTECTED]>wrote:
>
> > > Hey Raja.
>
> > > setTimeout will just call it once, use setInterval..
>
> > > RAJA SEKHAR wrote:
> > > > HI
>
> > > > I used the folllowing code but this is not working
>
> > > > function adjustPageHeight()
> > > > {
> > > >  gadgets.window.adjustHeight();
> > > >  window.setTimeout('adjustPageHeight()',1000);
> > > > }
>
> > > > can any one help me
>
> > > > Thanks
> > > > Rajasekhar
>
> > > > On Sun, Aug 24, 2008 at 8:31 AM, Pedro Teixeira <[EMAIL PROTECTED]
> > > > <mailto:[EMAIL PROTECTED]>> wrote:
>
> > > >     A quick hack is to use setInterval("gadgets.window.adjustHeight();",
> > > >     1000) -- this has been the only effective way to have our apps with
> > > no
> > > >     scrolls all the time.
>
> > > >     []'s
> > > >     Pedro
>
> > > >     On Aug 23, 3:25 am, "tauhid noori" <[EMAIL PROTECTED]
> > > >     <mailto:[EMAIL PROTECTED]>> wrote:
> > > >     > gadgets.window.adjustHeight('400px');
>
> > > >     > On Thu, Aug 21, 2008 at 12:59 PM, [EMAIL PROTECTED]
> > > >     <mailto:[EMAIL PROTECTED]> <
>
> > > >     > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> > > >     > > hello everyone,
>
> > > >     > > I am quite new to Orkut apps.
>
> > > >     > > I have been trying to develop an application for a game that I
> > > >     already
> > > >     > > have. I have managed to fetch remote content.
>
> > > >     > > But I cannot figure out how to use
> > > >     > > gadgets.window.adjustHeight();
>
> > > >     > > It will be really helpful to look at a sample code.
> > > >     > > Thanks in advance.
>
> > > >     > --
> > > >     > Tauhid- Hide quoted text -
>
> > > >     > - Show quoted text -
>
> > --
> > Sekhar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
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