# javascript

**URL:** <https://techcommunity.softwareag.com/t/javascript/57287>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [April 10, 2006, 4:21pm UTC](https://techcommunity.softwareag.com/t/javascript/57287 "2006-04-10T16:21:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![achimrumberger](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/achimrumberger/32/79_2.png) [@achimrumberger](https://techcommunity.softwareag.com/u/achimrumberger)\
**Post date:** [April 10, 2006, 4:21pm UTC](https://techcommunity.softwareag.com/t/javascript/57287/1 "2006-04-10T16:21:50Z")

</div>

Hi all!  
is it possible to define own javaschrpt functions (not in form of new controls) but directly in the way casabac is using and defining ist javascript libraries.  
and how would i access such a function?

and please - don’t ask whay i want to have this, it simply is a requirement of this project

something along this line:

Hallo!

 Test Test Test 

any help would be much appreciated

achim

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [April 13, 2006, 4:36pm UTC](https://techcommunity.softwareag.com/t/javascript/57287/2 "2006-04-13T16:36:34Z")

</div>

Hi Achim,

guess what the answer is: you have to do - by own controls.  
Should I ask the question to you which you try to avoid me to ask? 😉

Bjoern

---

<div class="post-metadata">

**Author:** ![achimrumberger](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/achimrumberger/32/79_2.png) [@achimrumberger](https://techcommunity.softwareag.com/u/achimrumberger)\
**Post date:** [April 20, 2006, 3:14pm UTC](https://techcommunity.softwareag.com/t/javascript/57287/3 "2006-04-20T15:14:03Z")

</div>

hi bjoern!  
seems we have to do it via controls.  
otherwise it would have been nice to use identical code in 2 different environments, so for the time beeing we have to maintain 2 different pieces of code for 2 different environments, but with the same function.  
have fun,  
achim

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [April 20, 2006, 7:51pm UTC](https://techcommunity.softwareag.com/t/javascript/57287/4 "2006-04-20T19:51:41Z")

</div>

Hi Achim,

please be awar of that you can outsource JS code into JS-libraries. Corresponding function is available on ProtocolItem-level, which is part of the tag handler’s interface parameters.  
Myeb you could have on “.js” library being accessed from two deifferent scenarios?

Bjoern

Code-Example, inside out FIELD-handler we do…:

```auto

        protocolItem.addJsLib("../HTMLBasedGUI/general/FIELDControls.js");
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/javascript/57287/5 "2021-04-02T14:38:32Z")

</div>


