Hi Albert,
I copied your html code to my local server and use it for the template
in the mapfile.
The result is: the Map Tools, Map Layers, Reference Map, legend titles
appear. The icons for the radio buttons do not appear but that's no problem.
The map appears (with some data of mine). If I click on one of the map
tools, and then into the map, then their is the correct effect. The map
zooms in or out or recenters.
When I click on the corners of the map margin (for pan), then I get a
javascript error because "document.mapserv" is undefined.
When I click on the GO button (which took a time to find it) I get
another javascript error, because "document.corner" is undefined. In
Lawrence's source code you see that "Corner" is the name of a form.
Your go-Button is in the form "the_form".
Then I have changed "the_form" to "the_map" and i have changed "mapserv"
in "document.mapserv" to "the_map". Then i deleted the line
"document.the_map.mode[0].checked=true" because this has an error anywhere.
Now the pan functions on the corner of the image are working. Not
perfect but they do. They pan an zoom. But I think this a not a big
problem to solve.
I have changed the "document.corner" into document.the_map. So now the
Go button kind of works. It produces a fresh page.
And I have changed the [program] placeholders to my actual url because I
don't know where to set this value.
Try to do the changes and test every step.
I'm now out. Perhaps til tomorrow.
Manfred
Albert Anderson schrieb:
Hi Manfred Meier,
I dont know about the errors cause I do not for sure how to open the
html code direct in the browser. I have javascript for panning arrows
around the image that I couldnt get working.
For the go button to I have to set some sort of vaule to that? I dont kow.
Thanks,
Albert
Manfred Meier <[EMAIL PROTECTED]> wrote:
Hi Albert,
when I load the html code into the browser then I get javascript errors
(status line of internet explorer) because document.the_map and
document.mapserv are undefined. "document.the_map" is used in the
javascript function set_Mode which is called in the onload event.
Do you get these errors too?
Maybe they come only here because I opened the html code direct in the
browser.
Manfred
Albert Anderson schrieb:
> Hi Lawrence,
>
> I tried copying your code and changing out your information to fit
> mine. Its not working to well. My button isnt doing anything.
Here is
> my html code. Maybe you can look at it? I dont know what I am doing.
> Thanks, Albert
>
> .....
------------------------------------------------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls
<http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
to the US (and 30+ countries) for 2ยข/min or less.