Cross Domain 100$ Height?
-
Can your plugin help to show iframe 100% height as the source?
If not, can you consider to make a plugin using this one > https://github.com/davidjbradshaw/iframe-resizer-react (I of course no idea how to do that…)
-
Hello @littabird,
I’m sorry, but I think this functionality is outside the scope of the plugin.Please notice that for the iframe-resizer to work, you need to implement it both in the host AND in the contained page, where we don’t have any control.
https://github.com/davidjbradshaw/iframe-resizer#usageIt is also possible to implement it yourself using the plain javascript version and assigning and ID to the iframe block.
https://github.com/davidjbradshaw/iframe-resizer#typical-setupI get it your plugin can’t do anything like that… I asked you to make a new plugin using https://github.com/davidjbradshaw/iframe-resizer-react … This one can but I don’t know how to wrap it as a plugin, you do.
Hi @littabird,
for me, the problem is that what you propose needs to operate in the iframe container and in the contained page, so the odds for it to work are very little, and it wouldn’t be straightforward to integrate (the other should be a WordPress, the plugin would have to be installed in both and each site configure separately).I could add an option to use the iframe-resizer libray, but only on the host side, that’s why I think it will be an incomplete and misleading feature.
Take a look to see if https://github.com/davidjbradshaw/iframe-resizer-react is any good. It seems this is what is needed/missing. Else, there is no more solution (taht I could find).
Make sure you look at the one with “REACT”, not the iframe-resizer by the same author — this one needs to add one line of <script> at source, but not the REACT one (this is designed for cross domain).
Thank you.
Thank you @littabird,
both libraries are from the same author, and both use very similar code.I am afraid that the React version also needs the contained script, as you can see in the Usage section of the docs:
https://github.com/davidjbradshaw/iframe-resizer-react#usageThe page in the iframe then needs (iframeResizer.contentWindow.min.js) from iframe-resizer. This file is designed to be a guest on someone else’s system, so has no dependencies and won’t do anything until it’s activated by a message from the containing page.
At this point, I think the only solution is to manually add the library and its code to your website.
Thank you
I am not a coder… so I have idea what can what cannot.
That said, it’s still very useful even you have to put something in the source files in order for the function to work eg. autoheight (in my case, the source is just anotehr subdomain of mine).
You are an expert, well, at least you know how to make a plugin… Try to bundle whatever that is useful into your offering so that you can stand out. I am happy to help if there is something I?can?do…Let me know.
NB: Anyone looking for iframe plugin are likely those who wanted something more than just <iframe> tag eg. “autoheight”, specific area of a page, etc.
Thank you
Hi again,
I understand your point of view, but I still believe that this is a bit out scoped.If you need help integrating the iframe-resizer library please provide some URLs as an example and I will try to help.
Also, if you need code assistance, you can always ask in the WordPress forums for advice.
https://www.ads-software.com/support/forum/wp-advanced/Thanks Unapersona.
Okay, try this…
bon.bonology.com (this is made with FreshRSS — one-click install cPanel)… It has index.php and index.html (I place a banner on the pages, nothing shows up?)
I wanna wrap the above site in the main site bonology.com.
Try install FreshRSS on your server to check it out. Better still, try cross domain.
Hi,
in this case I will definitively try with a fixed height of 500px, or if you prefer to fill the screen height, 100vh.
You can put those units in the height input without problem.Please try and let me know if it works for you.
Thanks
I know how to specify fixed height… It’s a problem. That’s why I am looking for solution for autoheight.
Show me the code for 100vh? I doubt this will work, but gimme the code to try…
Like this
<iframe src= “url” width=”100%” height=”100vh”> ?
Hi,
you don’t need to touch any code, you can put the height with the units in the style panel, something like:I knew this 100VH won’t work properly.
VH will basically extend the viewport height of the iframe, not the page height.
So, it’s not much different from specifying the height as 100% or 1000px. You still end up with a frame that require scrolling (this may not be an issue in some cases, but it’s an issue for most cases eg. my rss script.This confirmed one line of code must be pasted at source for “autoheight” to work.
That said, appreciate if you can take a look where can I place the js code in FreshhRSS (there are a dozen index.php and index html… I tried them all, none works so far).
Finally, may I know what’s the advantage of using a plugin eg. Simple Iframe, which will add load and make the site slower, Instead of pasting a simple code as below:-
<iframe style=”width:100%;max-width:100%;height:100vh” src=”https://bon.bonology.com/p/i/” frameborder=”0″></iframe>
Hello @littabird,
The advantages of using this plugin vs pasting the iframe code, is that you can edit it visually and don’t have to copy/paste code (that it can be a nuisance for some people).
Since it works as a block, you don’t make the site slower, only the admin a tiny bit (all the final html are generated when saving the content).About the FreshRSS structure, I am sorry, but I can’t help you with that, you will have to ask them directly.
Thank you.
I won’t use a plugin that can be done by pasting simple code.
I am a fast/light person when it comes to web — So, No, I don’t believe it makes no difference to performance using a plugin.
Every plugin is a burden to the server as far as I know, that’s only logical because the server will have more codes to run, no matter how little.Suggest you learn/experiment more… There is a massive market for iframe manipulation, except not many inquire into this topic as a result of cross domain restrictions, rendering folks like you to think there is not much you can do. I however believe there is a way out… and I do believe a lot more wonder can be invented if there is a solution to manipulate the iframe. Why? Because there is an ocean of goodies out in the Internet that can be ported to your lil site (via cherry picking of content).
That said, do not hesitate to contact once you’re ready to move forward… coding is never my business, it’s yours.
Hi again,
I have to respectfully disagree on the “every plugin is a burden to the server”, but that’s ok ??Thank you for your comments.
- The topic ‘Cross Domain 100$ Height?’ is closed to new replies.