0

I'm using the fancybox v2.1.5 for a .net application. I use the iframe for displaying an aspx-side. Works fine. But today I noticed, that the request to my aspx-page to be displayed in a fancybox was made 4 times. I tested it with another page - same issue.

Here is all what I do:

<a href='ChangePassword.aspx' class="fancybox fancybox.iframe" style="color:white;text-decoration:none;">Change password</a>

This is the easy side, but in another there are some DB-Calls an many lines of code, so it isn't really a good thing because of the performance.

I've only found one very old link: google groups

thx ©a-x-i

a-x-i
  • 303
  • 5
  • 13
  • have you tried the API option `iframe: {preload: false}`? Fancybox also creates a new random ID for each iframe regardless is the same page to address the issue on the latest post you refer. also check http://stackoverflow.com/q/2648053/1055987 if that helps – JFK Nov 07 '13 at 17:48
  • No chance - same problem. The request is still made 4 times :( – a-x-i Nov 08 '13 at 07:42
  • I'm so silly. The $('.fancybox').fancybox(); was called many times. One time in master, one time in aspx, one time in ascx and.... in another script file too. That's all. thx a lot :) – a-x-i Nov 13 '13 at 13:56

0 Answers0