Opening A Popup Then Preventing It From Being Resized?

Jun 30, 2011

I am trying to make a popup window with Javascript that will let a user choose either a Yes or No button and then be sent to a page after that.I really do not want this popup to be resizable. I have read that is not really possible in current browsers, but that you can prevent it form happening with resizeTo().I am not sure I'm doing this right though:

<input type='button' value="DELETE GROUP" onclick="javascript:Popup('deleteGroupWarning.html')" />
var stile = "top=10, left=10, width=300, height=300 status=no, menubar=no, toolbar=no

[code]....

View 1 Replies


ADVERTISEMENT

Preventing Users From Opening Index Directly?

May 18, 2010

i m working on a website. in which i m using a page which calls on index.php after that web address is called. as it has JS function which make index page open in popup. what i wanna do is now is that if someone (as many of us know root page 90% is index.php), if anyone enter index page directly. JS should check if that person came from redirect.php or not. if not, he will have some sort of error msg.

View 1 Replies View Related

JQuery :: Preventing A User From Opening Up 6 Forms At Once On Click

Jun 5, 2009

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=372450018-05062009>I have 6

links , each loads a form into its respective div. How can I disable the links if one of the 6 is clicked preventing a user from opening up 6 forms at

[Code]...

View 5 Replies View Related

Opening Popup Window By Avoiding Popup Blocker?

Sep 22, 2010

In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?

View 1 Replies View Related

Closing A Popup Before Opening Another

Jul 23, 2005

I need some help with closing a popup window. I'm making an online portfolio,
that has one base page with text and thumbnails. When a user clicks on a thumb,
a new window opens containing a larger image and a caption (each contained on a
separate htm document). I do this with a function in the header script as follows:

var picpage=" ";
var params=" ";

function fullpicwin(picpage,params)
{
window.status="Opening picture... please wait";
window.open(picpage,'fullpic',params)
}

picpage (the name of the htm file), and params (window size, etc.) are passed
from the click code by each thumb. Each popup is sized differently, of course,
based on the side of the larger photo. All controls, etc., in the popup are
turned off. The user can click the "x" box or a form button at the bottom of
the popup to close the window.

All this works very nicely... EXCEPT...

The user can move the mouse back to the main page and open ANOTHER popup by
clicking on another thumb BEFORE closing the existing popup. The problem is the
2nd popup retains the size of the first, so of course the photo may be blocked
by the borders, etc.

What I want to do is force the closing of the first popup if the user tries to
open a 2nd and so on. There is no reason to have more than one large photo
showing at the same time.

I thought I could put some code in the function that checks for the existence
of a window named "fullpic", and if it's there, closes it first, then opens
another. But I can't seem to get the syntax right.

View 1 Replies View Related

Opening Javascript PopUp From Within PHP Code

Jul 23, 2005

I've been trying to do this for days without success. Is there a way to open a popup window from within the php code? Example:

if (some_condition) {
open a popup page and load a file in it
break;
}

View 2 Replies View Related

Fade Out Page When Opening Popup?

Feb 26, 2009

I have a page where I open a popup (which is really just displaying a hidden div) Is there away I can fade the page while the popup is open?

View 2 Replies View Related

Opening Popup Navigates Away From Website

May 17, 2010

I am somewhat new to JavaScript and am having a small problem. I am building an experimental website that contains music. It's called url removed. To navigate around the website there is a graphic of a piano keyboard and if you click on an individual key you can go to "Home", "Recordings", "Contact", or "Jukebox". My problem is with the key labeled "Jukebox". I have the graphic set up using an Area Map. When you click on the area that says "Jukebox", it is supposed to open a small pop up window with the jukebox of tunes. It works great but it navigates away from the website and the larger window behind the jukebox is just a plain white window and says [object] on it. Here is the area map code I am using containing the javascript:

[Code]...

View 3 Replies View Related

Closing One Popup Window And Opening Another

May 21, 2010

I am calling a Java Script function on the button click of a pop up window (ASP.net). The function does the following:
1. Close the Popup window
2. Call JS function on the Parent window
3. Try to open another popup
I am able to close the popup window and call the js function on the parent window but I am not able to open the new window.

CODE:
window.close();
window.opener.clearfields();
window.open('MyExcel.xls');
I need to perform all these in one JS function.

View 2 Replies View Related

