Newbie and javascript problems
Umberto Nicoletti
umberto.nicoletti at GMAIL.COM
Wed Mar 14 06:05:07 PDT 2007
In firefox under tools->error console you will find a log of all
errors happening on the page.
This could help in finding the cause.
Umberto
On 3/14/07, Ian Maxfield <ian.maxfield at aimtc.nhs.uk> wrote:
> Hello all,
>
> ms4w installed
> Windows XP (iis uninstalled)
>
> I have been working my way quite happily through the MapServer 4.6 tutorial,
> and have been doing fine until I have tried using the examples that include
> javascript. None of the code that includes javascript will work. E.g.
> when you click on a pan icon to call the javascript function pan(direction),
> nothing will happen. One of the function calls is as follows:
>
> <td align="right" width="18"><a href="javascript:pan('ne')"><img
> src="graphics/nw.png" width="18" height="18" border="0" alt="pan
> northwest"></a></td>
>
> Should call;
>
> function pan(direction) {
> var x, y;
> if(direction == 'n') {
> x = (400-1)/2.0;
> y = 0 - (300 * pansize)/2.0;
> ....etc
>
> Tests I have tried:
> - created test functions to display alerts
> - changed the href to onclick calls
> - created new function calls elsewhere in the html document
>
> The javascript looks correct in that when you move the cursor onto the arrow
> the screen text at the bottom of the screen displays the function e.g.
> javascript:pan('nw'), but then nothing happens on the actual mouse click.
>
> As you can imagine the problem is driving me slightly insane. Is there
> something obvious that I am missing? Could it be to do with where the ms4w
> folder is stored?
>
> Any help would be greatly appreciated,
>
> Ian
>
More information about the MapServer-users
mailing list