Here is a simple example HTML-file containing ooRexx code, as "an example may 
tell more than 1.000
words":

    <head>
        <title>Object Rexx: Process User Input</title>

        <script language="Object Rexx">
            ::routine do_some_work public
              output~innerhtml=reverse(input~value)
        </script>

    </head>

    <body>
        Please enter some text:<p>

        <input id="input" type="textarea" size="100"> <BR>

        <input type="BUTTON" onclick="call do_some_work" language="Object Rexx"
               value="Please Press Me!"><p>

        <p id="output">
    </body>


If you save the examle in a file named "test.html" and load this HTML-file with 
MS Internet Explorer
on Windows XP with ooRexx 3.2 installed, then:

  * an input field is displayed into which a user may enter text,
  * a push button is displayed reading "Please Press Me!",
      o when pressing the push button, then the input text is fetched (via its 
id "input") and
        reversed by Rexx and re-displayed in the empty paragraph with the id 
"output".

You can repeat the actions as many times as you wish.

On W7, after pressing the push button, MSIE reports a crash.

---rony



On 05.11.2011 14:08, Rony G. Flatscher wrote:
> In a lecture about introducing ooRexx and interfacing with Windows, I have 
> been forced to use ooRexx
> 3.2, because it allows one to embed ooRexx code in HTML files that get 
> processed by the MS Internet
> Explorer ("DHTML").
>
> This way the students learn among other things about markup languages, 
> meta-languages (SGML, XML),
> DOM and DHTML, the MS implementaiton of DOM. They can easily experiment and 
> "play around" with the
> possibilities this opens using ooRexx. They learn that they can take 
> advantage of MSIE on Windows,
> by using it as a GUI, a nice formatter and printer. Usually, these students 
> become able to create
> nice applications in ooRexx, taking advantage of the MSIE integration of 
> ooRexx!
>
> As nowadays more and more Windows computers are rolled out with Windows 7, it 
> becomes a serious
> problem, if ooRexx 3.2 cannot be used in a stable manner, because MSIE 
> breaks-down, after processing
> an event with ooRexx code (upon return from the ooRexx routine)!
>
> For that reason I am searching for advice: is it possible, and if so, how to 
> configure the ooRexx
> 3.2 installation on Windows 7 such, that ooRexx programs can be carried out 
> in a stable manner under
> Windows 7 as well? Are there any ideas, in what areas one could experiment 
> with?
>
> TIA
>
> ---rony

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to