Variable created on OCST is not in token list in OSEL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wajake41
    Mega Mivite


    • Dec 2009
    • 2305

    #1

    Variable created on OCST is not in token list in OSEL

    I have a <input type=hidden id="quote_msg" element defined in OCST <form. This field is not in the token list on OSEL. What am I missing?

    Also I want to pause OSEL rendering for 10 seconds . I tried
    <mvt:assign name="g.sleep" value="10" />
    <mvt:do file="g.Module_Library_Utilities" name="l.success" value="Sleep(g.sleep)" />

    That doesn't pause the render of OSEL. Why?

    Cheers,
    Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


  • wajake41
    Mega Mivite


    • Dec 2009
    • 2305

    #2
    Attrmpted to pause OSEL render with this: miva_sleep( 10000 )
    <mvt:assign name="g.return_value" value="miva_sleep( msecs )" />
    Doesn't pause render Why?
    This is from Miva documentation according to EDGE copilot
    Last edited by wajake41; 08-10-24, 08:29 AM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment

    • lesliekirk
      Super Moderator











      • Aug 2008
      • 9308

      #3
      Originally posted by wajake41 View Post
      Attrmpted to pause OSEL render with this: miva_sleep( 10000 )
      <mvt:assign name="g.return_value" value="miva_sleep( msecs )" />
      Doesn't pause render Why?
      This is from Miva documentation according to EDGE copilot
      The Miva Chat assistant didn't find anything with "miva_sleep" in the Miva Docs. I also tried searching the Miva Developer Docs.

      Google search (not using any AI) found this page:

      miva_sleep is not evaluating. &lt;mvt:assign name=&quot;g.sleep_start&quot; value=&quot;s.dyn_time_t&quot; /&gt;sleep_start: &lt;mvt:eval expr=&quot;g.sleep_start&quot; /&gt;&lt;br&gt; &lt;mvt:assign name=&quot;g.has_sleep&quot; value=&quot;miva_sleep(500)&quot; /&gt;has_sleep: &lt;mvt:eval expr=&quot;g.has_sleep&quot;


      Try reaching out to alphabet
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: X | Facebook | Pinterest

      Comment

      • alphabet
        Mega Mivite





        • Aug 2006
        • 1160

        #4

        I have a <input type=hidden id="quote_msg" element defined in OCST <form. This field is not in the token list on OSEL. What am I missing?

        From the OCST page you need to give the hidden input a name and value:

        Code:
        <mvt:assign name="g.quote_msg" value="'this & that value?'" />
        
        <input type="hidden" id="quote_msg" name="quote_msg" value="&mvta:global:some_value;" />

        You should have the hidden input value attribute encoded. I used the & ? as an example to emphasize why.

        I find the async/await function with the submit eventListener on your OCST page an interesting option for PreAction.

        I haven't found any issues with the miva_sleep function which you may have been trying to use on the OSEL.

        This seems related to your other thread so I'll try to answer the page life cycle there.

        http://www.alphabetsigns.com/

        Comment

        • wajake41
          Mega Mivite


          • Dec 2009
          • 2305

          #5
          Thanks alpha: I remember now I think the <input needs a name. I think I only had an id for the element.
          Let me know if I'm incorrect.
          Sleep issue is no longer pertinent.
          Thanks to all,
          Larry
          Larry
          Luce Kanun Web Design
          www.facebook.com/wajake41
          www.plus.google.com/116415026668025242914/posts?hl=en


          Comment

          Working...
          X