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: 

Search Function in iFrame

1 REPLY 1
Reply
Message 1 of 2
emluv
671 Views, 1 Reply

Search Function in iFrame

Hello,

 

I have created a search using the built-in command in a Fusion 2011 layout. I have set the search to open in an iFrame, and it seems to work until it comes time to zoom to it. When the feature is selected, nothing happends on the map. I have tried changing some code in the Mapguide API in \www\fusion\layers\MapGuide\MapGuideViewerApi.js from 

var Fusion = window.top.Fusion to var Fusion = window.top.iFrameMap.Fusion and still no luck.

 

How do I get the map to talk to the iFrame?

 

Thanks in advance!

 

Emily

emluv
1 REPLY 1
Message 2 of 2
jackie.ng
in reply to: emluv

Have you tried window.top.iFrameMap.contentWindow.Fusion?

 

The contentWindow property gives you the window reference of the iframe

 

Source: http://www.bennadel.com/blog/1592-Getting-IFRAME-Window-And-Then-Document-References-With-contentWin...

 

- Jackie

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

Post to forums  

Autodesk Design & Make Report