3 ms·
yup. it's a bitch getting the iframe to resize when the credit card form shrinks or grows.
by trungonnews 15y ago
yup. it's a bitch getting the iframe to resize when the credit card form shrinks or grows.
- grimen 15y agohaha, yes that too. I was refering to secure payments where the host site can affect he layout of payments but not the secret details. Yes you can do that if being creative. :)
- simonw 15y agoIt's not impossible though. One method of doing that is to use the trick where an iframe can communicate with its parent document by altering the #fragment URL, which can be read by both parties. It's dirty but it works. The new HTML5 postMessage API can be used as an alternative for browsers that support it.
- deleted 15y ago[deleted]
- alanh 15y agoI didn’t even realize postMessage was a new API. It works in everything newer than IE7. http://caniuse.com/#x-doc-messaging http://caniuse.com/#x-doc-messaging