That worked very well. Life can be this simple sometimes ;o). Thank
you Andreas.
Best regards
Albrecht

AH> Hi Albrecht,

AH> 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

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

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

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

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

AH> That's it.

AH> Regards,
AH> Andreas.


____________________
Albrecht Weiser
mailto:[EMAIL PROTECTED]


-------------------------------------------------------------------------
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