[mapguide-users] New Tab Like Properties and Layers

Mark Pendergraft markp at Meadgilman.com
Thu Feb 12 16:37:24 EST 2009


I'm aware that this may not be an option for you, but adding a new tab
in Fusion is extremely easy.  The fusion layout uses the Jx Library
which makes adding tabs, collapsible div's, etc. very simple to
implement.
-Mark

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jamo
Sent: Thursday, February 12, 2009 1:31 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] New Tab Like Properties and Layers


I've been asked to add a new tab to the default viewer (a search tab).

I would like to know if anyone else has been able to complete such a
task, I
was thinking of doing something like the following.

I would like it to function in the same manner as the properties tab, as
in
be able to slide it up and down and open and shut using the little
arrows
button on the right.

I keep getting argument not valid error...

If this is possible is it also possible to add javascript functions to
handle the various drag / minimise /maximise funtions at the same time?

function createNewTab()
{
try
{
var InfoDiv = parent.document.getElementById('InfoDiv');
var divToAdd = document.createElement('div');
divToAdd.setAttribute('id', 'myNewDiv');
divToAdd.innerHTML = 'some Text';

InfoDiv.appendChild(divToAdd);

}
catch(e)
{
alert(e.description);
}
}

Any help wold be great :)

I would like to do this without having to edit the ajaxmappane.tmpl or
any
of the default files, I would rather do it on an onLoad event so as
though
other applications can still use the default layout.

Cheers!

-- 
View this message in context:
http://n2.nabble.com/New-Tab-Like-Properties-and-Layers-tp2318026p231802
6.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list