{"action":"created","issue":{"url":"https://api.github.com/repos/recurly/recurly-js/issues/253","repository_url":"https://api.github.com/repos/recurly/recurly-js","labels_url":"https://api.github.com/repos/recurly/recurly-js/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/recurly/recurly-js/issues/253/comments","events_url":"https://api.github.com/repos/recurly/recurly-js/issues/253/events","html_url":"https://github.com/recurly/recurly-js/issues/253","id":152037538,"number":253,"title":"recurly.configure does not reinject iframes.","user":{"login":"lukebrdn","id":3859351,"avatar_url":"https://avatars.githubusercontent.com/u/3859351?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebrdn","html_url":"https://github.com/lukebrdn","followers_url":"https://api.github.com/users/lukebrdn/followers","following_url":"https://api.github.com/users/lukebrdn/following{/other_user}","gists_url":"https://api.github.com/users/lukebrdn/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebrdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebrdn/subscriptions","organizations_url":"https://api.github.com/users/lukebrdn/orgs","repos_url":"https://api.github.com/users/lukebrdn/repos","events_url":"https://api.github.com/users/lukebrdn/events{/privacy}","received_events_url":"https://api.github.com/users/lukebrdn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/recurly/recurly-js/labels/bug","name":"bug","color":"C44D58"},{"url":"https://api.github.com/repos/recurly/recurly-js/labels/in%20progress","name":"in progress","color":"FF4F00"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-04-30T15:51:26Z","updated_at":"2016-08-06T10:50:06Z","closed_at":null,"body":"I'm building a form to update billing information. The user can reveal or hide this form by clicking an edit button. The first time recurly.configure is called, the iframes inject correctly. However, if I destroy the form view and then the user reopens the form, which calls recurly.configure again, the iframes will not be injected.\r\n\r\nI've solved the issue by setting recurly.readyState = 0, whenever the user hides the form. This feels a little hacky, so it'd be nice if there was some type of reset function, or if recurly.configure could check if the iframes were present rather than rely on the readyState."},"comment":{"url":"https://api.github.com/repos/recurly/recurly-js/issues/comments/238017724","html_url":"https://github.com/recurly/recurly-js/issues/253#issuecomment-238017724","issue_url":"https://api.github.com/repos/recurly/recurly-js/issues/253","id":238017724,"user":{"login":"bennadel","id":563690,"avatar_url":"https://avatars.githubusercontent.com/u/563690?v=3","gravatar_id":"","url":"https://api.github.com/users/bennadel","html_url":"https://github.com/bennadel","followers_url":"https://api.github.com/users/bennadel/followers","following_url":"https://api.github.com/users/bennadel/following{/other_user}","gists_url":"https://api.github.com/users/bennadel/gists{/gist_id}","starred_url":"https://api.github.com/users/bennadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennadel/subscriptions","organizations_url":"https://api.github.com/users/bennadel/orgs","repos_url":"https://api.github.com/users/bennadel/repos","events_url":"https://api.github.com/users/bennadel/events{/privacy}","received_events_url":"https://api.github.com/users/bennadel/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T10:50:06Z","updated_at":"2016-08-06T10:50:06Z","body":"Yesterday, we launched part of our IFrame-based solution. We basically pass in all the existing form-data in the IFrame URL, then parse it, render the form (in the IFrame), and .configure() the Recurly.js fields. \r\n\r\nIn order to get all this to work, we had to create a \"proxy\" around the IFrame that knows how to render the IFrame with the parent window when the IFrame loads; and then how to de-register everything when the IFrame is destroyed.\r\n\r\nIt was incredibly __not-trivial__ to get it working, unfortunately. "}}
{"actor":{"display_login":"bennadel"}}