The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Problem with Video Chat Widget "Redirecting"

View previous topic View next topic Go down

Problem with Video Chat Widget "Redirecting"

Post by Bloodhound1958 on December 27th 2014, 8:35 pm

I recently made a Video Chat Widget. There are two problems. When going to the index page the view is automatically redirecting or centering to the widget location as opposed to top of the index page. It does this on all pages. Secondly, when you go to post for example the cursor defaults to the widget as opposed to the message body. I am using the following embed code. Any help or advice is much appreciated... Smile

<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>OVX Video Room</title>
</head>
<body>
<center>
<!-- BEGIN Embed Code -->
<script>
(function(d, w) {
var x = d.getElementsByTagName('SCRIPT')[0];
var f = function () {
var s = d.createElement('SCRIPT');
s.type = 'text/javascript';
s.setAttribute('ovx-widget','ovxplayer'); // Mandatory
s.setAttribute('ovx-apikey','myAPIKey'); // Mandatory
s.setAttribute('ovx-name','Guest'); // Mandatory
s.setAttribute('ovx-session','SomeUniqueSessionID'); // Mandatory
s.setAttribute('ovx-autostart',false); // Default false
s.setAttribute('ovx-render','embed'); // Default popup
s.setAttribute('ovx-width','250'); // Default 400
s.setAttribute('ovx-height','320'); // Default 320
s.setAttribute('ovx-chat','enable'); // Default disable
s.setAttribute('ovx-record','enable'); // Default enable
s.setAttribute('ovx-dialout','enable'); // Default enable
s.setAttribute('ovx-cc','1'); // Optional
s.setAttribute('ovx-number','4695551212'); // Optional

s.src = "//ovx.me/ovxplayer/ovx-embed-ovxplayer.js?v1";
x.parentNode.insertBefore(s, x);
};
w.attachEvent ? w.attachEvent('onload', f) : w.addEventListener('load', f, false);
}(document, window));
</script>

<!-- END Embed Code -->
</center>
<div id='ovx-player' style='width:600px; height:320px;'></div>

<!--
<button onclick="OVXEMBED.setKeyValue('ovx-name','Some User');OVXEMBED.setKeyValue('ovx-session','121212');OVXEMBED.openOVXFrame();">Open OVX</button>
-->

</body>
</html>

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Re: Problem with Video Chat Widget "Redirecting"

Post by Ramdaman on December 27th 2014, 9:28 pm

Please put your coding in a code bbcode.

Example:
Code:
[code]Place code in here[/code]

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Re: Problem with Video Chat Widget "Redirecting"

Post by Bloodhound1958 on December 27th 2014, 9:29 pm

Code:
<meta charset="utf-8" /><title>OVX Video Room</title>
<center>
   
   <!-- BEGIN Embed Code --><script>
(function(d, w) {
 var x = d.getElementsByTagName('SCRIPT')[0];
 var f = function () {
 var s = d.createElement('SCRIPT');
 s.type = 'text/javascript';
 s.setAttribute('ovx-widget','ovxplayer'); // Mandatory
 s.setAttribute('ovx-apikey','myAPIKey'); // Mandatory
 s.setAttribute('ovx-name','Guest'); // Mandatory
 s.setAttribute('ovx-session','SomeUniqueSessionID'); // Mandatory
 s.setAttribute('ovx-autostart',false); // Default false
 s.setAttribute('ovx-render','embed'); // Default popup
 s.setAttribute('ovx-width','250'); // Default 400
 s.setAttribute('ovx-height','320'); // Default 320
 s.setAttribute('ovx-chat','enable'); // Default disable
 s.setAttribute('ovx-record','disable'); // Default disable
 s.setAttribute('ovx-dialout','enable'); // Default enable
 s.setAttribute('ovx-cc','1'); // Optional
 s.setAttribute('ovx-number','4695551212'); // Optional

 s.src = "//ovx.me/ovxplayer/ovx-embed-ovxplayer.js?v1";
 x.parentNode.insertBefore(s, x);
 };
 w.attachEvent ? w.attachEvent('onload', f) : w.addEventListener('load', f, false);
}(document, window));
</script>
   <!-- END Embed Code -->
</center>
<div style="width:600px; height:320px;" id="ovx-player">
</div>
 
<!--
<button onclick="OVXEMBED.setKeyValue('ovx-name','Some User');OVXEMBED.setKeyValue('ovx-session','121212');OVXEMBED.openOVXFrame();">Open OVX</button>
  -->

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Re: Problem with Video Chat Widget "Redirecting"

Post by Bloodhound1958 on December 28th 2014, 4:27 pm

Perhaps I should consider other options? Is there a Video Chat similar to the one provided by forumotion? Perhaps I could replace it?

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum