You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Raj Janorkar <ra...@gmail.com> on 2014/07/30 13:33:04 UTC

Error onloadhandler is not defined

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

Re: Error onloadhandler is not defined

Posted by Ryan Baxter <rb...@apache.org>.
Shindig features have a dependency tree.  For example say you have
features A, B, and C and C depends on A and B.  Now say you have a
container javascript URL that looks like shindig/gadgets/js/C.js.  The
means that all three features, A, B, and C, will be included in the
javascript returned by the script tag.  If you changed the URL to be
shindig/gadgets/js/A:C.js it would make no difference in the
javascript returned by the script tag.  If you changed the URL to
shindig/gadgets/js/A.js only the Javascript for A will be returned.

The other thing I should mention about features is that they can
contain javascript meant for the container or javascript meant for
gadgets or javascript meant for both.  So if you include the same
feature in both your container and gadget Shindig may load different
javascript all together or it may load the same javascript or in some
cases it might not load anything at all (because the feature doesn't
define any javascript for that context).

If you just include core:rpc in your container Javascript URL you will
be missing all of the common container Javascript which is not what
you want.  You can probably simplify the URL to the following
shindig/gadgets/js/open-views:opensearch:container:views:actions:opensocial:xmlutil.js?c=1&debug=1&container=default
at the very least.  Core and RPC are pretty much dependencies of
everything, and selection is a dependency of actions.  You might even
be able to simplify things further if you really want to take a look
at the dependencies.  However it doesn't hurt to be more explicit,
actually it can only help things especially when the dependency tree
changes.

On Mon, Aug 11, 2014 at 9:15 PM, Raj Janorkar <ra...@gmail.com> wrote:
> Thank you so much Ryan.
>
> Finally it is clear that why it is not working for this gadget.
>
> However Based on your answer below i am in doubt about the container script
> 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*
>
> I think i dont need to include all above in container script. If i only
> include* core:rpc *will that be okay?
>
> *i assume that i can include any of these available here*
> https://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/
>
> but what is the point including theme in container anyway it will not work
> if it is not included in gadget's* require features*?
>
>
> Thank you in advance
>
> Regards,
> Raj
>
>
>
>
>
>
> On Tue, Aug 12, 2014 at 9:27 AM, Ryan Baxter <rb...@apache.org> wrote:
>
>> 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 <ra...@gmail.com>
>> 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 <rb...@gmail.com>
>> 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 <ra...@gmail.com>
>> >> 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 <rb...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> How are you adding the js files to your container?
>> >> >>
>> >> >> -Ryan
>> >> >>
>> >> >> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com>
>> >> >> 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 <rb...@apache.org>
>> >> >> 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 <
>> raj.janorkar@gmail.com>
>> >> >>> 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
>> >> >>
>> >> >>
>> >> >
>> >
>> >
>>

Re: Error onloadhandler is not defined

Posted by Raj Janorkar <ra...@gmail.com>.
Thank you so much Ryan.

Finally it is clear that why it is not working for this gadget.

However Based on your answer below i am in doubt about the container script
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*

I think i dont need to include all above in container script. If i only
include* core:rpc *will that be okay?

*i assume that i can include any of these available here*
https://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/

but what is the point including theme in container anyway it will not work
if it is not included in gadget's* require features*?


Thank you in advance

Regards,
Raj






On Tue, Aug 12, 2014 at 9:27 AM, Ryan Baxter <rb...@apache.org> wrote:

> 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 <ra...@gmail.com>
> 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 <rb...@gmail.com>
> 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 <ra...@gmail.com>
> >> 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 <rb...@gmail.com>
> >> > wrote:
> >> >>
> >> >> How are you adding the js files to your container?
> >> >>
> >> >> -Ryan
> >> >>
> >> >> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com>
> >> >> 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 <rb...@apache.org>
> >> >> 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 <
> raj.janorkar@gmail.com>
> >> >>> 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
> >> >>
> >> >>
> >> >
> >
> >
>

Re: Error onloadhandler is not defined

Posted by Ryan Baxter <rb...@apache.org>.
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 <ra...@gmail.com> 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 <rb...@gmail.com> 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 <ra...@gmail.com>
>> 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 <rb...@gmail.com>
>> > wrote:
>> >>
>> >> How are you adding the js files to your container?
>> >>
>> >> -Ryan
>> >>
>> >> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com>
>> >> 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 <rb...@apache.org>
>> >> 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 <ra...@gmail.com>
>> >>> 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
>> >>
>> >>
>> >
>
>

Re: Error onloadhandler is not defined

Posted by Raj Janorkar <ra...@gmail.com>.
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 <rb...@gmail.com> 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 <ra...@gmail.com>
> 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 <rb...@gmail.com>
> wrote:
> >>
> >> How are you adding the js files to your container?
> >>
> >> -Ryan
> >>
> >> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com>
> 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 <rb...@apache.org>
> 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 <ra...@gmail.com>
> >>> 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
> >>
> >>
> >
>

Re: Error onloadhandler is not defined

Posted by Ryan Baxter <rb...@gmail.com>.
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 <ra...@gmail.com> 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 <rb...@gmail.com> wrote:
>>
>> How are you adding the js files to your container?
>>
>> -Ryan
>>
>> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com> 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 <rb...@apache.org> 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 <ra...@gmail.com>
>>> 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
>>
>>
>

Re: Error onloadhandler is not defined

Posted by Raj Janorkar <ra...@gmail.com>.
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 <rb...@gmail.com> wrote:

> How are you adding the js files to your container?
>
> -Ryan
>
> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com> 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 <rb...@apache.org> 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 <ra...@gmail.com>
>> 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
>>
>
>

Re: Error onloadhandler is not defined

Posted by Ryan Baxter <rb...@gmail.com>.
How are you adding the js files to your container?

-Ryan

> On Aug 6, 2014, at 8:36 AM, Raj Janorkar <ra...@gmail.com> 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 <rb...@apache.org> 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 <ra...@gmail.com> 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
> 

Re: Error onloadhandler is not defined

Posted by Raj Janorkar <ra...@gmail.com>.
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 <rb...@apache.org> 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 <ra...@gmail.com>
> 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
>

Re: Error onloadhandler is not defined

Posted by Ryan Baxter <rb...@apache.org>.
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 <ra...@gmail.com> 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