christ59's Recent Forum Activity

  • Hello again

    I still have a problem (I did some research but I'm lost!)

    I can not retrieve the selection of the text field "Plugin_2" "quote2" which is formatted. It works with "Plugin_1" "quote1" but there is no formatting on the text.

    Thank you for your help.

    Sample : drive.google.com/open

  • I have a text string and I need to be able to replace a character at a certain position.

    I've been searching for a solution to this to no avail. Is there any command to do this?

    Thank you very much for your help.

    Hello.

    I need to do that too, but I can not get away with the Regex. Did you find the solution?

    Thanks

  • Thank you but this is not what I'm looking for if I replace the phrase "Hello World, this is the world" I get "Hello Wild, this is the wild" but i want "Hello Wild, this is the world".

    That's why I want the start and end positions or start and the number of characters selected.

  • Hello.

    I have a sentence "Hello World!".

    I would like to replace the characters in position 7 to 10 (that is orld) in my sentence by "ild".

    We would get "Hello Wild!".

    Anyone know how?

    Thank you.

  • 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

  • >

    > 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

  • Great!

    Everything works very well!

    Thank you again for your help.

  • 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.

  • Great!

    Thanks

  • 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.

  • Hello.

    "Font size" and "auto font size" do not work together.

    Let me explain.

    When I configure "auto font size" to "no", my text is the correct size but when I resize the browser window, the text does not resize. So I put "auto font size" to "yes" but the text is not the right size. It is too small (but it resizes!).

    How to have the largest text resizes?

    Sorry for my bad English

    Thanks

  • Hello.

    I use the plugin but nothing happens. The plugin is loaded by construct but the function is not read.

    Any ideas?

    Is it possible to have an example to download?

    Thank you.

    It's ok... need () after name of function.

christ59's avatar

christ59

Member since 27 Jan, 2014

None one is following christ59 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies