views:

29

answers:

2

Hi, i'm using asp.net mvc 2 and Simplemodal with iframe

it works great but my controller is being called twice when opening in iframe when i call the page directly, the controller is called only once

 $.modal('<iframe id="frmDetails" src="' + src + '" >', { containerCss: { height: "90%", width: "90%"} });

is there an option that i'm missing, it's a very simple call.

Thanks

A: 

Try

$.modal('<iframe id="frmDetails" src="' + src + '" ></iframe>', {
    containerCss: { height: "90%", width: "90%"},
    appendTo: 'form'
});
Eric Martin
A: 

Check to make sure that you don't have the jquery js file or other javascript files included more than once.

Dave