Hi Albrecht,

On Dec 4, 2007 10:05 AM, Albrecht Weiser <[EMAIL PROTECTED]> wrote:
> Hi mapserver list,
> i want to initialize the path to the default model dynamically.
> Therefore i want to bypass the node <defaultModelUrl> from the config
> file and initialize the variable of the defaultModelUrl in my client

Ok, the first step is to omit the <defaultModelUrl> property in your
model config.

> tell me the variable which i can use for this issue?

Let's say your model has the id "mainMap". In this case, you would
just have to specify a global javascript variable in your html/jsp
page:

<script type="text/javascript">
mainMap = "path/to/my/modelUrl";
</script>

That's it.

Regards,
Andreas.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to