Thanks ahoben :) Figured it out by myself. Your way looks great too though! The possibilities of this extended textfield are awesome
Best regards
Nupsi
Thanks ahoben :) Figured it out by myself. Your way looks great too though! The possibilities of this extended textfield are awesome
Best regards
Nupsi
Hi again,
I noticed that the editable textfield only caches the entered data when the enter-button was pressed, but not when you go on with the mouse to another editable textfield. Is this somehow possible or could you add such a behavior to the plugin, ahoeben? That would be awesome
Thanks again for such an incredible plugin
Nupsi
Sorry, I don't understand what you mean by "cache" in this context
Hi Ahoeben,
ok, let me try to explain. When I make the texfield editable and enter something into this textfield then this data will be stored into the plugins text-tag. But this happens only if the enter-key was pressed.
And if I create two editable textfields and enter something to the first textfield but DON'T press the enter-key and just cklick on the second textfield with the mouse, then the entered data in the first textfield is not stored!
Sorry, it's a little hard to explain better
I see. Could you check if the contents of the .html attribute changes appropriately without pressing return? If so I know how/where to fix the problem.
PS: please call me Aldo
Hi Aldo,
yes, it looks like it stores the entered text in the html-attribute. But it look a little weird to me?!
This is what a trace returns before I enter anything (that´s the correct start-html attribute)
INFO: text=[p]Eingabe[/p]
And this is what a trace returns after entering the number 120 without pressing enter but clicking on the next textfield:
INFO: text=<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="15" COLOR="#000000" LETTERSPACING="0" KERNING="0">120</FONT></P>
Maybe thats even how it should look like, because it´s the same after entering 120 and pressing enter
Thanks and best regards
Nupsi
Could you try this version?
https://github.com/fieldOfView/kr…ex.swf?raw=true
Hi Aldo,
nope - it´s not working :( When I enter something in textfield 1 and then click on textfield 2 the "onsubmit-event" does not even start. I put a trace inside the onsubmit-tag to control that. So it´s still the same. The onsubmit is only activated if I press the enter-key.
Hopefully you have another idea
Best regards
Nupsi
P.S.: I did try it with IE,FF and Safari. Of course after I flushed the browser-cache
"onsubmit" is not meant to fire when the textfield looses focus. I could add another event "onblur" that you could use for this purpose.
The thing I fixed is that the .text property should now update when the content of the textfield is changed.
Ah ok, I understand. Then it should now be possible to create a custom onsubmit-event inside the onclick-tag of each textfield :) A special event for that would still be great though and would make this plugin "legen.....wait for it....dary"
Thanks for your help, Aldo! It means a lot to me
Hi Aldo,
it´s kinda working, but buggy and strange. I found out that the onclick-tag of the textfieldex-plugin is fired twice?! If I put the following code inside the plugin:
set(plugin[textfield_1].onclick,trace('textfield_1 clicked',));
krpano returns this if I click the textfield once
INFO: textfield_1 clicked
INFO: textfield_1 clicked
This seems to be not right :(
Thanks and best regards
Nupsi
How does one change focus to another extended textfield input? I'd like the onsubmit or keybinding to change to the next inputfield.
I was´nt able to find a proper solution for that, Sacha. It´s possible to change the focus to another ext.textfield, but this way the entered data wont be stored Right now I´m using a "Press Enter"-Popup to make sure the user presses enter and the entered data will be stored. Not nice, but useable until Aldo managed to fix this
I gave up and switched to a normal html form and everything has an intuitive UI again..
The killer problem I had was that the text changes some how..
so that the unformated .text value isn't able to be matched against.
Inputing "test"
layer[input].text == "test" fails..
not sure if there's some EOL missing or added or what.
Inputing "test"
layer[input].text == "test" fails..
not sure if there's some EOL missing or added or what.
Yes, that's probably it. If you have some time, could you check if it matters whether you set multiline to true or false?
multiline wasnt set.
Ah multiline is default true.. so EOL is missing unless you set it to false.
I wonder how you txtadd that back. Any ideas?
Maybe on multiline it should always be added at the end anyway or in the text variable
I have 2 editable textfieldex with similar y value. I can only edit the one on the left.
Hello! Prompt novice how to make a window enter and verify the password, using Textfield . I want to make the transition to the next panorama user password must be entered. Maybe somebody has already done so and has a solution? I'm not good at programming and code
hi boys,
I have automated the scrollbar text for those just beginning, Greetings I hope you find it useful
needs to be more polished, add text and drag mouse wheel support
maybe someone can do it I will post an updated version
regards
Don’t have an account yet? Register yourself now and be a part of our community!