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 759575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:36:47+00:00 2026-05-14T15:36:47+00:00

I would like to know if it is possible to re-size and re-position a

  • 0

I would like to know if it is possible to re-size and re-position a greybox or shadowbox window to display in a certain div element?

I am creating a template for a wordpress site, and I am using the default calendar, but when you click on a date inside of the calendar, the default action is to open it up in a new window.

Would it be possible to mod greybox or shadowbox in such a way that when you click on a date, the box opens up over the calendar displaying the contents in it, instead of a new page?

Or is there another way of achieving the desired result, maybe with jQuery or Javascript?

Any help would be greatly appreciated, thanx in advance!

  • 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-05-14T15:36:47+00:00Added an answer on May 14, 2026 at 3:36 pm

    jQuery UI has a widget called Dialog that can achieve your result. You could use it like this:

    $(document).ready( function() {
    
        // This will initialize the dialog box and hide it by default.
        // You can find a list of most options here: http://docs.jquery.com/UI/Dialog
        $("#dialog").dialog({
            autoOpen: false,
            modal : true,
        });
    
        // This will select the links like you specified
        $('#wp-calendar a').click( function(e) {
            e.preventDefault() // Disable the link from going to a new page
            var url = $(this).attr("href"); // Pull the HRef for the link for making the AJAX request
    
            // This will make an AJAX request and put the result in the dialog.
            $("#dialog").empty().load(url, function() {
    
                // This is the callback for when the AJAX request finishes
                // All it does it open the dialog, which now has data in it
                $("#dialog").dialog("open");
            });
        });
    });
    

    Note: You’d need to install jQuery UI for this, and you’ll probably want to read up on Dialog here. You’ll need to take more steps if you’d want this to degrade gracefully, and depending on your markup. If you could post a snippet of a “day” on the calendar, I can try to tailor it to your needs.


    Edit: Lets say that the file that return the rendered page for the event is “/ajax/event.php?id=123”, you’d first want to prevent the link’s default behavior (of navigating to a new page); then you’d want to use jQuery’s load function to load an assembled URL’s data into the dialog; once that request completes, you’d want to open the dialog. I’ve edited to code to do so, and it will degrade gracefully for user that don’t have JavaScript enabled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if it is possible to get the x-value position
I would like to know if it's possible to set the size of VARCHAR
I would like to know if it is possible to calculate the screen size
I would like to know how is possible to read a file placed in
I would like to know if its possible to write a nested select statment?
I would like to know if its possible to clear the current information stored
I would like to know is it possible to add css to one of
Hi I would like to know if its possible to do something similar to
I would like to know how or if it is possible to use selectors
I would like to know if the following is possible in any of the

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.