Opened in iframe

This example shows how the MCImageManager be opened in a custom iframe using the target_frame option.

[Pick file]

HTML source

Below is all you need to setup the example.

<script type="text/javascript" src="<your installation path>/js/mcimagemanager.js"></script>

<p>
	<input id="url_abs" style="width:400px" />
	<a href="javascript:;" onclick="mcImageManager.browse({fields : 'url_abs', target_frame : 'imagemanager_iframe'});">[Pick file]</a>
</p>

<iframe id="imagemanager_iframe" src="about:blank" style="width:800px; height:480px; border: 1px solid gray"></iframe>