<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to implement JS algorithm with JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599564#M80296</link>
    <description>&lt;P&gt;You should provide more background information if you expect any help here. So you have an algorithm coded in JavaScript? Have you learned JSL yet? What is the nature of the problem you have encountered so far?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 13:48:28 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2023-02-10T13:48:28Z</dc:date>
    <item>
      <title>How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598374#M80211</link>
      <description>&lt;P&gt;There is a website data request to download the need for dynamic verification, web page JS has a specific algorithm.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;function getRnd() {
    return parseInt(Math.random() * 10000) + "=" + parseInt(Math.random() * 10000)
}
//Returns a random number


function getRuntime() {
    var c = new Date();
    var b = "";
    var f = c.getFullYear();
    var h = c.getMonth() + 1;
    var g = c.getDate();
    var a = c.getHours();
    var d = c.getMinutes();
    var e = c.getSeconds();
    b = f + "-" + h + "-" + g + " " + a + ":" + d + ":" + e;
    return
//Returns a timestamp&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Its request parameter is&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;[{"ReqId":"1000","Market":"0","Sort":"zj08","CodeList":"","Desc":"1","Page":"1","PageSize":"100","Xgtj":"","Want":"hq00,hq01,zj00,zj01,zj02,zj03,zj04,zj05,zj06,zj07,zj08,zj09,zj10,zj11,zj12,zj13,zjn00,zjn01,zjn02","EXPTOKEN":"35de5f29c393b370e92a99c19ea2bb8f9a5d81e0296dedf6d952531a0982450e","modname":"mod_zjlx"}]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:37:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598374#M80211</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-06-08T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598378#M80212</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The token is dynamic, and the 32 bits in the figure are the real-time timestamp when the data is requested, which is calculated according to the above algorithm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="208160837.png" style="width: 388px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49916iEE0D2366B9AE3656/image-size/large?v=v2&amp;amp;px=999" role="button" title="208160837.png" alt="208160837.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to use JSL to achieve this algorithm, the final use of JSL can achieve the website data download.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 08:09:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598378#M80212</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-08T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598379#M80213</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b3313cca81a3f56de75d0e252dc3d17d	{~62~33~33~31~33~63~63~61~38~31~61~33~66~35~36~64~65~37~35~64~30~65~32~35~32~64~63~33~64~31~37~64};
b3313cca81a3f56dca5503f02eb3b23f	{~62~33~33~31~33~63~63~61~38~31~61~33~66~35~36~64~63~61~35~35~30~33~66~30~32~65~62~33~62~32~33~66};
54b0ea31266538a5ed4b311f78e45577	{~35~34~62~30~65~61~33~31~32~36~36~35~33~38~61~35~65~64~34~62~33~31~31~66~37~38~65~34~35~35~37~37};
54b0ea31266538a5dc3eb30831ba9a8e	{~35~34~62~30~65~61~33~31~32~36~36~35~33~38~61~35~64~63~33~65~62~33~30~38~33~31~62~61~39~61~38~65};
6f6513e99b16e00bd952531a0982450e	{~36~66~36~35~31~33~65~39~39~62~31~36~65~30~30~62~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};
230e438970e32162d952531a0982450e	{~32~33~30~65~34~33~38~39~37~30~65~33~32~31~36~32~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};
3a37657866190524d952531a0982450e	{~33~61~33~37~36~35~37~38~36~36~31~39~30~35~32~34~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};
762baf39305e1ed6d952531a0982450e	{~37~36~32~62~61~66~33~39~33~30~35~65~31~65~64~36~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};
16f080f9e5d542afd952531a0982450e	{~31~36~66~30~38~30~66~39~65~35~64~35~34~32~61~66~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};
478a2b0371d01b8cd952531a0982450e	{~34~37~38~61~32~62~30~33~37~31~64~30~31~62~38~63~64~39~35~32~35~33~31~61~30~39~38~32~34~35~30~65};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I collected the timestamp and its binary text for several different time request parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-08_16-18-45.png" style="width: 764px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49920i224E500F4F614F62/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-08_16-18-45.png" alt="2023-02-08_16-18-45.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I just don't know how to use JSL to do this algorithm.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Ask a JMP expert for help.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 08:19:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598379#M80213</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-08T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598381#M80214</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I'm trying to analyze it this way&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 08:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/598381#M80214</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-10T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599358#M80278</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Is there a function for JMP?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:26:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599358#M80278</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-10T00:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599564#M80296</link>
      <description>&lt;P&gt;You should provide more background information if you expect any help here. So you have an algorithm coded in JavaScript? Have you learned JSL yet? What is the nature of the problem you have encountered so far?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:48:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599564#M80296</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-02-10T13:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599852#M80326</link>
      <description>&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks Experts!&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, this is an HTTP download problem with JSL, and this algorithm only involves timestamp verification of request parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I JSL manual, can do normal HTTP using JSL download data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 23:56:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599852#M80326</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-10T23:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599920#M80335</link>
      <description>&lt;P&gt;JSL does offer wide range of different functions related to datetimes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1676103843909.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50028i7947EA02B0EBE7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1676103843909.png" alt="jthi_0-1676103843909.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and then maybe you can use character functions to build rest of your string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1676104099112.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50030i968F6EB141A088C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1676104099112.png" alt="jthi_2-1676104099112.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and HTTP Request functions to build your query&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1676104176093.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50031i0CD445738B4D0A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1676104176093.png" alt="jthi_3-1676104176093.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 08:29:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599920#M80335</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-02-11T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599925#M80337</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank jthi!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Still in the HTTP request time check problem, this parameter must be submitted at the time according to the above JS algorithm to successfully download the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;My complete download of the JSL code is pictured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-11_17-44-40.png" style="width: 774px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50032i68C4B69244DF01F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-11_17-44-40.png" alt="2023-02-11_17-44-40.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 09:53:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599925#M80337</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-11T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement JS algorithm with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599927#M80338</link>
      <description>&lt;P&gt;fiddler&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-11_17-55-12.png" style="width: 944px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50033iAF1E4D4ABC290925/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-11_17-55-12.png" alt="2023-02-11_17-55-12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Different time demands, to change only timestamp this part&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 10:01:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-implement-JS-algorithm-with-JSL/m-p/599927#M80338</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-11T10:01:15Z</dc:date>
    </item>
  </channel>
</rss>

