Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:47:18+00:00 2026-06-03T21:47:18+00:00

Me again. I was able to set cookies for my FancyBox using this bit

  • 0

Me again.

I was able to set cookies for my FancyBox using this bit of code from another question on Stack Overflow:

$(document).ready(function(){

var check_cookie = $.cookie('the_cookie');

if(check_cookie == null){

    $.fancybox('<h2>Some content</h2>', {
        'onComplete' : function() {
                $.cookie('the_cookie', 'the_value');
        }
    });
}
});

This may be a silly question, but now my problem is that I’ve lost the formatting for my FancyBox. Can someone please tell me where I should put this code so that I can have my cookies and formatting?

{
   'autoDimensions'    : false,
   'width'             : 450,
   'height'            : 190,
   'transitionIn'      : 'none',
   'transitionOut'     : 'none'
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:47:19+00:00Added an answer on June 3, 2026 at 9:47 pm
    $(document).ready(function(){
    
    var check_cookie = $.cookie('the_cookie');
    
    if(check_cookie == null){
    
        $.fancybox('<h2>Some content</h2>', {
            'autoDimensions'    : false,
            'width'             : 450,
            'height'            : 190,
            'transitionIn'      : 'none',
            'transitionOut'     : 'none',
            'onComplete' : function() {
                    $.cookie('the_cookie', 'the_value');
            }
        });
    }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the code from this question to autoplay an iframe embedded Youtube video
I've got this bit of code: Response.AddHeader(Content-type, application/vnd.openxmlformats-officedocument.wordprocessingml.document); Response.AppendHeader(Content-disposition, attachment; filename=Bio.docx); Response.BinaryWrite(lawyerBio.MakeDoc()); It works
Based on help from this site, I was able to set up a display
all, me again with another noob Cocos2d iphone question. I've set my Director to
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
Again a SED question from me :) So, same as last time, I'm wrestling
Posting this again as I've made some updates. I'm trying to group a set
Again with the soap. I am trying to build a header using soap4r that
Again I'm moving from Xcode 3 to 4 and finding that some things are
Once again a question about the garbage collector in actionscript-3: If I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.