Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

HTML Bridge: Closing a dialog when redirecting contents to a URL

$
0
0



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>


                    &lt;icon&gt;#&lt;/icon&gt;


               <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>



Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>