Announcement

Collapse
No announcement yet.

delay and element from displaying

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

    delay and element from displaying

    I might need to delay the Add 2 Basket button from showing up on the page. Is there a way to do this?

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Hi Scott,

    Depending on what you are delaying for, you may be able to use JavaScript to either listen for something or set a timeout before revealing the button. If it is not a matter of show/hide, then maybe using JavaScript to add the button after your delay could work as well.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      It's the Iron and Wool RT. I'm already using some JQuery/JS to control the state of the button with product variants. But, the default is Add. We don't want to change that if we don't need to. Delaying the button render may be the optimal solution for this scenario. A show/hide could work I guess. Would be good enough to wait for a Document Ready and Show on a timer? Not sure how I would do that.

      Scott


      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        Code:
        $(document).ready(function() {
        $('#mybutton').hide().delay(3000).fadeIn(2200);
        });
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          I was able to get something similar working. This one looks like it will be a little cleaner though.

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment

          Working...
          X