# How do I launch an AJAX app from a Natural greenscreen

**URL:** <https://techcommunity.softwareag.com/t/how-do-i-launch-an-ajax-app-from-a-natural-greenscreen/91429>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX, Natural-on-Windows-Unix\
**Created:** [October 1, 2009, 4:49pm UTC](https://techcommunity.softwareag.com/t/how-do-i-launch-an-ajax-app-from-a-natural-greenscreen/91429 "2009-10-01T16:49:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Werner\_Bredenhann](https://avatars.discourse-cdn.com/v4/letter/w/a4c791/32.png) [@Werner\_Bredenhann](https://techcommunity.softwareag.com/u/Werner_Bredenhann)\
**Post date:** [October 1, 2009, 4:49pm UTC](https://techcommunity.softwareag.com/t/how-do-i-launch-an-ajax-app-from-a-natural-greenscreen/91429/1 "2009-10-01T16:49:04Z")

</div>

Currently we are launching AJAX apps from green screens in the following way:

1. Open a mainframe session (greenscreen) within a web browser
2. Have a JAVAscript looking for a specific value (text string) in a specific position on a greenscreen map
3. Upon detecting such a value, launch a specific URL (in this case the AJAX app)

Is there a better mechanism to do this instead of having to resort to a JAVAscript running in a browser?

Also, once the AJAX app is closed via a “Cancel button” (in effect just escaping from the Natural program, how do we return to the greenscreen?

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [October 1, 2009, 10:31pm UTC](https://techcommunity.softwareag.com/t/how-do-i-launch-an-ajax-app-from-a-natural-greenscreen/91429/2 "2009-10-01T22:31:27Z")

</div>

This is documented in the Windows version of Natural for AJAX. If this link doesn’t work:  
[url][http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat637win/njx/njx-devcode.htm#njx-devcode-map[/url]](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat637win/njx/njx-devcode.htm#njx-devcode-map%5B/url%5D),  
then get the manual and navigate to  
Developing the Application Code   
 → Using Natural Maps

Below that you’ll see Navigating between Pages and Maps. There are code samples.

I’m sorry to say that I have not yet tried this myself.

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/how-do-i-launch-an-ajax-app-from-a-natural-greenscreen/91429/3 "2021-04-02T14:57:34Z")

</div>


