Results 1 to 2 of 2

Thread: Expandable Sticky bar should stay open after reload

  1. #1
    Join Date
    Apr 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Expandable Sticky bar should stay open after reload

    1) Script Title: Expandable Sticky bar

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../stickybar.htm

    3) Describe problem: Hello, we use the script to generate leads on a page. So we use gravity forms in the sticky footer. The problem is, that if the visitor submits the form, the page reloads and so the sticky footer will be "closed". So the visitor doesn´t see either an error or the success.
    Is it possible to tell the sticky bar, that it should be always open until the visitor/user closes it manual?

    Thanks a lot. we love this scrupt. thank you so much therefor.

    best regards vervisio.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, try the below modified .js file, which adds the option:

    statecontrol: {initial: 'open', persist: true},

    to the initialization code (defined at the end of the .js file). With it, you can set the initial state of the panel when the page loads (either "open" or "close"), and also, whether the script to recall the last known state of the panel just before the page unloads or is reloaded. The below shows the complete initialization code with the new option above added in:


    Code:
    /////////////Initialization code://///////////////////////////
    
    //Usage: var unqiuevar=new expstickybar(setting)
    
    var mystickybar=new expstickybar({
    	id: "stickybar", //id of sticky bar DIV
    	position:'bottom', //'top' or 'bottom'
    	revealtype:'manual', //'mouseover' or 'manual'
    	peekamount:35, //number of pixels to reveal when sticky bar is closed,
    	statecontrol: {initial: 'open', persist: true},
    	externalcontent:'', //path to sticky bar content file on your server, or "" if content is defined inline on the page
    	speed:200 //duration of animation (in millisecs)
    })
    Attached Files Attached Files
    DD Admin

Similar Threads

  1. How to install Expandable Sticky Bar??
    By KageMao in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-03-2013, 03:35 PM
  2. Expandable Sticky Bar Error
    By muhipler in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 11-21-2011, 08:29 AM
  3. Expandable Sticky Bar on iPad
    By symbiose in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-27-2011, 04:10 PM
  4. Expandable Sticky Bar Query
    By srlagarto in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-21-2010, 12:32 PM
  5. Expandable Sticky Bar problem
    By Pete.H in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 12-07-2010, 03:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •