[Mapserver-users] php & javascript

Agneta Schick schick at sdac.hannover.bgr.de
Thu Jun 5 07:27:27 PDT 2003


Hello patient MapServer-users,

I've reached the point where I'm getting more confused the more
demos I look at and user-mails I read.

Platform: Solaris8, Netcape7, Apache, Mapserver3.6, php4.3.1, 

I need php (or Perl) for interfacing our INGRES database. So I
started with a php script using Mapscript to generate maps. 
This works fine and I can play with the URL in the browser so 
that zoom and imgbox parameters produce the correct maps.
Now I designed the layout in html and use javascript to catch
the mouse clicks for zooming (imgbox). My problem is that I don't 
understand how javascript starts the php script which then returns
the correct image-url so that only the map image is updated.

Doing something like 'document.image_name.src=myscript.php?redraw=1&imgbox...'
results in an empty image with the property  
"http://.../myscript.php?redraw=1&imgbox..." 

And sending a form-submit results in a new page. 
How do I get just the image updated (e.g. as an image button or image in a 
table)??

Sorry to bother with such a simple technical problem but I can't see any 
other possiblity. This is my first try with php. 
Configuring my apache server nnn times, reading all
mails pertaining to php and javascript and searching the web for clues have not 
helped.

Thank you
Agneta Schick







More information about the MapServer-users mailing list