VMware {code} Community
rutvijdhotey
Contributor
Contributor

Vsphere Web Client Modal Dialog open for Plugin Issue in Chrome and IE

Webclient Modal Problem.
Problem : When i open up a modal in the webclient plugin, and then go back to the plugin default landing page, the Javascript file loses the reference of "WEB_PLATFORM", there by making all the operations using WEB_PLATFORM undefined and thus functionality is hampered. This only happens for the browsers CHROME and IE. Everything works perfectly for FIREFOX. 
Solutions tried: Saving the WEB_PLATFORM reference statically before modal opens, when model opens but both of them do not work.
0 Kudos
4 Replies
laurentsd
VMware Employee
VMware Employee

The current SDK has some quirks regarding the WEB_PLATFORM APIs that rely on the iFrame url parameter (i.e. getObjectId, getActionId, getActionTargets,  getLocale)

You should save those values at the beginning of the script when your plugin page loads, and so that you don't have to call those APIs again after a modal dialog is opened and closed.

We're working on improving this.

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

laurentsd​ for the HTML 5 plugin (fling) seed the project generated doesn't have webplatform.js file.

This is causing error when loading the page at mainbundle.js.

0 Kudos
laurentsd
VMware Employee
VMware Employee

You're right that plugin-seed doesn't use webplatform.js. Instead the bootstrapping of WEB_PLATFORM is done directly in the global.service.ts.

There is no know issue with that.  Please open another Forum thread to describe your problem in details so I can help further. Thanks.

0 Kudos
SreeSindhuSruth
Enthusiast
Enthusiast

@laurentsd the link for the issue that I am facing.

Error in webclient 6.5 - (fling sdk) setGlobalRefreshHandler is not a function

0 Kudos