[mapserver-users] Rosa and javascript

E Perik erwin at perik.nu
Thu Jun 13 09:56:24 EDT 2002


Use something like:

printf("<PARAM NAME=\"TB_BUT_pquery_IMG\"
VALUE=\"./images/tool_info_1.gif\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_IMG_PR\"
VALUE=\"./images/tool_info_2.gif\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_HINT\" VALUE=\"Point Query: Click a
point on the map|for information about that point\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_INPUT\" VALUE=\"auto_rect\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_NAME\" VALUE=\"CMD\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_VALUE\" VALUE=\"QUERY_POINT\">\n");
printf("<PARAM NAME=\"TB_BUT_pquery_JSACTION\"
VALUE=\"submitAction('','runQuery()')\">\n");


and in the main map you use:

function RunQuery()
{
    document.forms[0].submit();
}


Another one:

printf("<PARAM NAME=\"TB_BUT_pquery_JSACTION\"
VALUE=\"submitAction('resultSet','resultSetQuery.php')\">\n");

-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Guillaume
Sueur
Sent: donderdag 13 juni 2002 14:09
To: Liste MapServer
Subject: [mapserver-users] Rosa and javascript

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
--------------------------------------------------------




More information about the mapserver-users mailing list