Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

enable and disable taskpane frame

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
464 Views, 2 Replies

enable and disable taskpane frame

Dear all,

Does any body out there know the script function to enable and disable the task pane frame using link or button?

Best regards,

made
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Sure, using MapGuide Studio, create two new buttons that are an "Invoke Script"

In one, to remove the task pane, put in the following:
javascript:document.all.tags("Frameset").item(1).cols = '*,0';

In the other, to get the task pane back, put in:
javascript:document.all.tags("Frameset").item(1).cols = '*,300';

Add those two Invoke Script buttons to your menu etc, to have a hide Task Pane tool.

Note: This refers to the second Frameset in the root URL of the map (you may have to tweak it a little if you put the URL in another frame).

regards
gordon
Message 3 of 3
Anonymous
in reply to: Anonymous

thank u very much gordon.... its finally work.

best regards,

made

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report