Solved

Shadowbox script not resizing??

Posted on 2011-03-25
5
613 Views
Last Modified: 2013-11-19
Hi Folks,

I have an issue with my shadowbox script, it displays just fine but I am trying to use it for my callback script/form and am trying to get the background to resize to the same size but it won't and so my callback form is on a big white background. I followed the usage options on the shadowbox-js.com website but have still not managed to get it right?!

I have included the various file in the <head> section of the page. Please see the code I have attached. I have not modified the css file or .js file as provided in the shadowbox script.

Is there anyone that can help?!


<link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.css">
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
	skipsetup: true
});

window.onload = function() {

    // set up all anchor elements with a "callback" class to work with Shadowbox
    Shadowbox.setup("a.callbackform", {
        height: 410,
		width: 410
    });

};
</script>

Open in new window

0
Comment
Question by:ftg-web
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
Mark Gilbert earned 500 total points
ID: 35302875
Hi, A background can't really be resized. While you can resize windows (if they are not maximized), and while the body tags may be a block style they don't necessarily resize so I'm confused as to what you need to do.

Perhaps if your form was to be loaded via a popup window without scroll bars, and in a non-maximized state then the width and height would be predefined for the popup action, but then you could also send a resize to the window to resize it.

I hope this helps.
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question