[PLUGIN] HTML | iFrame

  • Opa cara blz?

    Pode me ajudar? Eu fiz um node js com um iframe que deveria rodar vídeos do YouTube. O previw no browser funciona. Mas o node js não passa os vídeos,fica uma tela em branco. Sabe se tem solução?

    Obrigado

    --------En------

    I made a noje js that have an iframe to run YouTube videos. The browser preview Works fine but the node js stucks as a White screen. Do you have any Idea for a solution?

  • The iframes also dont play any sound for videos or radios

  • ----------PT----------

    É o mesmo problema com vídeos MP4 e outros formatos. Eu realmente não sei como resolver.

    Isto é uma limitação do Node-Webkit. Talvez modificando a DLL (ffmpeg.dll ou ffmpegsumo.dll) possa conseguir executar os vídeos/áudios.

    ----------EN----------

    It's the same problem with MP4 videos and other formats. I really do not know how to solve.

    This is a limitation of Node-Webkit. Perhaps modifying the DLL (ffmpeg.dll or ffmpegsumo.dll) can be able to run the videos/audios.

  • Hello.

    When I select text. Is it possible to retrieve my selection? (A bit like "find (src, text)").

    For example:

    I have a textfield with the text "Hello the world".

    I have another empty textfield.

    I select "the".

    "the" is copied to the empty textfield automatically.

    To do this:

    (See in the middle of the page where is: Demo (select some text inside textarea))

    javascriptkit.com/javatutors/copytoclipboard.shtml

    Thank you.

  • Nandynho thaks for the plugin!

    ..it's nice to have html,iframe, .js & .css,all together in just one plugin..

    one question..

    is it possible to load javascript file in runtime ?

    (let's say..On load completed)

    because if I Ajax to load html & I use Properties bar to load .js

    sometimes browser alert error...

    ********************************************************

    christ59

    selectCopy.capx

  • Great!

    Thanks

  • Nandynho thaks for the plugin!

    ..it's nice to have html,iframe, .js & .css,all together in just one plugin..

    one question..

    is it possible to load javascript file in runtime ?

    (let's say..On load completed)

    because if I Ajax to load html & I use Properties bar to load .js

    sometimes browser alert error...

    ********************************************************

    christ59

    https://app.box.com/s/gjntj0xld9dg4y57p5i9ozm3e2um2wlm selectCopy.capx

    Great!

    It works very well with Chrome ... but not with Firefox and IE 11. Do you know why?

    Another question.

    1 / I created on my stage a textBox called "textBox".

    I would like to display the output in this textbox.

    Is it possible ?

    2 / What does "innerHTML" match in the "test.js" file?

    Thank you again for your help.

  • It works very well with Chrome ... but not with Firefox and IE 11. Do you know why?

    because load javascript file before htlm with ajax..if you load htlm with action

    everything works well..

    I created on my stage a textBox called "textBox".

    I would like to display the output in this textbox.

    Is it possible ?

    yes it's possible..you can copy selected text from plugin to c2 Textbox..

    or or even between two textbox in c2

    select2CopyPlugin.capx

    What does "innerHTML" match in the "test.js" file?

    i just copy script from link you post

    var quotearea = document.getElementById('quote')
    var output = document.getElementById('output')
    quotearea.addEventListener('mouseup', function(){
        if (this.selectionStart != this.selectionEnd){ // check the user has selected some text inside field
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd)
            output.innerHTML = selectedtext
        }
    }, false)[/code:27674b0v]
  • Great!

    Everything works very well!

    Thank you again for your help.

  • >

    > It works very well with Chrome ... but not with Firefox and IE 11. Do you know why?

    >

    because load javascript file before htlm with ajax..if you load htlm with action

    everything works well..

    > I created on my stage a textBox called "textBox".

    > I would like to display the output in this textbox.

    > Is it possible ?

    >

    yes it's possible..you can copy selected text from plugin to c2 Textbox..

    or or even between two textbox in c2

    https://app.box.com/s/n6s0hm50400grk67mcvvv9mhb49zlwur select2CopyPlugin.capx

    > What does "innerHTML" match in the "test.js" file?

    >

    i just copy script from link you post

    var quotearea = document.getElementById('quote')
    var output = document.getElementById('output')
    quotearea.addEventListener('mouseup', function(){
        if (this.selectionStart != this.selectionEnd){ // check the user has selected some text inside field
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd)
            output.innerHTML = selectedtext
        }
    }, false)[/code:1597eeja]
    

    One last question (I hope)

    I tried to do the same but with a text in an xml.

    But it does not work and I do not know why.

    Below is the .CAPX link

    Thanks again.

    drive.google.com/open

  • korbaach It's always good to hear compliments!

    [quote:1d8lj9gm]is it possible to load javascript file in runtime?

    Yes it is possible to load at runtime, but it takes a few seconds to be ready to use.

    [quote:1d8lj9gm]

    ...because if I Ajax to load html & I use Properties bar to load .js

    sometimes browser alert error...

    What is the error message? Is it some browser protection? Is there an error in the Node-Webkit preview?

    korbaach thank you for answering christ59 questions! I would not have done better.

    ********************************************************

    christ59 sorry for the delay but I see that you received an excellent help.

    You don't need to load two .js files. They are universal scripts that will work with all objects within Construct 2.

    You need to modify the textarea ID. ID's are unique.

    var output = document.getElementById('output');
    ////////////////////
    // Quote ID 1
    var quote1 = document.getElementById('quote1');
    quote1.addEventListener('mouseup', function() {
        if (this.selectionStart != this.selectionEnd) {
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd);
            document.getElementById('output').value = selectedtext;
        };
    }, false);
    ////////////////////
    // Quote ID 2
    var quote2 = document.getElementById('quote2');
    quote2.addEventListener('mouseup', function() {
        if (this.selectionStart != this.selectionEnd) {
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd);
            document.getElementById('output').value = selectedtext;
        };
    }, false);
    [/code:1d8lj9gm]
    
    [url=https://dl.dropbox.com/s/odkbpuls3ajtsb6/selectCopy%20%5BPlayLive%5D.capx]Download[/url]
  • Nandynho run this copyPasteError.capx in Firefox & IE

    you will see:

    in chrome/chromium browsers there is no error..

    ok..

    this javascript code can can be placed in function

    function copyPaste(){
    var output = document.getElementById('output');
    var quote = document.getElementById('quote');
    quote.addEventListener('mouseup', function() {
        if (this.selectionStart != this.selectionEnd) {
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd);
            document.getElementById('output').value = selectedtext;
        };
    }, false);};[/code:saqcnpzg]
    and use Browser object to trigger..
    [img="http://lookpic.com/O/i2/1205/pP5ezBlT.png"]
    
    and this works Ok in all browsers,no error...but sometimes it's not so simple..
    
    so.. I expected in plugin action:
    [code:saqcnpzg]<script src="test.js"></script>[/code:saqcnpzg]
    [img="http://lookpic.com/O/i2/1302/TaUjltU7.png"]
    similar to[u] Import CSS file[/u]
  • korbaach in the Firefox preview I did not see any errors. Is your Firefox up to date?

    But anyway, he does not want two "selects"?

    [quote:3elh5dwo]

    New Version 1.162 (Nov 27, 2016)

    • [+] Include Javascript File

    Download - Capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great ! It works perfectly.

    Ultimate question

    Is it possible to retrieve the data in a Construct variable rather than in a text field?

    Thanks for your help

  • Return a variable to Construct 2 or the other way around?

    Capx

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