I am trying to set source of a dynamically inserted iframe with jquery, it works with one source but doesn’t with google maps.
The google maps url work with iframe which is already there in page.
I’ve setup a my case on jsfiddle, I’m using three variables for testing, ‘src1’ works but ‘src2’ and ‘src3’ don’t.
Please somebody help me out, I’ve been pulling my hair on this.
apparently this is an issue with google maps. add the parameter output=embed to the src and it works: http://jsfiddle.net/RG8YK/2/
More info: Overcoming "Display forbidden by X-Frame-Options"