ooVoo Forums

Welcome to ooVoo Forums Sign in | Join | Help
in Search

Dynamically adding the web widget

Last post 03-18-2009 4:41 PM by ubahar. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-16-2009 1:52 PM

    • ubahar
    • Top 200 Contributor
    • Joined on 03-16-2009
    • Posts 3

    Dynamically adding the web widget

    Hi,

     I would like to dynamically add the widget to the page (e.g. only when clicking a button, a new layer with the widget will show up), but I can't find a way to do it.

    If I call CreateRoom() after the page is loaded, the widget takes up the whole page. I also noticed you are using document.write to add the applex/activeX to the page, which is usually supported only on page-load but not afterwards.

     

    Thanks.

    Filed under: , ,
  • 03-18-2009 4:17 PM In reply to

    Re: Dynamically adding the web widget

      Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

    Ubahar,

     

    1) To do this, you need to create the widget when the page is loaded, but hide it.  See this sample to see this in action:

    http://www2.oovoo.com/samples/MediaShare  (click view image and you'll see the widget disappear as the DIV is hidden)

    You can also see the same thing in action in the moderator panel when rooms are used.  The participant sits in a web page w/out the widget showing, then when the user is added to the call the widget is displayed:

    www2.oovoo.com/conference

     

    2) Regarding the “the widget takes up the whole page” – in April we’ll have a version that allows developers to shrink the room to 400px room.

    3) Regarding “using document.write” + dynamically – I don’t think it’s a problem if we load it and use it when need.

    My suggestion, in order to get fully understand and give the right answer, is to contact us directly.  Can you email developer@ooVoo.com and I'll schedule a meeting w/ you.  Thanks,

     -tj

  • 03-18-2009 4:41 PM In reply to

    • ubahar
    • Top 200 Contributor
    • Joined on 03-16-2009
    • Posts 3

    Re: Dynamically adding the web widget

    Thanks for your reply.

    I initially implemented this as you suggested (using a hidden div), but was hoping there was a way to do it "really" dynamic.

    The way I would like to be able to do this is include your script on the page's <head> part, and when someone clicks to chat, dynamically create the containing <div> and call "createRoom()", passing it the name of the new div.

    I guess this is not possible right now.

     

    Thanks.

Page 1 of 1 (3 items)