Open ColorBox from iFrame to Parent Window

function iframecode(url, w, h) { window.parent.$.colorbox({href:url, iframe: true, scrolling: false, width: w, height: h}); } var headID = window.parent.document.getElementsByTagName(“head”)[0]; var newScript = window.parent.document.createElement(‘script’); newScript.type = ‘text/javascript’; newScript.src = ‘https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’; headID.appendChild(newScript); var headID = window.parent.document.getElementsByTagName(“head”)[0]; var cssNode = window.parent.document.createElement(‘link’); cssNode.type = ‘text/css’; cssNode.rel = ‘stylesheet’; cssNode.href = ‘http://demo.svnlabs.com/colorbox/example3/colorbox.css’; cssNode.media = ‘screen’; headID.appendChild(cssNode); var headID = window.parent.document.getElementsByTagName(“head”)[0]; … Read more

Amazon S3 & Facebook Fanpage app

I want to link Amazon S3 https object like “https://s3.amazonaws.com/bucket/index.html” to facebook iframed fan page… But it returned error…. 405 Method Not Allowed Code: MethodNotAllowed Message: The specified method is not allowed against this resource. ResourceType: OBJECT Method: POST RequestId: XXXXXXXXXXXXX HostId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OR PreconditionFailedAt least one of the pre-conditions you specified did not holdBucket … Read more