How can i replace iframe




















Please note that if you choose this method you will have to re-embed your form on every change of form's source code. Hello FREE. Form Support. Can i replace iframe with div tags? Why do you not want to answer this thread? Your answer will be sent to Jim and Aytekin.

Hi, IFrame is used as embedding method on Jotform forms. There are two problems I am facing with this:. I could be wrong about either of those points, so if I am, please let me know and then I will continue to use the iFrame. I am asking how to replace an iframe with a DIV and Javascript in order to get the functionality I mention above. I am not looking for ways to make iFrames behave differently.

I thought this would be fairly common, but most of the questions and information I've found in this site and on the web seems to be situation specific and asks for additional functionality that I don't need and complicates the issue.

However, if I've missed something and this is a duplicate, I wouldn't be offended if this got closed. You can make an ajax call to fetch your html page and add it to the div. For example using JQuery:. If you want the functionality mentioned you don't have to replace the iframe. You can make an ajax call to fetch your html page and add it to the div.

For example using JQuery:. After adding an InAppBrowser in place of the iframe I was using before, I eventually tried an iframe again, and the iframe now works without jumping over to the phone's browser, as it was doing before, and the iframe works consistently in both iOS and Android. How exactly can I replace an iframe with a div and Javascript?

Asked 2 Months ago Answers: 5 Viewed 22 times. There are two problems I am facing with this: The iFrame is always a fixed height, but I want it to expand vertically depending on the height of the content. Just to be clear, since it seems some people have misunderstood me: I am asking how to replace an iframe with a DIV and Javascript in order to get the functionality I mention above.



0コメント

  • 1000 / 1000