[mapguide-users] New Tab Like Properties and Layers

2009-02-12 Thread Jamo

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-tp2318026p2318026.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] New Tab Like Properties and Layers

2009-02-12 Thread Mark Pendergraft
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-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jamo
Sent: Thursday, February 12, 2009 1:31 PM
To: mapguide-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] New Tab Like Properties and Layers

2009-02-12 Thread Jamo

Thanks for the heads up Mark, at the moment it is not an option, I've not
looked into the fusion layouts to much, upon first couple of test runs it
seemed the initial loading of the map was much longer than the default
layout, unfortunately for the application I'm working on time spent in the
map would have been less than time spent loading the map(for future
applications I will be taking a close look at the fusion layouts)

I have code to replace the properties panel with custom properties panel
depending on what feature you are viewing, which to me is a big step,
however I have found that the task pane is a big screen space hog for little
to no benefit for this application, therefore I have removed it, which
leaves search me wanting to add this search panel to the left pane (just
seems logical)?

The properties panel code is fairly basic at the moment (and probably
already been done before), but perhaps I can share it in the hope it will
grow into something much more?

Regards

Adam J


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

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] New Tab Like Properties and Layers

2009-02-12 Thread Mark Pendergraft
I agree with you about wasted space.  One of the primary reasons for
moving to Fusion for me was the fact that the layout was so rigid.
Best of luck.
-Mark

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


Thanks for the heads up Mark, at the moment it is not an option, I've
not
looked into the fusion layouts to much, upon first couple of test runs
it
seemed the initial loading of the map was much longer than the default
layout, unfortunately for the application I'm working on time spent in
the
map would have been less than time spent loading the map(for future
applications I will be taking a close look at the fusion layouts)

I have code to replace the properties panel with custom properties panel
depending on what feature you are viewing, which to me is a big step,
however I have found that the task pane is a big screen space hog for
little
to no benefit for this application, therefore I have removed it, which
leaves search me wanting to add this search panel to the left pane (just
seems logical)?

The properties panel code is fairly basic at the moment (and probably
already been done before), but perhaps I can share it in the hope it
will
grow into something much more?

Regards

Adam J


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

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users