[mapserver-users] Rosa and javascript

Yewondwossen Assefa assefa@dmsolutions.ca
Thu, 13 Jun 2002 09:53:28 -0400


--------------09BE2F953F5791A11834F1A9
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi There

 You need to define TB_BUT_?_JSACTION with something like this :

        <PARAM NAME="TB_BUT_pquery_INPUT" VALUE="auto_rect">
        <PARAM NAME="TB_BUT_pquery_NAME\" VALUE="CMD">
       <PARAM NAME="TB_BUT_pquery_VALUE" VALUE="QUERY_POINT">
      <PARAM NAME="TB_BUT_pquery_JSACTION" VALUE="TestFunc('aaa')">

You need a Javascript function called TestFunc defined something like
function TestFunct(value)
{
  window.alert(value);
}

When the action is done using the button, instead of submitting the page, the
javascript function will be called.
Hope it hepls,

Later,

Guillaume Sueur wrote:

> Hi there,
> Reading rosa applet documentation, I saw that it was possible to call a
> javascript function from a rosa applet button using the JSACTION parameter.
> But I haven't able to use it properly yet. Could someone give me a hint ?
> Thanks
>
> --------------------------------------------------------
> Guillaume SUEUR
> Ingénieur développement SIG
> Géosignal
> 25bis av Marcel Dassault
> BP 5836
> 31505 TOULOUSE CEDEX 5
> Tél : 05 61 17 47 17
> --------------------------------------------------------

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------


--------------09BE2F953F5791A11834F1A9
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi There
<p>&nbsp;You need to define TB_BUT_?_JSACTION with something like this
:
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PARAM NAME="TB_BUT_pquery_INPUT"
VALUE="auto_rect">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PARAM NAME="TB_BUT_pquery_NAME\"
VALUE="CMD">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PARAM NAME="TB_BUT_pquery_VALUE"
VALUE="QUERY_POINT">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&lt;PARAM NAME="TB_BUT_pquery_JSACTION"
VALUE="TestFunc('aaa')"></b>
<p>You need a Javascript function called TestFunc defined something like
<br>function TestFunct(value)
<br>{
<br>&nbsp; window.alert(value);
<br>}
<p>When the action is done using the button, instead of submitting the
page, the javascript function will be called.
<br>Hope it hepls,
<p>Later,
<p>Guillaume Sueur wrote:
<blockquote TYPE=CITE>Hi there,
<br>Reading rosa applet documentation, I saw that it was possible to call
a
<br>javascript function from a rosa applet button using the JSACTION parameter.
<br>But I haven't able to use it properly yet. Could someone give me a
hint ?
<br>Thanks
<p>--------------------------------------------------------
<br>Guillaume SUEUR
<br>Ing&eacute;nieur d&eacute;veloppement SIG
<br>G&eacute;osignal
<br>25bis av Marcel Dassault
<br>BP 5836
<br>31505 TOULOUSE CEDEX 5
<br>T&eacute;l : 05 61 17 47 17
<br>--------------------------------------------------------</blockquote>

<p>--
<br>----------------------------------------------------------------
<br>Assefa Yewondwossen
<br>Software Analyst
<p>Email: assefa@dmsolutions.ca
<br><A HREF="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>
<p>Phone: (613) 565-5056 (ext 14)
<br>Fax:&nbsp;&nbsp; (613) 565-0925
<br>----------------------------------------------------------------
<br>&nbsp;</html>

--------------09BE2F953F5791A11834F1A9--