VMware {code} Community
alstraub
Contributor
Contributor

Embedding remote content in web client plugin

I am working on a plugin to complement our service appliance which also has a https web interface. Are there any guidelines or recommended methods regarding embedding pages from the service appliance?

I understand there are plans to deliver an https proxy. Will making use of that ultimately be the answer in the future?

0 Kudos
3 Replies
laurentsd
VMware Employee
VMware Employee

Can you describe your use case a little more?  This forum is for the vSphere Client SDK which allows to add plugins to vSphere Client.

Thanks.

0 Kudos
alstraub
Contributor
Contributor

I am working on an HTML5 vSphere plugin that interfaces with our vSphere service appliance which has a REST interface and a WEB UI for standalone use.

The plugin dislays its inventory through vsphere.core.inventorylist.objectCollectionTemplate and also has actions to create, modify, delete, offline etc.

The create action has quite a few steps and is already implemented in our appliance's web ui. Rather than port or re-implement this UI and logic in the plugin, is it permitted to serve the page from the appliance and embed it in the action modal? I have prototyped this using an IFRAME and it works but was unsure whether this was acceptable. Do you have any recommendations for the same?

0 Kudos
laurentsd
VMware Employee
VMware Employee

Yes, there is no SDK restriction as far as the source of the HTML content in your plugin's iFrame if you can handle the browser security constraints yourself. We're looking at making that easier since it's becoming a more important use case but I don't have anything specific at this time. 

0 Kudos