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