Results 1 to 3 of 3

Thread: Drop-In inline box showing in https

  1. #1
    Join Date
    Jun 2012
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Drop-In inline box showing in https

    1) Script Title: Drop-in content box v2.0

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

    3) Describe problem: In the past I had an issue with the drop-in box showing once per http session on my site and then showing again when the server switched to secure (https). At the time I believe I was using an external file for the drop-in content. This issue was corrected with the following code
    Code:
    <script>
    if(location.protocol.indexOf('https') < 0){
    } </script>
    My site uses snippets that can be edited without recompiling all the templates when something is changed. For some reason I cannot get the snippet to load with an external file AND a delay on the box droping, so I'm now using an inline DIV to load the drop-in box information when the page loads and all works fine. That is until the server goes to https. Once the secure server loads the page the inline div is now visible in the footer, which is where I've placed it.

    I tried wrapping that same piece of code I showed above around the inline DIV but it still doen't solve the problem.

    Any suggestions?
    Here is the site
    http:toolnook.com

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,933
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Code:
    if(location.protocol.indexOf('https') < 0){
    var dropinbox2=new dropincontentbox({
    	source:'#reminder', //#id of DIV to show if defined inline
    	cssclass:'dropinbox dropinboxaltstyle drop-shadow lifted',
    	fx:'easeInExpo', //alternate drop animation keyword
    	pos:['center',-250], //custom position of drop in box
    	deferred:3, //show box 1 sec after page has loaded
    	freq:'session'
    })
    } else {
    	jQuery('head').append('<style>#reminder{display: none !important;}</style>');
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ProgramSupportHub (06-13-2013)

  4. #3
    Join Date
    Jun 2012
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thank you,
    As always you have helped me. Maybe one day I can return the favor with something.

Similar Threads

  1. Drop down/ Overlapping Content script and Inline Frames.
    By xxgattacaxx in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-23-2008, 03:20 PM
  2. Drop-Down Document Viewer II and https
    By JTR1104 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-16-2008, 07:26 PM
  3. IE + HTTPS + CSS Drop Down gives warning
    By sjbotha in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-23-2007, 05:04 AM
  4. Replies: 1
    Last Post: 07-03-2006, 07:18 AM
  5. Drop down menus appear behind inline frame
    By TomMonkey in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-16-2005, 10:07 AM

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
  •