Source language: Translate to:

JavaScript - Multi-Line Strings

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

JavaScript - Multi-Line Strings

Postby AsleyCruz » Wed Apr 19, 2017 6:38 pm

Hi guys
Is there a way to get the value of an object InputText (text area)
which has multiples text lines (no single text line)?
I want to do this with JavaScript function.

Hope so boys!
Many thanks in advance 8)
AsleyCruz
Freelancer - Graphic & Type Designer

FREE NEOBOOK APPS: See Website

.
User avatar
AsleyCruz
 
Posts: 97
Joined: Fri Sep 16, 2011 2:12 pm

Re: JavaScript - Multi-Line Strings

Postby virger » Wed Apr 19, 2017 7:13 pm

Input TexArea, from NeoBook or Html ?
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 449
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: JavaScript - Multi-Line Strings

Postby AsleyCruz » Wed Apr 19, 2017 7:18 pm

From NeoBook Virger
I'm not using any HTML, just NB object
AsleyCruz
Freelancer - Graphic & Type Designer

FREE NEOBOOK APPS: See Website

.
User avatar
AsleyCruz
 
Posts: 97
Joined: Fri Sep 16, 2011 2:12 pm

Re: JavaScript - Multi-Line Strings

Postby virger » Thu Apr 20, 2017 8:08 am

Try this..
Code: Select all
NBW Publication Source File
(C)2016 NeoSoft Corp.
Title=Counter Lines
Author=GdoSan/Apr-2017
Language=US
NeoBookVer=5,80
ScreenColors=16777216
ScreenWidth=640
ScreenHeight=480
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=8
Name=Inf2
X=37
Y=238
W=169
H=25
Anchor=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 Word Wrap NO}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=12632256
FillPattern=1
TabOrder=10
ObjectType=8
Name=Inf1
X=39
Y=21
W=169
H=25
Anchor=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 Word Wrap YES}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=12632256
FillPattern=1
TabOrder=11
ObjectType=9
Name=EnTx1
X=36
Y=45
W=435
H=184
Anchor=0
Text=¶JavaScript - Multi-Line Strings¶¶Postby AsleyCruz » Wed Apr 19, 2017 6:38 pm¶Hi guys¶Is there a way to get the value of an object InputText (text area)¶which has multiples text lines (no single text line)?¶I want to do this with JavaScript function.¶¶Hope so boys!¶Many thanks in advance 8)¶AsleyCruz¶Freelancer - Graphic & Type Designer¶¶FREE NEOBOOK APPS: See Website
VarName=[Tx1]
Align=1
EditMultiLine=Yes
EditLen=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14743768
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=3
ObjectType=9
Name=EnTx2
X=36
Y=261
W=435
H=184
Anchor=0
Text=¶JavaScript - Multi-Line Strings¶¶Postby AsleyCruz » Wed Apr 19, 2017 6:38 pm¶Hi guys¶Is there a way to get the value of an object InputText (text area)¶which has multiples text lines (no single text line)?¶I want to do this with JavaScript function.¶¶Hope so boys!¶Many thanks in advance 8)¶AsleyCruz¶Freelancer - Graphic & Type Designer¶¶FREE NEOBOOK APPS: See Website
VarName=[Tx2]
Align=1
EditMultiLine=Yes
WordWrap=No
EditLen=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14739704
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=2
ObjectType=3
Name=Bt124
X=501
Y=83
W=120
H=60
Anchor=0
Text=With 124¶Tx1: [nLin1a]¶Tx2: [nLin2a]
Align=1
ImageStyle=0
ObjAction=strlen "[Tx1]" "[Ln1]"¶StrReplace "[Tx1]" "[#124]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF1]"¶math "[Ln1]-[LnF1]" "" "[nLin1a]"¶¶strlen "[Tx2]" "[Ln2]"¶StrReplace "[Tx2]" "[#124]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF2]"¶math "[Ln2]-[LnF2]" "" "[nLin2a]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=7
ObjectType=3
Name=Bt13
X=501
Y=146
W=120
H=60
Anchor=0
Text=With 13¶Tx1: [nLin1b]¶Tx2: [nLin2b]
Align=1
ImageStyle=0
ObjAction=strlen "[Tx1]" "[Ln1]"¶StrReplace "[Tx1]" "[#13]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF1]"¶math "[Ln1]-[LnF1]" "" "[nLin1b]"¶¶strlen "[Tx2]" "[Ln2]"¶StrReplace "[Tx2]" "[#13]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF2]"¶math "[Ln2]-[LnF2]" "" "[nLin2b]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=6
ObjectType=3
Name=Bt10
X=501
Y=209
W=120
H=60
Anchor=0
Text=With 10¶Tx1: [nLin1c]¶Tx2: [nLin2c]
Align=1
ImageStyle=0
ObjAction=strlen "[Tx1]" "[Ln1]"¶StrReplace "[Tx1]" "[#10]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF1]"¶math "[Ln1]-[LnF1]" "" "[nLin1c]"¶¶strlen "[Tx2]" "[Ln2]"¶StrReplace "[Tx2]" "[#10]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF2]"¶math "[Ln2]-[LnF2]" "" "[nLin2c]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=5
ObjectType=3
Name=Bt12
X=501
Y=273
W=120
H=60
Anchor=0
Text=With 12¶Tx1: [nLin1d]¶Tx2: [nLin2d]
Align=1
ImageStyle=0
ObjAction=strlen "[Tx1]" "[Ln1]"¶StrReplace "[Tx1]" "[#12]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF1]"¶math "[Ln1]-[LnF1]" "" "[nLin1d]"¶¶strlen "[Tx2]" "[Ln2]"¶StrReplace "[Tx2]" "[#12]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF2]"¶math "[Ln2]-[LnF2]" "" "[nLin2d]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=4
ObjectType=15
Name=Tm
X=607
Y=446
W=32
H=32
Anchor=0
AutoStart=No
Interval=200
ObjAction=strlen "[Tx1]" "[Ln1]"¶StrReplace "[Tx1]" "[#13]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF1]"¶math "[Ln1]-[LnF1]" "" "[nLin1t]"¶¶strlen "[Tx2]" "[Ln2]"¶StrReplace "[Tx2]" "[#13]" "" "[TxTmp]" ""¶strlen "[TxTmp]" "[LnF2]"¶math "[Ln2]-[LnF2]+1" "" "[nLin2t]"
ObjectType=3
Name=BtTimer
X=501
Y=338
W=120
H=60
Anchor=0
Text=Timer  With 13¶Tx1: [nLin1t]¶Tx2: [nLin2t]
Align=1
ImageStyle=0
ObjAction=timerstart "Tm" "200"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=9


Tko for ReadMe
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 449
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: JavaScript - Multi-Line Strings

Postby virger » Fri Apr 21, 2017 9:44 pm

I don't have permission to read "private emails" , use my public virger@hotmail.com, for your questions.
Thank you FOR README
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 449
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central


Return to NeoBook Functions - VBScript & JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest