cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
844
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Selim Budakoglu on 15-11-2008 05:38:28 PM
Hi guys, I have a javascript and I want to call that script from Cisco Unified Call Studio. The problem is, I have just add my sample javascript function by using project's Root Doc Settings tab, and I want to call that script without writing any custom elements.

function sayasDigits (number)
{
return number + 2 ;
}

Let say this is my sample javascript and I have two session elements called myvar1,myvar2 in my studio application. I want to set myvar1 to javascript number variable and set return value to myvar2. How can I do this without writing custom element and java codes just using the studio capabilities.

Thanks...

Subject: Re: Javascript call from Studio
Replied by: Janine Graves on 15-11-2008 05:52:41 PM
There's no way to invoke the javascript from a vxml page without writing your own voice element.

Subject: Re: Javascript call from Studio
Replied by: Selim Budakoglu on 16-11-2008 12:27:18 PM
Thanks Janine,
I think Cisco has to make Studio more useful about such a things. You can add javascript so simple way but you can not use it directly.

Subject: Re: Javascript call from Studio
Replied by: Janine Graves on 16-11-2008 02:55:11 PM
I agree! Totally!

Subject: Re: Javascript call from Studio
Replied by: GEOFFREY THOMPSON on 05-12-2008 09:04:05 PM
I don't - but I'm a programmer.

CVP Call Services is a server side component - Java is the right language. JavaScript is typically a client-side (browser side) language. You can do it all in Java and the overhead is low, because Tomcat can efficiently load the class through the class loader. Imagine if there was a JavaScript interpreter.

Perhaps Cisco could comment further.

Regards,
Geoff
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links