- Joined
- Feb 21, 2015
- Messages
- 15
- Reaction score
- 0
Trying to see if there is a possibility to use a jquery/javascript cdn or another external javascript file within the javascript file defined in the 3CX VAD.
I have some ideas in mind that I would like to implement and it would make use of this concepts but so far, what I have only been able to do is create several functions within the javascript file in the libraries folder and use them.
An example doing this:
Calling this on the javascript file:
<script src="https://cdnjs.cloudflare.com/ajax/libs/6px/1.0.3/6px.min.js">
And then try to use the functions defined here would not allow the 3cx application to work as intended.
I've also tried (in test.js):
function createEl()
{
var oJs = document.createElement('script');
oJs.setAttribute('type','text/javascript');
oJs.setAttribute('src','test1.js');
document.getElementsByTagName('head')[0].appendChild(oJs);
var response = call();
return response;
}
Then on test1.js (resides on the same directory):
function call()
{
var voice = "ha ha ha";
return voice;
}
But it doesnt retrieve the call function and only loops at the beginning of the call.
Any thoughts?
I have some ideas in mind that I would like to implement and it would make use of this concepts but so far, what I have only been able to do is create several functions within the javascript file in the libraries folder and use them.
An example doing this:
Calling this on the javascript file:
<script src="https://cdnjs.cloudflare.com/ajax/libs/6px/1.0.3/6px.min.js">
And then try to use the functions defined here would not allow the 3cx application to work as intended.
I've also tried (in test.js):
function createEl()
{
var oJs = document.createElement('script');
oJs.setAttribute('type','text/javascript');
oJs.setAttribute('src','test1.js');
document.getElementsByTagName('head')[0].appendChild(oJs);
var response = call();
return response;
}
Then on test1.js (resides on the same directory):
function call()
{
var voice = "ha ha ha";
return voice;
}
But it doesnt retrieve the call function and only loops at the beginning of the call.
Any thoughts?