I suspect that you are calling the mapbuilder functions before they have
been loaded.
Note that the Javascript has not all loaded when the onload function is
called.
You can verify this by putting a breakpoint in the onload function and
seeing if the functions exist. See
http://communitymapbuilder.org/display/MAP/Debugging for debugging tips.
To write a simple function which is called on loaded, create yourself a
new widget or button which receives an "onLoad" event from a model.
Search the widgets/ for an example.
Dario Zarro wrote:
> Hi,
> I use this function to change value in context object but it don't work.
> Please, help me!
> .....
> - <script>
> - var mbConfigUrl='config.xml';
> -
> - type=getParameter('TYPE');
> - init=function(type){
> -
> config.objects.mainMap.setXpathValue(config.objects.mainMap,'//wmc:Literal',type);
> - };
> - <script/>
> -
> - ....
> - <body onload="mbDoLoad(init)">
> - .....
>
> getParameter(param) return the URL parameter param.
>
> thanks in advance!
>
--
Cameron Shorter
Geospatial Systems Architect
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254
Think Globally, Fix Locally
Commercial Support for Geospatial Open Source Solutions
http://www.lisasoft.com/LISAsoft/SupportedProducts.html
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users