Run JS from short field + button to long field

Discuss the word processor
Post Reply
User avatar
DynV
Posts: 196
Joined: Tue Apr 06, 2010 10:50 pm
Location: Montreal, Canada

Run JS from short field + button to long field

Post by DynV »

Since Web/HTML wasn’t in Applications, I submitted my question here in the hope it would either be moved to the right "place" or answered here.

I did menu > File > New > HTML Document. I inserted a script which yielded a dark green anchor, and inserted in it javascript password generator - Stack Overflow I then attempted to insert a variable which I couldn’t name but inserted a grey anchor which I attempted to type in it “length” but it was the default color and I expected it to have the background the same color as the anchor (stretching the anchor). I then inserted a short field, a button & a long field, which I named before creating the next one.

I then attempted to do the equivalent of an HTML onClick that somehow got the input of the short field as an argument for the script and get the result in the long field. I was not able to do so, actually I couldn’t even access the function as can be seen in
Password_generator_from_hajikelist-generate-Execute_action.png
What I have so far is the text of
Password_generator_from_hajikelist-01.odt
(17.09 KiB) Downloaded 95 times
since trying to upload it directly yielded
The extension html is not allowed.
The upload was rejected because the uploaded file was identified as a possible attack vector.
and changing the extension to .txt beforehand yielded
The upload was rejected because the uploaded file was identified as a possible attack vector.
Thank you kindly for your help
Je suis francophone.
User avatar
robleyd
Moderator
Posts: 5383
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Run JS from short field + button to long field

Post by robleyd »

Cross posted at AskLO where suggestions have been offered.

If you cross post, please let us know that you have done so, otherwise it leads to several discussions and a waste of time because several identical answers may be posted by different users.
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.2.4.3; SlackBuild for 25.2.4 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.
User avatar
DynV
Posts: 196
Joined: Tue Apr 06, 2010 10:50 pm
Location: Montreal, Canada

Re: Run JS from short field + button to long field

Post by DynV »

robleyd wrote:Cross posted at AskLO where suggestions have been offered.
Suggesting to only make elements using OO then use a text editor to do the rest is not much of a suggestion, hence why I asked here also.
Je suis francophone.
User avatar
robleyd
Moderator
Posts: 5383
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Run JS from short field + button to long field

Post by robleyd »

I referred to the suggestions made there so anyone here can know that they have been made and look at them; I make no assertion about the usefulness of the suggestions to you.
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.2.4.3; SlackBuild for 25.2.4 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.
Post Reply