Hi Ian,<br />try firs the answer of Umberto...<br />if not:<br /><br
/>submit is not a function of mapserver, but a function of the javascript
object form, which send the data of the form to the web server, accordin
to the method (POST or GET, default GET, I suppose, but is not important
yet)<br /><br />try some debug methods like alerts:<br /><br /><span
class="Code"> var oform =
document.forms["mapserv"];<br /> if (!oform) {
alert("form not recognized"); }<br /></span><br />and the
problem is another.<br />try too another browser.<br /><br />javascript
need much patience <br /><br />bye<br
/>............................................ pg<br /><br /><br />On Mer,
14 Marzo 2007 5:29 pm, Maxfield Ian wrote:<br />> Hi Pietro,<br />>
<br />> <br />> <br />> The actual code within the html file is
" document.mapserv.submit() ",<br />> whereas the error
message within the Firefox error console removed the<br />>
parenthesis. I have tried examples such as:<br />> <br />> var
oform = document.forms["mapserv"];<br />> <br />>
oform.submit();<br />> <br />> <br />> <br />> but this did
not work either. The same error came back.<br />> <br />> <br
/>> <br />> This is quite frustrating as everyone's examples online
use "<br />> document.mapserv.submit() " without any
problems. Is submit() a function<br />> within the mapserver
program?<br />> <br />> <br />> <br />> Ian<br />> <br
/>> <br />> <br />> Ian Maxfield<br />> GIS Specialist<br
/>> Avon IM&T Consortium, King Square House, King Square, Bristol,
BS2 8EE<br />> T: 0117 9002490 / F: 0117 9002473<br />> E:
Ian.Maxfield@aimtc.nhs.uk<br />> W:
http://nww.avon.nhs/imtconsortium/Information_Services/<br />> <br
/>> ________________________________<br />> <br />> From: UMN
MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<br />>
Behalf Of Pietro Giannini<br />> Sent: 14 March 2007 16:08<br />>
To: MAPSERVER-USERS@LISTS.UMN.EDU<br />> Subject: Re:
[UMN_MAPSERVER-USERS] document.mapserv.submit(); problems in<br />>
javascript<br />> <br />> <br />> <br />> try:<br />>
document.mapserv.submit()with parenthesis ( ).<br />> without
parenthesis 'submit' is a property, not a function, in javascript.<br
/>> <br />> regards<br />>
.....................................pg<br />> <br />> --<br />>
Pietro Giannini<br />> Bytewise srl - Area GIS<br />>
41°50'38.58"N 12°29'13.39"E<br />> <br />> <br
/>> On Mer, 14 Marzo 2007 4:50 pm, Ian Maxfield wrote:<br />>>
Many thanks to those who gave solutions to problems that I was having<br
/>>> with<br />>> javascript. The error console in Firefox has
proved particularly useful<br />>> in<br />>> identifying and
fixing problems.<br />>><br />>> The only message that I now
currently have from the error console is:<br />>><br />>> '
document.mapserv.submit is not a function '<br />>><br />>> I
understand that this is the script to force mapserve to refresh within<br
/>>> javascript. In all the examples I have seen on the the net the
code<br />>> above<br />>> is perfectly valid - I cannot see
why I should have an error using this<br />>> code.<br />>><br
/>>> Can anyone shed any light on this??<br />>><br />>>
Thanks,<br />>><br />>> Ian<br />>><br />> <br />>
###########################################<br />> <br />> This
message has been scanned by F-Secure Anti-Virus for Microsoft<br />>
Exchange.<br />> For more information, connect to
http://www.f-secure.com/<br /><br /><br />-- <br />Pietro Giannini<br
/>Bytewise srl - Area GIS<br />41°50'38.58"N
12°29'13.39"E