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
    What help do you need today!
    Interactive Design Solutions http://www.southbound.com
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    My T-shirt Collection is mostly MivaCon T-shirts!!
    Competitive Rates, Popular Modules, and Integrations:
    Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

    #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

    Holistic 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


      What help do you need today!
      Interactive Design Solutions http://www.southbound.com
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      My T-shirt Collection is mostly MivaCon T-shirts!!
      Competitive Rates, Popular Modules, and Integrations:
      Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

      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
          What help do you need today!
          Interactive Design Solutions http://www.southbound.com
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          My T-shirt Collection is mostly MivaCon T-shirts!!
          Competitive Rates, Popular Modules, and Integrations:
          Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

          Comment

          Working...
          X