views:

5

answers:

0

Hello, I have a website project in ASP.NET MVC2 and use a Fancybox which loads a contactform in an IFrame. It all works fine.

But... When I debug my project in VS2010, the Action in my Controller got hit 2 times while I expected it to be hit only once.

The Action gets hit by this Javascript code: $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" scrolling="' + selectedOpts.scrolling + '" src="' + selectedOpts.href + '"></iframe>').appendTo(tmp);

Anyone know how to solve this?