Solved

Popup modal box needs modification to adjust resizing

Posted on 2014-04-01
3
701 Views
Last Modified: 2014-04-01
Hello,

I have a modal box on a website that almost works.  However, it is not resizing properly.  The person who developed the overal modal plugin is using an open source modal javascript in his program.  But he doesn't know how to make the fix in the javascript portion.

It's easier to show the issue than to explain.  So here is a link to a test page with the popup window

Link to page with popup window

And attached is the javascript that needs to be tweaked.

The popup is activated on the website when you click on the top menu "LOGIN - MODAL TEST"

When you click on it you will see one thing which need to be fixed

The height and width need to be the size of the background image, which is 311px wide by 381px tall.

For some reason the box resizes to a smaller dimension.

I don't know much about javascript.  The good thing is the script seems to be very well commented, so a Javascript expert should hopefully know where to make the changes in the attached js file.

Note: I am also including a css file and a php file -- but the developer says the resizing "problem" is controlled by the js file.

Also: You'll the specific CSS for the background image is in the header of the page.  
  <style type="text/css">
#mbCenter {
    background: url("/Images/login_bg.png") no-repeat;
}
</style>

Open in new window

Note, any fixes can be hard coded -- if that's easier.  The modal is only going to be used for this one purpose.

Thanks for any help!

Rowby
mediaboxAdvBlack21.css
mediabox-ck.php
login-bg.png
mediaboxAdv.js
0
Comment
Question by:Rowby Goren
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 39969924
Inside "UpdatePanel1",

table has width = 260
and first td inside first tr has height = 150

remove that and you have to add some css class definitions like overflow : hidden
and you have to assign those fixed height and width to outer container of that popup.

Hope this helps you.
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39970099
Ah!  thanks!
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39970102
thanks for your quick response!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP warning 4 30
Wrapper for APPs 9 35
bootstrap footer centering and columns alignement 3 20
Testing a string condition in PHP 6 0
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now