Announcement

Collapse
No announcement yet.

Variable created on OCST is not in token list in OSEL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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



    #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


      #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:

      https://www.miva.com/forums/forum/on...ep-not-working

      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: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #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


          #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