PopUp Menu Opening Into An Inline Frame, How?

Jul 20, 2005

I'd like my javascript popup menu link to target the inline frame in the
middle of my page, but I'm unsure how to do this. The inline frame is named
"mainframe". Here is the code, with the line to the link denoted with **:

if (window.mm_menu_0127203047_0) return;
window.mm_menu_0127203047_0 = new Menu("root",140,18,"Tahoma, Arial,
Helvetica,
sans-serif",10,"#ffffff","#ffffff","#ffffff","#243f6f","left","middle",3,0,5
00,-5,7,true,true,true,0,false,true);

**
mm_menu_0127203047_0.addMenuItem("::&nbsp;Level&nbsp;Design&nbsp;Screens","l
ocation='leveldesignscreens.html'");

mm_menu_0127203047_0.bgImageUp="images/mmmenu1_140x18_up.gif";
mm_menu_0127203047_0.bgImageOver="images/mmmenu1_140x18_over.gif";
mm_menu_0127203047_0.hideOnMouseOut=true;
mm_menu_0127203047_0.bgColor='#555555'

View 1 Replies View Related

JQuery :: Opening A Popup From A Existing Page?

Dec 8, 2010

I have two questions. I have a html page has two "data-role=page" objects. When I open that page by clicking on a link, the second page is displayed rather than the first. If I add "rel=external" in the link, the first page shows up but the back button is missing. Is there any way to ensure the first page shows up and the back button is visible.

The second, how can I call $("#pageObject").dialog(). I tried this on a link, nothing happens. Can't I use I<a href="#pageObject" data-rel="dialog">Open dialog</a>. This does not seem to work for internal pages. Is there a method to open internal pages as popups?

View 2 Replies View Related

Auto-opening Popup Script When The Window Is Minimized

Jun 13, 2007

I have a very simple PHP script that is reading a plain-text CSV file
and parses it out into into a HTML table to display the data. No
biggie.

What I want to do is while keeping the browser window for that page
open and minimized, i want to be able to maximize the window when the
text file has been update. This is a small script that is being used
for some dispatchers at a taxi company and the popup window is
supposed to be their list of customers to pickup. The company has
several dispatchers who are constantly updating a proprietary system,
and this system has a special program that spits out the data for
customers who need to be picked up. Every dispatcher has a link to
this PHP webpage to display the next available pickups. The only
problem is that they want to be able to minimize the browser window
and have it open automatically when a name has either been added or
removed from the pickup list.

Is is possible to integrate a javascript function to do this with PHP?

View 3 Replies View Related

Opening Popup Window When Thumbnail Picture Clicked

Aug 13, 2009

So I wrote some javascript to open a popup window when the thumbnail pictures are clicked. Everything works fine except for two minor details I would like to fix.
1. The images are distorted in the popup window.
2. I want to be able to resize the window and have the picture inside resize along with it.

<script type="text/javascript">
function enlargeImage(Url,width,height){
var enlarged = new Image();
enlarged.src = ''+Url+''
var prevW = window.open("","newWin","width="+width+",height="+height+",
top=140,left=200,scrollbars=yes,resizable=yes");
prevW.document.write('<html><head><title>Preview Image</title><style type="text/css">body{margin: 0px; padding:0px;}
img{margin: 0px; padding: 0px;}</style></head><body>
<img alt="Click to Close" title="Click to Close"
style="border: 0px; padding: 0px;"
src="'+Url+'" width="'+width+ '" height="'+height+'"
onclick="java script:window.close();" /></body></html>');
}
</script>

And here's a copy of one of the pictures I have in my table (the code I mean)
<TD rowspan=1 style="width: 104px"><center><a href="java script:">
<img alt="Click to Enlarge" title="Click to Enlarge" src="landscape/landscape/images/archery.jpg" width="120px" height="100px" style="border: 0px" onclick="enlargeImage(this.src,'800','600');" >
</a></center></TD>

View 1 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

Dynamic Resized Slideshow

Dec 18, 2005

This code dynamically resizes all the images in the slideshow to a static width and height, specified in the Customization section.

Other customization variables are available, as well.

It's useful for when your images are larger than 640x480 and manually resizing them is impractical, and especially if many of your users are on dial-up connections and the delay in preloading/loading "large" or many images would be annoying.

The slide images are displayed in a new, reused, centered window, just large enough to hold the image.

The code uses consecutive integers for the slide image file names, beginning with 1.jpg, etc.
You are not required to code each file by name, just rename your images and set the imgCount variable, in the Customization section, to the number of images in the show.

A .txt file is attached, which if saved as a .bat file, (remember those?), and when executed in folder containing .jpg files, will rename up to 100 of them to the required convention of consecutive integers, so long as the existing file names are at least three characters long.

The code generates a set of "controls," consisting of a Start/Resume button, Pause button, Cancel button, and a set of radio buttons for the user to dynamically select the slide interval from 2 to 10 seconds.


<html>
<head>
<script type="text/javascript">

// -------- Begin Resized Slideshow -------------

//--- Customization ------
var imgCount = 10; // number of images in the show
var textColor = "Blue";
var backColor = "#F0F8FF";
var btnColor = "lightblue"
var dispW = 400; // this is the width for the slide image
var dispH = 300; // this is its height
var imgPath = "Images/"; // use "" if the images are in the current directory
// --- End Customization -------

// --- Do not edit below this line -------
var useWidth = screen.width*.85;
var prevActive = "i5";
var leftStr = Math.round((screen.width-useWidth-36)/2);
var absStr = "Position:Absolute;Bottom:10px;Left:"+leftStr+"";
var userDelay = 0;
var tick = 0;
var count = 0;
var wStr = 0;
var hStr = 0;
var tStr = 0;
var lStr = 0;
var IMGStr = "";
var miscFlag = false;
var cancelFlag = false;
var pauseFlag = false;
var slideWindow = "";

function manageBtns(n){

if (n == 1) //start
{
document.getElementById('startBtn').disabled = true;
document.getElementById('pauseBtn').disabled = false;
document.getElementById('cancelBtn').disabled = false;
document.getElementById('startBtn').value = "Start Slideshow"
}
if (n == 2) //paused
{
document.getElementById('startBtn').disabled = false;
document.getElementById('pauseBtn').disabled = true;
document.getElementById('cancelBtn').disable = false;
document.getElementById('startBtn').value = "Resume Slideshow"
}
if (n == 3) //canceled
{
document.getElementById('startBtn').disabled = false;
document.getElementById('pauseBtn').disabled = true;
document.getElementById('cancelBtn').disabled = true;
document.getElementById('startBtn').value = "Start Slideshow"
}
if (n == 4) // done
{
document.getElementById('startBtn').disabled = false;
document.getElementById('pauseBtn').disabled = true;
document.getElementById('cancelBtn').disabled = true;
document.getElementById('startBtn').value = "Start Slideshow"
}
}

function cancelShow(){

count = imgCount;
cancelFlag = true;
slideWindow.focus();
self.status = "One Moment...";
tick = 0;
if (miscFlag == true){runShow()}
}

function pauseShow(){

slideWindow.focus();
tick = 0;
pauseFlag = true;
miscFlag = true;
}

function waitLoadImage(){

if (slideWindow.document.images[0].complete)
{
if (count < imgCount){countDown()}
else if (cancelFlag == true){runShow()}
}
else {setTimeout("waitLoadImage()",500)}
}

function displayIt(){

if(slideWindow == ""){slideWindow = window.open("","SlideShow","toolbar=0,status=1,"+tStr+","+lStr+","+wStr+","+hStr+"")};
slideWindow.document.open();
slideWindow.document.write(IMGStr);
slideWindow.document.close();
slideWindow.status = "This is " + count + " of " +imgCount;
slideWindow.focus();
IMGStr = "";
waitLoadImage();
}

function getNextimage() {

document.getElementById('nullIMG').src = imgPath + count + ".jpg";
wStr = document.getElementById('nullIMG').width;
offsetW = wStr;
wStr = wStr+20;
wStr = "width="+wStr;
hStr = document.getElementById('nullIMG').height;
offsetH = hStr;
hStr = hStr+20;
hStr = "height="+hStr;
lStr = (screen.width-50-offsetW)/2;
lStr = "left="+lStr;
tStr = (screen.availHeight-90-offsetH)/2;
tStr = "top="+tStr;
IMGStr = document.getElementById('dispIMG').innerHTML;
displayIt();
}

function closeLastImage(){

if (slideWindow.document.images[0].complete)
{
if (cancelFlag == true){isDelay = 1000}
else {isDelay = userDelay*1000}
setTimeout("slideWindow.close();slideWindow=''",isDelay);
count = 0;
}
else {setTimeout("closeLastImage()",500)}
}

function countDown(){

if (tick > 0){self.status = tick}
if (tick == 0 && (pauseFlag == false && cancelFlag == false)){self.status = "Loading Next Image...";}
if (tick >= 0)
{
setTimeout("countDown()", 1000);
tick--
}
else {runShow()}
}

function runShow() {

manageBtns(1);
tick = userDelay-1;
if (count < imgCount && pauseFlag == false)
{
count++;
getNextimage();
miscFlag = false;
}
if (pauseFlag == true)
{
self.status="Slideshow Paused at Image "
+count + " of " +imgCount + "."
pauseFlag = false;
manageBtns(2);
}
if (count == imgCount && cancelFlag == false)
{
self.status = "Slideshow Is Complete."
manageBtns(4);
closeLastImage();
}
if (count == imgCount && cancelFlag == true)
{
self.status = "Slideshow is Canceled."
closeLastImage();
cancelFlag = false;
pauseFlag = false;
miscFlag = false;
manageBtns(3);
}
}

function updateInterval(Active) {

next = "i"+Active;
next = next.toString();
document.getElementById(prevActive).bgColor="#F0F8FF";
document.getElementById(next).bgColor="darkorange";
prevActive = next;
userDelay = Active;
tick = userDelay-1;
if (slideWindow != ""){slideWindow.focus()}
}

function buildSupport(){

var divStr = "<Div style='Position:Absolute;Top:-2000' id='dispIMG'><IMG Src='"+imgPath+"1.jpg' width="+dispW+" height="+dispH+" ID='nullIMG'></Div>"
document.write(divStr);
}

function buildBox(){

var styleStr = "<Style type='text/css'>.cDiv {"+absStr+";Height:54pt;Padding-Left:0px; Padding-Right:0px;Padding-Top:6px;Padding-Bottom:6px;Margin-Right:4px;Margin-Left:6px;Margin-Top:0px;Margin-Bottom:0px;Text-Indent:0px;Text-Align:None;width:"+useWidth+";Border-Top:#C0C0C0 1px solid;Border-Left:#C0C0C0 1px solid;Border-Bottom:Black 1px solid;Border-Right:Black 1px solid;background-color:"+backColor+";}.iBox {Line-Height:Normal;Font-Style:Normal;Letter-Spacing:normal;Font-Weight:normal;Text-Align:Center;Text-Decoration:none;Text-Indent:0px;Font-Family:Tahoma,Arial,Veranda;Font-Size:13pt;Color:"+textColor+";Background-Color:none;Border-Top:Black 1px Solid;Border-Bottom:Black 1px Solid;Border-Left:Black 1px Solid;Text-Transform:none;Padding-Left:5px;Padding-Right:3px;Padding-Top:2px;Padding-Bottom:2px;Margin-Left:0px;Margin-Right:0px;Margin-Top:0px;Margin-Bottom:0px;} .nBox {Line-Height:Normal;Font-Style:Normal;Letter-Spacing:normal;Font-Weight:normal;Text-Align:Center;Text-Decoration:none;Text-Indent:0px;Font-Family:Tahoma,Arial,Veranda;Font-Size:13pt;Color:"+textColor+";Background-Color:none;Border-Top:Black 1px Solid;Border-Bottom:Black 1px Solid;Border-Left:Black 1px Solid;Text-Transform:none;Padding-Left:0px;Padding-Right:5px;Padding-Top:2px;Padding-Bottom:2px;Margin-Left:0px;Margin-Right:0px;Margin-Top:0px;Margin-Bottom:0px;}.nxBox {Line-Height:Normal;Font-Style:Normal;Letter-Spacing:normal;Font-Weight:normal;Text-Align:Center;Text-Decoration:none;Text-Indent:0px;Font-Family:Tahoma,Arial,Veranda;Font-Size:13pt;Color:"+textColor+";Background-Color:none;Border-Top:Black 1px Solid;Border-Bottom:Black 1px Solid;Border-Left:Black 1px Solid;Border-Right:Black 1px Solid;Text-Transform:none;Padding-Left:0px;Padding-Right:5px;Padding-Top:2px;Padding-Bottom:2px;Margin-Left:0px;Margin-Right:0px;Margin-Top:0px;Margin-Bottom:0px;} .cBtns{Line-Height:Normal;Font-Style:Normal;Letter-Spacing:normal;Font-Weight:normal;Text-Align:Center;Text-Decoration:none;Text-Indent:0px;Font-Family:Tahoma,Arial,Veranda;Font-Size:13pt;Color:"+textColor+";Background-Color:"+btnColor+";Border-Right:Black 1px solid;Border-Top:White 1px Solid;Border-Left:White 1px Solid;Border-Bottom:Black 1px Solid;Cursor:Pointer;}</Style>";

var controlStr = "<Table cellspacing=&#390;'><TD class='iBox' bgColor='moccasin'>SlideShow Interval:<TD class=nBox id =i2><input type='radio'name='interval' onclick='updateInterval(2)'>2</TD><TD class=nBox id =i3><input type='radio'name='interval' onclick='updateInterval(3)'>3</TD><TD class=nBox id =i4><input type='radio'name='interval' onclick='updateInterval(4)'>4</TD><TD class=nBox id =i5 bgcolor='darkorange'><input type='radio' name='interval' checked onclick='updateInterval(5)'>5</TD><TD class=nBox id =i6><input type='radio'name='interval' onclick='updateInterval(6)'>6</TD><TD class=nBox id =i7><input type='radio' name='interval' onclick='updateInterval(7)'>7</TD><TD class=nBox id =i8><input type='radio'name='interval' onclick='updateInterval(8)'>8</TD><TD class=nBox id =i9><input type='radio' name='interval' onclick='updateInterval(9)'>9</TD><TD class=nxBox id =i10><input type='radio'name='interval' onclick='updateInterval(10)'>10</TD></Table><Table><TD><input type='button' id='startBtn' class='cBtns' value='Start Slideshow' onClick='runShow()'></TD><TD><input type='button' id='pauseBtn' class='cBtns' value='Pause Slideshow' onClick='pauseShow()'></TD><TD><input type='button' id='cancelBtn' class='cBtns' value='Cancel Slideshow' onClick='cancelShow()'></TD></Table>"

var tblStr = "<DIV id='isFloat' class='cDiv' align='center'>"+controlStr+"</DIV>"

document.write(styleStr);
document.write(tblStr);
}

function initControls(){

buildBox();
buildSupport();
updateInterval(5);
document.getElementById('pauseBtn').disabled = true;
document.getElementById('cancelBtn').disabled = true;
}

// ---- End Resized Slideshow ---------

</script>
</head>
<body>
<h3 align='center'>Resized Image Slideshow</h3>

<!-- Keep the following line as the LAST line in the BODY -->
<script type="text/javascript"> initControls()</script>
</body>
</html>

View 4 Replies View Related

Text Resized Event?

Jan 15, 2004

Is there any way I can call a javascript function when the user resizes his text in the browser?

View 2 Replies View Related

Add Script To Page That Has To Be Resized?

Mar 17, 2010

Is there a way to force a window to open in a predefined size by adding HTML or Javascript code on the page you want to be resized, not the page that has the link the takes you to the resized wondow. Theres a page that has a link on it that I need opened to a certain size and I don't have access to it, so what I can do is add a javascript to the page that the link is going to.

View 4 Replies View Related

JQuery :: Create A Panel That Can Be Resized ?

Oct 25, 2010

I am trying to create a panel that can be resized, its all working however if I resize the panel then try to resize the browser the panel doesn't resize to the browser width: [url]

View 2 Replies View Related

Detect If Browser Content Has Been Resized?

Jan 5, 2010

I have an accordion style navigation bar which works fine, except when the user enlarges the screen with, for example, Ctrl and Plus.You can see what I'm talking about here:http://www.ruhr-uni-bochum.de/igsn/example/Is there any way using JavaScript to detect when the user enlarges the screen?Is it even good style to do this?I've found the offending css rule which makes the menu slow to a crawl in anything but its original resolution, but as this is a template that I have to use, there is not much scope to change things.

View 10 Replies View Related

Increase The Height Of A Div When Window Resized

Mar 31, 2011

soloution that will enable me to set a divs min-height to 350px then when the window is resized it will increase over that 350 this supose to allow people with larger resoloutions to see more of the content.

View 4 Replies View Related

Drop Down Menu Repositions When I Resized Browser

Jul 23, 2005

I have created a web site, where I use a dropdown menu when the mouse
goes over an image.

My problem is that when I resize the browser, the menu's position
changes relatively and goes way to the left.

I am stuck I don't know which parameter to change exactly so that the
menu behaves properly....

View 2 Replies View Related

Autoresize Script Worked Well But Top Banner Also Resized

May 14, 2010

My community runs a set of forums, (phpbb with the Brushed Metal template, if that is important.) and people often use large images in their posts. This ends up cutting off the majority of the image, so we thought we'd install an auto-resize script, to resize anything wider than 600 px. It works too well, it also resizes the banner at the top of the screen. A bunch of us hacked at it trying to get it to work, but none of us know anything about javascript, so it's not going so well. Either the script still resizes everything, or it does nothing at all.

Here's the earliest version I could find. It's not the original script, however...
<script>
onload_functions.push('resizeimg();');
function resizeimg() {
if (document.getElementsByTagName) {
for (i=0; i<document.getElementsByTagName('img').length; i++) {
im = document.getElementsByTagName('img')[i];
if (im.source == '[URL]')
/*PATH TO TOP BANNER THAT SHOULD NOT BE RESIZED*/
{ continue; }
if (im.width > 600) {
im.style.width = '600px';
eval("pop" + String(i) + " = new Function("pop = window.open('" + im.src + "','phpbbegypt ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();")");
eval("im.onclick = pop" + String(i) + ";");
if (document.all) im.style.cursor = 'hand';
if (!document.all) im.style.cursor = 'pointer';
im.title = 'Click Here To See Image Full Size ';
}}}}
</script>
We're stuck, we have no idea what to do.

View 3 Replies View Related

Can DIV Located In The MasterPage Be Resized Depending On The Screen Resolution??

Aug 19, 2010

Can DIV located in the MasterPage be resized depending on the screen resolution?

<tr style="vertical-align: top;"><td>
<div id="mainArea">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server" />
</div></td></tr>

I've tried unsuccessfully -

var height = screen.height;
var area1 = document.getElementById('ctl00_mainArea');
if (height == 1024) {[code].....

View 6 Replies View Related

Variable Scope And Crossing Functions - Resize Plugin In Order To Obtain The Varying Computed Width Of An Element When The Window Is Resized

Mar 23, 2010

I am using Ben Alman's JQuery resize plugin in order to obtain the varying computed width of an element when the window is resized (the element in question is a page wrapper that exhibits the expand-to-fit behavior of a block box, and it's computed width is obviously influenced by the resizing of the window. Essentially, what I need to be able to do, is to reference a variable that is defined in a .resize() function ('width_page') in a seperate .each() function.

[Code]...

I now understand that variables can't cross boundaries like in the example above, which leaves me a little stuck. I also understand that this is specific to the context of the .resize() function, and that it can't be taken out of it without using an element selector. Is there some way I can call the .resize() function in my .each() function?

View 3 Replies View Related

InnerHeight Property - Photos To Be Resized Depending On The InnerWidth And InnerHeight Of The Browser

Apr 26, 2011

I have a website which displays photos. I want the photos to be resized depending on the innerWidth and innerHeight of the browser. I have my resolution set to 1024x768. So if you go to [URL] and click on 'Commissions' my 'w' variable in the URL contains 1024 but for some reason the 'h' variable displays 50. If I click on 'Commissions' one more time then it correctly displays h=602.

View 9 Replies View Related

Preventing Second Click

Oct 22, 2006

I have a Java GUI application where I perform a lot of long DB operations [e.g. massive SQL Insert's], which takes 5-60 secs to perform. Sometimes user double-clicks the button or just gets impatient and clicks again, which created duplicate records.

So I am trying to disable the button as soon as it is clicked, and as soon as it's done, re-enable it again.

I tried to do it in Javascript, just simple: <input... name=Save... onclick="enabled=true;">
and as soon as screen refreshes, it re-enables the button automatically.

That works in some cases, however when I need to do some other Javascript operation
(e.g. validate() the fields on the screen), disabling the button automatically stops both Javascript and association form action in Java which is totally unacceptable.

Is there any other simple solution to such problems in Java or Javascript?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved