Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
"Cannot call method 'adjustHeight' of undefined"
Screenshot: http://screencast.com/t/qp3NfFNj
I just embedded a near-brand-new Vanilla for the first time on a page and got that error. Help?
Tagged:
0
Answers
see how it works commenting it out. The height adjustment routine is a bit flaky anyway in my opinion.
I ended up having to use something like this around 143 just above above the routine (where you had the error) for a very long page.
if (height < "12000") {
height="12000";
}
screencast appears to be the slowest site available to post images and retrieve them as far as I can tell.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
don't know if this is a browser specific issue or not?
http://stackoverflow.com/questions/1814130/google-wave-gadget-gadgets-window-is-undefined
gadgets.util.registerOnLoadHandler(gadgets.window.adjustHeight)
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Two things:
1) it's adjustHeight() -- it's a method, not a property: https://developers.google.com/gadgets/docs/reference/#gadgets.window.adjustHeight
2) Is this a current version of Google Gadgets?
I've been googling a bit and a post on MySpace Developers mentioned that adjustHeight() wasn't supported until one migrated to the 'new' profile: http://developer.myspace.com/community/forums/p/10663/52169.aspx#52169
I also think VF might be referencing an earlier version of Google Gadgets because the call to registerOnLoadHandler() causes the error: "Object # has no method 'registerOnLoadHandler' " -- and it's listed as a valid function: https://developers.google.com/gadgets/docs/reference/#gadgets.util.registerOnLoadHandler
...yet I can console.log(gadget.util), so that is initialized, leading me to think we might be just using an older version of Google Gadgets. I've never used Google Gadgets before, so I don't know how to check for a loaded version number. It's not listed as its own script in Google Chrome's Developer Tools.
In fact, I'm wondering if this is being loaded properly. The auto-generated script calls the remote.js file, but the actual Google Gadget instantiation code is in EmbedVanillaPlugin::PluginController_Gadget_Create() -- where the required line is located to load dynamic-height as a feature:
<Require feature=\"dynamic-height\"/>
@Mark, would you have a moment to join this discussion as you are the creator of the plugin?
Do I need to load a google gadget library on my Debian web server which is hosting VF, such as http://code.google.com/p/google-gadgets-for-linux/
?
bump
@Mark ? Anybody?