Setting A Minimum Size For A Modal Dialog
Jun 27, 2004
I am using window.showModalDialog() to open a modal dialog window. I would like to set a minimum size for the window (width & height).
I set the following:
Code:
<body onresize="pageResize()">
...
</body>
In a javascript file I have:
Code:
function pageResize() {
var windowWidth = document.body.clientWidth;
var windowHeight = document.body.clientHeight;
if (windowWidth < 100) {
document.body.clientWidth = 100;
}
if (windowHeight < 100) {
document.body.clientHeight = 100;
}
}
I get an error saying: "Object doesn't support this action" for line settings:
Code:
document.body.clientWidth = 100;
Is there another way of doing that?
View 4 Replies
ADVERTISEMENT
Sep 10, 2009
I used the jquery modal dialog from the[url].... that is currently draggable from the title only. is there any way i can make
that draggable by inserting a div at the footer of the dialog or make it draggable from everywhere in the dialog.
View 4 Replies
View Related
Aug 12, 2011
I'm close, but the issue is that if the window is opened at a size that is SMALLER than the original image, it wont scale down to the smaller size until i first make the window bigger, THEN size it down smaller. The image itself is big (its fashion photography so it needs to be high res) and the js sets the minimum width at 1070. Id like to have the image as big as possible and then on page load automatically drop down to as low as 1070px if the window size is small. Here is the js:
[Code]...
View 2 Replies
View Related
Mar 19, 2009
I want to create/dislpay a modal dialog that contains no default title bar(ie., Web Page Dialog) displayed. Also in the modal dialog I would like to display a dynamic content retrieved from database, as a grid.I dont want to use window.open or showmodaldialog as they display default titles. And I need to do this in JSP.
View 1 Replies
View Related
Oct 4, 2011
For some time I'm using window.createPopup(), recently I noticed that It cannot be used in modal dialogs that are opened in IE8 protected mode,
So I was wondering is there still some way to make window.createPopup() work in the above situation,
View 2 Replies
View Related
Sep 10, 2004
Is there a way to have a link in a modal dialog window sent back to the modal dialog's opener? So far I've managed to get it to open a new page in the dialog window, and open a completely new window.
View 1 Replies
View Related
Apr 3, 2006
Is it possible to somehow do a POST to a modal dialog window (yes, i know it's IE only)?
View 1 Replies
View Related
Jul 23, 2010
I have a table with edit and delete buttons on each row, I have managed to get modal dialogs working with the following code, the links that invoke the dialog each have a unique ID like so:
<a href="#" id="1234" class="dialog_link">Link text 1</a>
<a href="#" id="5678" class="dialog_link">Link text 2</a>
When the dialog is closed I need to call a PHP script to actually do the delete bit and I am stuck on that!
$(function() {
$(".dialog_link").dialog("destroy");
$("#dialog-confirm").dialog({
autoOpen: false,
[Code].....
View 7 Replies
View Related
Dec 20, 2010
I have a div i would like to present and while it is presented i would like to disable everything else behind (like what modal dialog does). I'de like to write it myself and not use a plugin, is it hard to do?
View 1 Replies
View Related
May 12, 2010
I am new to JQuery and want to know how i can submit a form that is in a JQuery Dialog Modal Form. I have a button on my main page, which opens up a modal form, with a form inside. Here are 2 snippets from the code.
<script type="text/javascript">
$(function(){
// Dialog$('#dialog').dialog({
autoOpen: false,
width: 330,
buttons: {
"OK": function () {
alert("FORM SHOULD SUBMIT HERE");
},
"Cancel": function() {
$(this).dialog("close");
}}});
// Dialog Link
$('#dialog_link').click(function(){
$('#dialog').dialog('open');
return false;
});
//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);});
</script>
Code on the dialog.
<div id="dialog" title="Search by Job Number"><form action="SearchByJob.asp" method="post" name="JobForm">
<p>Enter Job Number:<input name="JobNumber" type="text" class="TextSmallBlack" id="JobNumber" size="30"></p><form>
</div>
How can I get the form to submit to the SearchByJob page?. If I put $("JobForm").submit() under the OK function, nothing happens.
View 2 Replies
View Related
Oct 19, 2010
I have very common Problem with myJavaScriptThat I have create on page that have one div that is when page load it is display none when i click on link then its html is showing in modal Dialog that i have made my own but on that modal i am not able to fire any event but when execute any without the modal dialog then its working
View 2 Replies
View Related
May 4, 2011
How can i set the background opacity of jquery dialog without setting modal:true?I need this possibility because i can not use modal:true (i am using forms inside the dialog box
View 2 Replies
View Related
Jun 11, 2010
at the moment I have intialised the modal-dialog box..
Code:
$(function(){
$("#dialog-modal").dialog({
height: 140,
[code]....
and I would like that box to open with an image (loading image) when the ajax is doing its thing.. and close the box after it finishes.. as you can see I have tried to do it but it doesnt seem to work.. (i tried it without $FUNCTION(){ } thing in the else statement so I tried adding function call..)
View 1 Replies
View Related
Aug 31, 2011
in a my page i have create che code for a modal dialog box in jquery code...
but this code doesn't work..why? i should open the box only with a click event for example?
View 2 Replies
View Related
Jan 6, 2011
I am using jquery to create a modal dialog. I am using the following code snippets.
[Code]...
View 9 Replies
View Related
Jun 14, 2010
New to JQuery, not new to JS or even ext/js. I need to know how to create a modal dialog box that appears when a user clicks a cell in a table. The modal dialog box should contain, the information in the table row.
If you have something quick and easy, perfect, otherwise, I was hoping you could answer a few questions:
Normally, in ext/js, I'd do something like setting a listener on the div containing the table, then use the js event object to get the row (it's parent), then get the row's children (each of the <TD>s) and walk through and update the form or whatever else I'm displaying.
Is this basically what I'd do here? What are the functions that would probably yield the most readable results (search, find, etc)? Should I/Do I need to install a jQuery extension, or does the base language support this functionality easily?
View 5 Replies
View Related
Apr 18, 2011
is there a way to get the modal dialog box to close by clicking on the background - .ui-widget-overlay? I tried
$('.ui-widget-overlay').click(function(){
$('#dialog').dialog('close');
});
but it didn't work.
View 2 Replies
View Related
Aug 2, 2009
I am creating an form dialog that will be slightly different for creating data than editing data. I'm pretty new to jquery, but I'm using the jqueryui and it seems to be working fine, but now I'm looking to change the labels of a couple of buttons and have one button available during editing (but not creating)....
View 1 Replies
View Related
Jan 17, 2011
I have created a modal dialog using Jquery and I am opening an aspx page inside the modal dialog. The code is as follows:
ASPX Page:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,
[Code].....
View 1 Replies
View Related
Apr 8, 2011
I'm going to preface this by saying I know next to nothing about implementing jquery. Thus far, I've just been very lucky and able to figure out a few things on my own.
I have a simple form on my site that, upon clicking "submit" calls a PHP file.
I'd like to have a modal dialog box open when you confirm submission(like this.... [URL] but can't understand how to target the submit button to make this happen.
[URL]
I already have jquery script on my page but dont know what to do from here.
View 18 Replies
View Related
Sep 28, 2009
I'm a developer located in Venezuela (latin america), and i have like 2 years using Jquery in every project that came to my hands. I have created a modal dialog inside a tab with a simple form that has a datepicker:
<div id="tabs-3" style="font-size:11px;">
<div style="padding-left:75%;">
<a href="javascript:void(0)"
[code]....
View 5 Replies
View Related
Jan 27, 2011
I am struggling to produce a script that will call ajax content intoa uimodal dialog every timea relevant link is clicked. I wish to use multiple links calling different ajax content into mutliple useuimodal dialogs from a single page
View 2 Replies
View Related
Jan 5, 2011
I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is:
$(document).ready(function () {
$("#addaccount").dialog({
height: 'auto',
width: 'auto',
[Code]....
Here I am opening a div tag inside a modal dialog. There is a form submit button. When I click the submit button the modal dialog closes and the page refreshes automatically.
View 2 Replies
View Related
May 27, 2011
I have a Google map (API v3) with one marker and infowindow which contains a link that I have placed in a modal dialog. The problem is that the link in the infowindow is not clickable, even though it reacts to mouse hover. If I remove 'modal: true' from my call to open the dialog, the link becomes clickable, and the new page is loaded. Is there a solution to this?
View 1 Replies
View Related
Sep 24, 2009
I wanted to resize the modal dialog based on the content of the modal dialog for that i used the following lines of code:
The 'document.body.scrollHeight' is not giving the exact height of the modal dialog bcos the button on the modal dialog are not completely visible to click for the user.
How to get the exact height of the modal dialog to resize it?
View 1 Replies
View Related
Sep 29, 2010
I am developing an application that is opened via a modal popup from another application that I do not have control over. In IE, the method of creating the popup that holds my application is window.showModalDialog. When I redirect the user via javascript with something as simple as, location.href='someURL'; another popup window is opened rather than just redirecting the browser. When a user is using anything other than IE, the window.open method is used and those browsers redirect within the same window appropriately.
[Code]...
View 2 Replies
View Related