@@ -219,7 +219,7 @@ public void SetWebFormsScript(string path, bool ReplaceIfExist = false)
219219
220220 var file = File . CreateText ( FilePath ) ;
221221
222- string FileContent = @"/* WebFormsJS - Providing Infrastructure For Web Controls In CodeBehind Framework Owned By Elanat (elanat.net) */
222+ string FileContent = @"/* WebFormsJS 1.2 - Providing Infrastructure For Web Controls In CodeBehind Framework Owned By Elanat (elanat.net) */
223223
224224/* Start Options */
225225
@@ -685,7 +685,7 @@ function cb_FormDataSerialize(form, TagSubmitName, TagSubmitValue, FormIsMultiPa
685685function cb_ExtractScriptTags(Html)
686686{
687687 var ScriptList = new Array();
688- const regex = /<script[^>]+>(. *?)<\/script>/gs ;
688+ const regex = /<script[^>]*>([\s\S] *?)<\/script>/g ;
689689 let match;
690690
691691 while ((match = regex.exec(Html)) !== null)
@@ -839,7 +839,7 @@ function cb_SetWebFormsValues(WebFormsValues, UsePostBack, WithoutWebFormsSectio
839839 var PreRunner = new Array();
840840 var FirstChar = WebFormsList[i].substring(0, 1);
841841 var PreRunnerIndexer = 0;
842- while ((FirstChar == '→ ') || (FirstChar == '↑ '))
842+ while ((FirstChar == ': ') || (FirstChar == '( '))
843843 {
844844 PreRunner[PreRunnerIndexer++] = WebFormsList[i].GetTextBefore("")"");
845845 WebFormsList[i] = WebFormsList[i].GetTextAfter("")"");
@@ -1681,13 +1681,13 @@ function cb_SetPreRunnerQueueForEval(PreRunner, ScriptValue)
16811681
16821682 switch (FirstChar)
16831683 {
1684- case ""↑ "":
1685- PeriodMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""↑ "")) * 1000;
1684+ case ""( "":
1685+ PeriodMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""( "")) * 1000;
16861686 PreRunner.shift();
16871687 setInterval(function () { cb_SetPreRunnerQueueForEval(PreRunner, ScriptValue); }, PeriodMiliSecond);
16881688 break;
1689- case ""→ "":
1690- DelayMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""→ "")) * 1000;
1689+ case "": "":
1690+ DelayMiliSecond = parseFloat(PreRunner[0].GetTextAfter("": "")) * 1000;
16911691 PreRunner.shift();
16921692 setTimeout(function () { cb_SetPreRunnerQueueForEval(PreRunner, ScriptValue); }, DelayMiliSecond);
16931693 }
@@ -1705,13 +1705,13 @@ function cb_SetPreRunnerQueueForSetValueToInput(PreRunner, ActionOperation, Acti
17051705
17061706 switch (FirstChar)
17071707 {
1708- case ""↑ "":
1709- PeriodMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""↑ "")) * 1000;
1708+ case ""( "":
1709+ PeriodMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""( "")) * 1000;
17101710 PreRunner.shift();
17111711 setInterval(function () { cb_SetPreRunnerQueueForSetValueToInput(PreRunner, ActionOperation, ActionFeature, ActionValue); }, PeriodMiliSecond);
17121712 break;
1713- case ""→ "":
1714- DelayMiliSecond = parseFloat(PreRunner[0].GetTextAfter(""→ "")) * 1000;
1713+ case "": "":
1714+ DelayMiliSecond = parseFloat(PreRunner[0].GetTextAfter("": "")) * 1000;
17151715 PreRunner.shift();
17161716 setTimeout(function () { cb_SetPreRunnerQueueForSetValueToInput(PreRunner, ActionOperation, ActionFeature, ActionValue); }, DelayMiliSecond);
17171717 }
0 commit comments