[Plugins] Pode HTML Pack

From the Asset Store
Pack of sprites for RPG games, characters and their customization, interface, inventory, icons, environment elements.
  • imothep85 google is one of the few sites that does not allow its self to be run from iframe. You should pick another site for testing.

  • ok its working but we can't override a _blank target to a _self target? or just open the_blank target in a new tab inside the iframe?

  • someone know how to create tabs inside the iframe, for ex, when i click on a _blank target that opens in a new tab?

  • I was wondering, is there a way to make the Wev-View scroll smoothly out of the layout.?

    For me: It stays until its completely out of the layout.

  • Forgive me...I'm looking at the updates in your first post and I don't see what this plugin is about...

  • Hey guys,

    I met a jquery error at the layout where I put this iframe..anyone met the same problem?

    Please help..

  • when i try to put my website in iframe the web site opens full screen! not within the i frame, as if it goes into the website home page and the back button in firefox browser is gray! no back to the application ! can you help me please solving this problem? your plugin is really awesome and i need to use it , thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi Pode.

    I was just running a YouTube video through an iframe in a Construct 2 program via Chrome on my Samsung S3. It normally runs fine but has just returned the following error. Just thought I should let you know as the message asks me to report it to the developer.

    Javascript error!

    Uncaught TypeError: Cannot read property 'prototype' of undefined http://192.168.1.117:50000/ HTML_iFrame_Pode_plugin.js, line 98 (col 49)

    This is likely a bug in Construct 2 or a third part plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console.

    P.S. Thanks for the plugin. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Hi Pode,

    Thankyou for this plugin. I have a question about the iFrame

    At runtime, is there a way for me to click on an object (image/buttons/ect) inside the HTML/iFrame and have it call a function in Construct 2 and also sent an ID of what get clicked.

    IS there a javascript I have to write for the webpage itself?

    Thank you.

  • Hi Pode,

    Thankyou for this plugin. I have a question about the iFrame

    At runtime, is there a way for me to click on an object (image/buttons/ect) inside the HTML/iFrame and have it call a function in Construct 2 and also sent an ID of what get clicked.

    IS there a javascript I have to write for the webpage itself?

    Thank you.

    I'm also interesting And is possible to move the iframe under the canvas

  • . AxeSaber felixsg

    You can use the hashtags (#) of the objects to know when the user clicks on an object that is inside the Iframe, and what object was it.

    here is a very simple example: LINK

    and here is its .capx: CAPX

    I hope it is usefull.

    you can also use ? instead of #, depends on your needs and what suits you.

  • Thanks I try the capx and not work like the online demo

  • The capx is not working like the online demo. I'm guessing that the browser does not like to load the hashtags if it from a local computer instead of it being on the internet.

    I think I have found another solution:

    Have the html call

    "<script>

    localStorage.setItem("MySavedKey", "MyVariable");

    "</script>

    create a plugin that have a Expression

    and return the string of:

    localStorage.getItem("MySavedKey")

    the expression will return "MyVariable"

    I have not combine it with this html code

    <button onclick="myFunction()">Click me</button>

    <script>

    function myFunction() {

    localStorage.setItem("MySavedKey", "MyVariable");

    }

    </script>

    I haven't tested it yet. It going to take me sometime within the next week to test it.

  • Posting just in case it helps someone else;

    I was having issues with sizing of the iframe - on iPad everything seemed okay, but on a desktop the frame was significantly smaller. (assuming this is because the sizing was based in pixels, and the total width of my project window was only 854px anyway. So really, it was doing what it was supposed to, I was just after something more responsive.)

    I tried using css which would be triggered when NOT on a mobile device, but the whole iframe disappeared on me. (it could have been my bad re: css though...)

    In the end the fix was to add css to the completed .html file built by Construct where the standard body and canvas css styles are set - I used the id of the iframe (set in Pode's plugin) to specify a size based on viewport width and height, and now everything seems to work fine in multiple browsers as well as on iOS. For example:

    #ID_of_iframe {
    	height: 85vh; !important
    	width: 56.5vw; !important
    }[/code:krc9kyc6]
    There is probably a better way to do this, but it worked for me with my simple setup.
    
    Hope this helps someone!
  • tumira Out of curiosity (and out of hope that you can answer quicker than I can grep and figure it out on my own) what did you do to stop the shakiness of the iFrame, and do you think it would fix the seeming similiar issue with the div plugin? If so, I don't mind manually changing my runtime if you would kindly let me know how you solved the issue.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)