PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, December 3, 2022

[FIXED] How to use iframe component in solidjs?

 December 03, 2022     iframe, javascript, solid-js     No comments   

Issue

I would like to insert an iframe in my solidjs application. For this I downloaded the iframe package . But it rather created a bug in my application. Here is the code of my iframe:

import Iframe from 'iframe'
export default function SearchEngine() {
    return (

    <div>
          <Iframe src="http://gkwhelps.herokuapp.com"  width="100%" height="657px" />
     </div>

    )

}

I would like to know how to insert an iframe in solidjs. I wonder if there is a module like react-iframe for solidjs.


Solution

I'm not aware of any special package for inserting iframes for solid. But do you need some special features that react-iframe provided, or is it simply to have an iframe HTML element on the page?

Because you can just use lowercase <iframe> element normally, and build any additional functionality you need on top of it.

export default function SearchEngine() {
   return (
      <div>
         <iframe src="http://gkwhelps.herokuapp.com"  width="100%" height="657px"/>
      </div>
   )
}

Playground demo



Answered By - thetarnav
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing