Raj, the problem is with the gadget, it is calling
_IG_AdjustIFrameHeight directly as opposed to using the adjustHeight
API.  Actually that really isn't the problem, the problem is that the
gadget doesn't even include the dynamic-height feature so
_IG_AdjustIFrameHeight isn't even included in the javascript the
gadget loads.  One thing you could try is adjusting
shindig.gadget-rewrite.default-forced-libs so it includes
dynamic-height, this will force the dynamic-height to be included in
the javascript for every gadget.

On Sun, Aug 10, 2014 at 10:50 PM, Raj Janorkar <[email protected]> wrote:
> Hi Ryan,
>
> Thank you.
>
> Here is the website http://www.blueg.com
>
> when i add below gadget  to it
> http://igstock.googlecode.com/svn/trunk/modules/indian_stock_market_on_ig.xml
>
> and see in console i am getting the error message.
>
> Let me know if you would like i will share the JS files with you.
>
> Regards,
> Raj
>
>
>
> On Mon, Aug 11, 2014 at 11:35 AM, Ryan Baxter <[email protected]> wrote:
>>
>> 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