In our HTML Bridge developed plugin we have a couple instances where we bring up a dialog and redirect to an external URL. This works well for us except for one issue. How to close the dialog box once the user is finished with operations in the external URL. Since we redirect to the URL, I don't see how I can invoke the +WEB_PLATFORM.closeDialog() +like we do with other dialogs were instead of redirecting, we directly do the processing in Javascript.
Does anybody have any suggestions/ideas how we can close the dialog once the user hits the finished button in our externally serviced page?
<extension id="com.mycompany.vcenterWebClientui.actionSet">
<extendedPoint>vise.actions.sets</extendedPoint>
<object>
<actions>
<com.vmware.actionsfw.ActionSpec>
<uid>com.mycompany.vcenterWebClientui.esxHostConfig</uid>
<label>#{MyPage.label}</label>
<icon>#</icon>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<actionUrl>/vsphere-client/vcenterWebClient-ui/redirect.html?page=MyPage</actionUrl>
<dialogTitle>#{MyPage.label}</dialogTitle>
<dialogSize>800,600</dialogSize>
</root></object>
</delegate>
</com.vmware.actionsfw.ActionSpec>
</actions>
</object>
</extension>