How to Automatically Resize an iFrame (Using iFrameResize.js)

Поділитися
Вставка
  • Опубліковано 16 вер 2020
  • In this video you will learn how to automatically resize those ugly iFrames using a Javascript library called iFrameResize.
    Download iFrameResize here: github.com/davidjbradshaw/ifr...
    Download my code: gist.github.com/brickbones/86...
    If you like my videos and want to support the channel, you can buy me beer: www.buymeacoffee.com/ieatwebs...
    Contact me: / ieatwebsites

КОМЕНТАРІ • 41

  • @sahilkumarsahoo529
    @sahilkumarsahoo529 2 роки тому

    i've been looking for this all week. thanks so much

  • @ourfamilygarden
    @ourfamilygarden 9 місяців тому

    This was super-helpful! Thanks for breaking it down into easy-to-follow steps.

  • @byben123
    @byben123 2 роки тому +2

    Thank you so much for this video. Absolutely useful guide to set dynamic iFrame! :)

  • @jimjin235
    @jimjin235 3 роки тому +3

    I've been looking for this for several weeks, finally!!!!! Thank you soooooo much!!!!!

  • @marufsarkar8098
    @marufsarkar8098 2 роки тому

    I am trying to do something with conditional form.. its okay of first load but when new fields appear conditionally height not increasing. Is there any solution for this ?
    Thanks

  • @artcromediadesgin2592
    @artcromediadesgin2592 Рік тому +1

    can we have another sample, src from other website ( mean loan different domain website in ). can make it auto adjust height base on that page content ?

  • @glhn
    @glhn 2 роки тому +1

    Hello, thank you for tutorial! I have two question: first, you mentioned that users need spesific javascript in that page and that's the only way to run the library. That means it isn't gonna work in a wordpress website?

  • @Constantinesis
    @Constantinesis 2 роки тому

    Hello! I am using Wix. Could you tell me how can I add and embedd the script into my website usign their platform?

  • @rangabharath4253
    @rangabharath4253 3 роки тому

    awesome as always

  • @stilltiger
    @stilltiger 2 роки тому +1

    thank you so much

  • @fernandorojo6311
    @fernandorojo6311 3 роки тому +1

    Huge, thanks.

  • @ashrafulislam9234
    @ashrafulislam9234 10 місяців тому

    I downloaded your code but i don't see any form.html, Resizer.min.js, styles.css file and so on.

  • @user-py2ex8zg1t
    @user-py2ex8zg1t 2 роки тому

    How can I do it on WordPress. Can You suggest?

  • @mashenko_d
    @mashenko_d 5 місяців тому

    thank you

  • @sportsclipsasia
    @sportsclipsasia 2 роки тому

    Any video/code on how to print contents?

  • @maarten119
    @maarten119 3 роки тому

    i have the problem that its resizing to height: 1px???

  • @jenniferward6821
    @jenniferward6821 3 роки тому +1

    Thank you so much

  • @SladeGorman
    @SladeGorman 11 місяців тому

    is there a way to do this on shopify?

  • @Buyfave
    @Buyfave 3 роки тому +1

    How about if i want to have different (domain) website in ? Thanks, WebJek

    • @marcelo.victor
      @marcelo.victor 2 роки тому

      Just use postMessage with all origins (*) and event listener to receive the message and you are all set.

  • @Kolarian666
    @Kolarian666 2 роки тому +1

    Thanks

  • @raghu8898
    @raghu8898 Рік тому

    How to show another domain url in

  • @user-zz4jo1ui4c
    @user-zz4jo1ui4c 3 роки тому +2

    I will save some time for people working with this cross domain, it didn't work for me when placing the JS files in the project, it only worked with CDNs so if you encounter issues cross domains this could be the issue.

    • @marcelo.victor
      @marcelo.victor 2 роки тому

      Just use postMessage with all origins (*) and event listener to receive the message and you are all set.

  • @erichepperlewp
    @erichepperlewp 6 місяців тому

    This doesn't do what I need it to -- auto-resize embeds from other sites -- but I thumbs upped it anyway because it is still good information

  • @XeiDaMoKaFE
    @XeiDaMoKaFE 2 роки тому

    4:25 but if the whole point of you writing a js is to load it in the web page , can't you load the resize .js file to the external website for it to be able to use it

    • @XeiDaMoKaFE
      @XeiDaMoKaFE 2 роки тому

      don't you just need to append the resize.js file into the external website html

  • @abuzakariamusic
    @abuzakariamusic 2 роки тому

    I tried but didn't work me, 100% width is coming but height not coming as you one!
    I did accordingly to your video and cross check many times

  • @santabaia
    @santabaia 3 роки тому

    hi, is that possible to insert in a wordpress page?

  • @Wanttono
    @Wanttono Рік тому

    Don't we have an Install and Forget 'responsive plugin' that will fix all past and future s on your website automatically placing above and below the thousands of previous s on your website?
    Plus this in your CSS = .-container{ position: relative; width: 100%; padding-bottom: 56.25%; height: 0; } .-container { position: absolute; top:0; left: 0; width: 100%; height: 100%; }

  • @jeetudey
    @jeetudey 3 роки тому +1

    After using this with CDNs I encountered Cross domain issue and I fixed that by setting the option checkOrigin: false. However it is setting the frame height to 0px. Not sure why.
    [iFrameSizer][Host page: frmain] Checking height is in range 0-Infinity
    Resizer.js:144 [iFrameSizer][Host page: frmain] Checking width is in range 0-Infinity
    Resizer.js:144 [iFrameSizer][Host page: frmain] IFrame (frmain) height set to 0px

    • @marcelo.victor
      @marcelo.victor 2 роки тому

      Just use postMessage with all origins (*) and event listener to receive the message and you are all set.
      Or you could use the taggedelement to set the height.

  • @alexnim4873
    @alexnim4873 3 роки тому

    i've been looking for this all week. thanks so much

  • @funforeveryone1366
    @funforeveryone1366 Рік тому

    Don't we have an Install and Forget 'responsive plugin' that will fix all past and future s on your website automatically placing above and below the thousands of previous s on your website?
    Plus this in your CSS = .-container{ position: relative; width: 100%; padding-bottom: 56.25%; height: 0; } .-container { position: absolute; top:0; left: 0; width: 100%; height: 100%; }