在做oauth时如何创建弹出窗口? [英] How do I create a popup window when doing oauth?

查看:101
本文介绍了在做oauth时如何创建弹出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用弹出窗口来执行lifestream和其他网站使用oauth身份验证所做的事情。他们打开一个弹出窗口,不知何故没有被弹出窗口阻止程序阻挡并且灰显了他们的网站。然后在允许oauth访问时,它会重新定向回原始站点并杀死弹出窗口并将站点恢复为正常颜色。我该怎么做这样的事情?如果我发布任何内容我不应该没有问题,因为所有这些帐户都是假的。

I'm would like to do what lifestream and other sites have done with oauth authentication by using a pop up window. They open a popup window which somehow wasn't blocked by the popup blocker and grey out their site. Then upon allowing oauth access it says redirecting back to original site and kills the popup and returns the site to normal color. How would I go about doing something like this? If I posted anything I shouldn't have its alright because all these accounts are bogus anyway.

推荐答案

问题是,这不是一个弹出窗口。这就是通常所说的灯箱。像fancybox,lightbox等许多js脚本。您基本上可以在具有绝对位置和高z-index的div中打开iframe,然后在下面放置一个叠加层。

The thing is, this is not a pop-up window. It's what usually called lightbox. A js script like fancybox, lightbox and many others. You basically can open an iframe in a div with a absolut position and high z-index, then put an overlay underneath.

这篇关于在做oauth时如何创建弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