views:

11

answers:

0

Hi,

I'm creating a bookmarklet for a web project we're working on, the bookmarklet loads an iframe with a sign-in page offering twitter sign-in, everything is working as expected so far, however i'm facing problems in the case when the user isn't already signed in with twitter, he'll be then redirected to twitter sign-in page which is the expected behavior, however for some reason the twitter sign-in page is not loading inside the iFrame and replaces the parent document itself, this is the bookmarklet link for reference:

javascript:s=document.createElement('script');s.src='http://new.yumm.com/js/bookmarklet.js';s.type='text/javascript';void(document.getElementsByTagName('head')[0].appendChild(s));

Thanks In Advance.