473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

modal-message

Hello.

I use script modal-message from

http://www.dhtmlgoodies.com/index.ht...=modal-message

It works good but i have one problem.

I want it show some html content. I set width and height for dialog.
But some times html content height is more then dialo height and in
this case content goes over dialog.

Example here:

http://gelembjuk.com/t/sc.jpg

How to force modal-dialog to be dynamic resizeble?
Aug 14 '08 #1
5 1551
Try using this ... http://cylo.co.uk/modalDialog.html

Let me know if it works for you.

Graham
Aug 14 '08 #2
On Aug 14, 6:29*pm, Laser Lips <loudsphi...@gmail.comwrote:
Try using this ...http://cylo.co.uk/modalDialog.html

Let me know if it works for you.
It is excellent. But i can't use this script instead of modal-
message.js. Because it is built in live big live site.

Can you say what place of code in script you recommended is
responsible for height resizing? Is this some CSS option? Or it must
be jacascript code?
Aug 15 '08 #3
The documentation for the modal script your using says you can set the
width and height with setSize().

e.g. messageObj.setSize(500,300);

You you will need to work out how big your content is going to be.

If you know how big your conent is each time you open a dialog then
thast ok, but if you don't, youll have to work it out with code.
If I need to know how big a div is going to be before I put it on the
page what I do is build up the html in javascript, add it to the page
using document.appenChild(), get it's offsetWidtha and height, then
remove it again. Then I can use this width and height for other
computations, which in your case would be to open the dialog.

Good luck.
http://cylo.co.uk
Aug 18 '08 #4
On 18 ΑΧΗ, 13:01, Laser Lips <loudsphi...@gmail.comwrote:
If you know how big your conent is each time you open a dialog then
thast ok, but if you don't, youll have to work it out with code.
If I need to know how big a div is going to be before I put it on the
page what I do is build up the html in javascript, add it to the page
using document.appenChild(), get it's offsetWidtha and height, then
remove it again. šThen I can use this width and height for other
computations, which in your case would be to open the dialog.
Thanks.
I used document.appenChild() and offsetHeight and it works.
The only thing that is strainge offsetHeight returns number that is
less then real size. I must to append 10% of that number to get
correct data.

Sep 12 '08 #5
Gelembjuk wrote:
I used document.appenChild() and offsetHeight and it works.
The only thing that is strainge offsetHeight returns number that is
less then real size. I must to append 10% of that number to get
correct data.
Works as designed. See e.g. the `offsetHeight' property definition in the
MSDN Library. You may also want to make sure that your document is not
rendered in Quirks/Compatibility Mode.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Sep 13 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Lim | last post by:
Here is the problem: I have written a non-modal frame class in Java for displaying help text when a user is using an application. It works as desired in that if the user selects "help" again,...
2
by: Joe | last post by:
Is there a way to enable scrolling in a modal dialog box even if the call to open the modal has "scroll:no"? I am looking to dynamically size the modal dialog box for starters and if the modal is...
1
by: gopal srinivasan | last post by:
I need to know how to close a parent modal window when child modal window opens, also i need to know the syntax for writing document on the modal window on the fly, like what we do in case of...
2
by: cassidyc | last post by:
Hi, I was wondering if anyone has come accross this issue? And if they have any solutions I have that can create new copies of itself Form1 as = new form1(); af.show(); This form can also...
5
by: CaptainZ | last post by:
When I open a modal window using 'showModalDialog' from an aspx page it works fine. But when I then perform a submit in my modal window to get data from the server, instead of the page returning to...
2
by: Mike | last post by:
Hi, I'm having a problem with modal forms on windows. I've written a very short test program, with a main window and a form called from the main window. The form is set to modal with...
4
by: John Kotuby | last post by:
Hi all... I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said...
10
by: bern11 | last post by:
If Form1 opens Form2 modally, how do I capture clicks on Form1 when Form2 is open? I want to click on Form1 and read the mouse co-ordinates into Form2. Since Form2 is open modally, Form1...
4
by: =?Utf-8?B?Z2luYWNyZXNzZQ==?= | last post by:
I am trying to close/dispose multiple instances of a form but because they are modal and hidden, they do not show up in My.Application.OpenForms. They must be modal, so making them modeless is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.