Okay, so after a few tries, we came to the conclusion that the HLF polls thingy is a bit unreliable. Sometimes the server seems to time-out and stops responding, but most of the time it works. Keffy did this poll and it worked: https://hlf-polls.appspot.com/140/r
Thanks Morgypie, not sure why that is. I have no way of knowing either.
Blasty is no longer working on it and unfortunately I can't auto embed strawpoll properly. The strawpoll dimensions are not obtainable. If I can find a workaround for getting their height I might look at embedding them.
I would have figured you could have set a percentage then height:calc(X% - Zpx);, but what would fix it isn't possible. That XSS protection. Good, but slightly annoying. I don't think it's worth it as I doubt Strawpoll will do an API.
Morgan
said
:
That was too easy!
Yes I wish it was that easy, but people don't post that. People post something like this http://strawpoll.me/3842785
The link gives me no information about the dimensions. Since the poll is wrapped in an iframe and the iframe content doesn't come form runescape's domain, I can't talk to it to find it's dimensions.
Notice Blasty's poll links have ?h=500, the number tells me poll is 500 pixels high. Same limitations apply to his polls. They don't interact with the pages, and linkify is not in the middle passing data between the two.
The only way this can be done is allowing linkify to talk to strawpoll by changing my content security policy. That's the equivalent of allowing these pages to exchange saliva with an external website. That could do more than leave an unpleasant taste in your mouth.
Edit:
Ryan M,
I have tried a few things but to my understanding it doesn't work. The only safe way I know of would be to make an api hosted on my site, where the strawpoll url is submitted from linkify and using curl I can get the embed code and return that back to linkify.
11-Mar-2015 05:24:34
- Last edited on
11-Mar-2015 05:50:23
by
Indecent Act