dynamic-height.js should not be included in the container javascript,
it is only meant for the gadget.  It calls the rpc function named
resize_iframe.  This rpc function is defined in container.js.  I am
not sure why you are getting this error.  Could you provide the code
for a container and gadget that can reproduce the error?

On Sun, Aug 10, 2014 at 9:13 PM, Raj Janorkar <[email protected]> wrote:
> Hi Ryan,
>
> Thank you.
>
> Below is the js script src path which i am using
>
> shindig/gadgets/js/core:open-views:opensearch:container:rpc:selection:views:actions:opensocial:xmlutil.js?c=1&debug=1&container=default
>
> however i tried adding dynamic-heiht in above path still it fails with this
> error -
>>
>> Could not fire onloadhandler _IG_AdjustIFrameHeight is not defined
>
> I tried declaring it my custom JS but still fails.
>
> Thank you in advance.
>
> Regards,
> Raj
>
>
>
>
> On Mon, Aug 11, 2014 at 10:07 AM, Ryan Baxter <[email protected]> wrote:
>>
>> How are you adding the js files to your container?
>>
>> -Ryan
>>
>> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <[email protected]> wrote:
>>
>> Hi Ryan,
>>
>> Thank you for replying, yes you are right we have it defined in
>> dynamic-heiht.js, i have added that in my container but still it fails.
>>
>> It is failing at below function
>>
>> /**
>>    * Runs all functions registered via registerOnLoadHandler.
>>    * @private Only to be used by the container, not gadgets.
>>    */
>>   gadgets.util.runOnLoadHandlers
>>
>>
>> Do i need to add _IG_AdjustIFrameHeight in gadgets.util
>>
>> Thank you.
>>
>> Regards,
>> Raj
>>
>>
>> On Tue, Aug 5, 2014 at 12:28 PM, Ryan Baxter <[email protected]> wrote:
>>>
>>> Do you know where in the source this is coming from?
>>>
>>> The variable _IG_AdjustIFrameHeight is defined in dynamic-height.js [1].
>>>
>>> [1]
>>> https://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js
>>>
>>> On Wed, Jul 30, 2014 at 7:33 AM, Raj Janorkar <[email protected]>
>>> wrote:
>>> > Hi All,
>>> >
>>> > While rendering gadget i am getting below error.
>>> >
>>> > *Could not fire onloadhandler _IG_AdjustIFrameHeight is not defined*
>>> >
>>> > i am not able to understand why i am getting it.
>>> >
>>> > Could anyone please help.
>>> >
>>> > Thank you in advance.
>>> >
>>> > Regards,
>>> > Raj
>>
>>
>

Reply via email to