Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    JavaScript


Advertisements:










Self.resizeTo And Popup Problem


Using ie6 I open a popup with:

<a href="#"
onclick="javascript:window.open('TESTPOPUP.HTML','POPUP','t oolbar=0,location=0,directories=0,status=1,menubar =0,scrollbar=0,scrollbars=0,resizable=0,copyhistor y=0,width=800,height=500,left=50,top=50');return
false;">TESTPOPUP</a>

Within the popup ('TESTPOPUP.HTML') I try to resize the window using :
<body onload="self.resizeTo(640,360);"></body>

However this gives me a popup window of pixel size 630x311 instead of 640x360 expected, How come?


View 1 Replies (Posted: March 19th, 2007)

Sponsored Links:

Related Forum Messages For JavaScript category:
Self.resizeTo And Menu=no?
Is it possible to add a menu=no or status=no to a self.resizeTo script???

I have tryied this but doesnt work...

Code:
<script>
self.resizeTo(500,500,'toolbar=no, directories=no, status=no, menubar=no');
</script>

Posted: Oct 7, 2006, 11:13

View 4 Replies!   View Related
Window.open / ResizeTo Problem
The following code opens a new window, but the "resizeTo" doesn't resize it.
Why not?

Posted: July 23rd, 2005

View 10 Replies!   View Related
Get Rid Of Scrollbars In Chrome After Window.resizeTo?
My application uses a popup window for users to submit a Tweet through Twitter OAuth. Here's the flow:For users not connected/auth'ed to Twitter:

1. Popup prompting to connect to Twitter.
2. Resize the popup window and redirect to Twitter auth
3. Upon success, resize window to smaller size and show Tweet popup window

In steps 2 and 3, I'm using window.resizeTo in the BODY onload event to make the window fit the content nicely and not show scrollbars. In Step 2, it makes the popup bigger to accommodate the Twitter auth form, and in 3 it makes the popup smaller to match my Tweet form.

<body onload="window.resizeTo(526,337);">

Now, this all works just fine in IE and Firefox, but in Chrome, when I get to Step 3, there are horiz and vertical scrollbars on the popup window IF I'm coming from the Twitter auth in Step 2. If I refresh the exact same popup in Step 3 in Chrome, the scrollbars disappear.Also, if the user is already auth'ed by Twitter, I go directly to Step 3, and in this case, there are no scrollbars either.how to get rid of the scrollbars?

Posted: Nov 13 10 at 21:37

View 1 Replies!   View Related
Getting An Alternative To Using Window.resizeTo Function?
I believe a bug fix to Firefox is causing me grief when using the window.resize function in my asp pages. My pages are currently setup the following way I have a main page, lets call it main.asp.Within main.asp I have a html form with a button. The button, when clicked called a javascript function to open a new window like to:

<html>
<head>
<title>Main Page</title>

[code]...

Ok so as you can see I can open child.asp from main.asp. Within Child asp, I have a form. The form stores a boolean on whether or not valid data has been posted. I use this boolean to determine the size of the window (if the data is not valid, I resize the window to allow for an error message. Here is a rough example of how this goes down...

<html>
<head>
<title>Child Page</title>

[code]...

For some unknown reason, the window no longer resizes in firefox, it works fine however in I.E.

Posted: Oct 4 11 at 5:23

View 1 Replies!   View Related
Window.resizeTo Works Differently In IE Alone?
window.resizeTo will work fine until the present window (yet to be resized) is far away from task bar.If it is near to task bar it compresses the size.I hope im clear.It is observed in IE.[URL]give size as some 400,550 and minimize the window and move it below task bar . Now click Resize window It will be resized to a lower size. I observed in IE only

Posted: Mar 2 11 at 11:48

View 1 Replies!   View Related
Suplement In Netscape For ResizeTo(widht,height)
I can resize in IE whit window.resizeTo(widht,height) but it don't work for
Netscape? Have try location.reload() in Netscape. But this don't work.

Posted: July 20th, 2005

View 3 Replies!   View Related
Browser - "resizeTo" Function Not Working In Chrome And Opera?
The resizeTo (that allows setting a new height/width value) function works great on Firefox and Internet Explorer and doesn't work at all on Chrome and Opera.Is there another function that does the same and works on all the browsers?

Posted: Sep 4 10 at 9:27

View 2 Replies!   View Related
ResizeTo In JS Gives Me "Access Is Denied" Error - Know If Browser Is Ready?
I have a web app, whose UI is written in GWT, where for various reasons I need to resize the active window when the server reports things. To do this I use a JSNI function which uses resizeTo and everything works great. I did a small test and tried sending a few updates from the server and got an "Access is denied" error from the resizeTo command. After googling a bit I discovered that this is because the browser is still busy with another resizeTo command and throws an exception due to that. My question is if anyone has a good way to see if the browser is ready/available to be resized? A current workaround I'm thinking, but I don't particularly like, is having a try { } catch() block and if an exception is thrown then catch it and call the function again in timeout but I would like to have a more straightforward way.

Posted: Oct 15 09 at 17:22

View 1 Replies!   View Related
Window.resizeTo() Inside A Window.onResize Event Handler Function?
I want to preserve a 16/9 aspect ratio to the window after any resize, making the width a function of the height.

As I have a window.resizeTo() inside the window.onresize event function, the infinite loop is served. How may I quit it?

<html><head><title>Title</title><script languaje="javascript">
const c_ra=16/9;
window.onresize = function WindowReSize() {
var myWidth = 0, myHeight = 0;

[Code].....

Posted: 04-23-2011, 11:15 PM

View 2 Replies!   View Related
JQuery :: SimpleModal Popup - Open Second Popup On First Popup Close Event?
How to open second popup on first popup close event?If I'm opening second modal popup on first modal popup event -

$divFirstPopup.modal({
onClose: function(dialog) {
$.modal.close();[code]....

But second popup does not appear.

Posted: Nov 18 10 at 7:32

View 1 Replies!   View Related
Make A Popup Display A Message And Then Present A Download After 5 Seconds And Then Close The Popup?
In my project, I have a file that I want the user to download. When they click on the link, I want a popup window to display "Your download will shortly, if it doesn't start click here". After a few seconds, it will then close and the actual file download will then display.I know to achieve the window closing you'll use:

window.setTimeout(function(){window.close()}, 5000);

But I'm not sure how you would call the download once the window has closed?

Posted: Dec 10 11 at 20:09

View 2 Replies!   View Related
JQuery :: Put The HTML Code Of The Popup In Index Or Page Whichever Will Display The Popup
I'm using this script as a popup on my website for a login. But what im having trouble with is that it makes me put the HTML code of the popup in my index or page whichever will display the popup. Is there a way to make it so that i can call the popup code externally like whatever is in the popup? This is the popup code im using! [URL]

Posted: Jun 18 10 at 21:53

View 1 Replies!   View Related
Using Onmouseover Pn An Image To Display Popup Message And Onmouseout Remove Popup?
I have a a png image of a home. whenever users place mouse on that image i have to display text "home" in some popup box and when mouseout the popup should be gone. Could anyone help me how to implement in javascript or there any functions in jquery for the required effect?

Posted: Aug 25 10 at 0:41

View 1 Replies!   View Related
Jquery :: Returning An Array To The Parent From Popup - But The Popup Doesn't Close?
I am returning an array to the parent from my popup. It all works fine but the popup doesn't close. I even tried window.close

function btnClick()
{
var myVal = $("input#hdnName").val();[code]..............

Posted: May 2 11 at 15:05

View 1 Replies!   View Related
Jquery :: Chrome : Make Extension To Perform Only When Popup Is Clicked And Display The Results In The Popup?
I want my popup to be the trigger for the extension to start.My extension basically can be performed completely in background.html.

Background.html needs some info from the webpage, use message passing for passing the required content from contentscript.js to background.html. This is becoming resource heavy to run on all the pages, So i want this extension to start only after the icon is clicked and display the information in the popup.html which i can directly pull from background.html.

Posted: May 18 11 at 15:24

View 1 Replies!   View Related
Php - Display A New Popup After Pressing Reset Button By Closing Old Popup And Show The Same Form Freshly?
I have a pop up window,which is displaying form which can contain previous some form details or new form.When i press a button it should reset to the new form by closing the active dialog window.

Posted: Aug 25 11 at 14:28

View 1 Replies!   View Related
Asp.net - Image Map Popup On Rollover With Popup Text Drawn From Database?
I have a custom map of the USA with about 20 polygonal hot spots. I would like a box to pop up next to each hot spot on hover, with text and links drawn from my DB specific to the location. I would have thought this is a common situation, but I can't find a solution that works. I tried using an asp:imagemap and an ajax popup extender but you can't assign IDs to hotspots and it doesn't support mouseover events. I tried css with an html image map but I can't figure out how to use css solutions with polygonal hot spots, and I also don't know how to link it to get the data from the db without asp targets (I'm not very familiar with jquery, which would work, I am guessing).

Posted: May 13 10 at 0:16

View 2 Replies!   View Related
Popup Goes Back To Hidden State When Clicking Outside The Popup Area?
If I have a popup (using a div), how can I have the div to go back to the hidden state when someone clicks anywhere outside of the div?

i.e. the popup is visible, then someone clicks outside the popup, the div should be hidden again.

How can I achieve this functionality?

Posted: Apr 11 09 at 18:58

View 2 Replies!   View Related
Jquery :: Hide A Popup On Mouseleave Event Of Trigger Or Popup?
I have a popup menu appearing onclick event of an element on my page like this...

$('.triggerDiv').click(function() {
var pos = $(this).offset();
$('#popupDiv').css({

[code]....

Posted: Oct 19 11 at 5:24

View 2 Replies!   View Related
JQuery :: Redirect A Page Which Creates A Popup - From That Created Popup
I have a button on main page of my web application which creates a login pop. If user enters correct password then popup should be disappeared and the page which create that popup should go to welcome page of that user. I know how to disappear the popup if user enters correct password. How can I tell the explorer window which created that popup to go to the welcome page?

Posted: Nov 9 11 at 16:39

View 2 Replies!   View Related
Dynamically Open A Popup Window But Ie8 Blocks It With The Popup Blocker
I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.

now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work

Posted: Jan 22nd, 2010

View 3 Replies!   View Related
Html - Add Popup Entry In Allow Popup Option Of Firefox?
I want to add popup blocker entry for the specific site in htmlunit webclient

we can do it manually by clicking to edit popup blocker entry option in browser but how to do it in htmlunit

is it possible ?

if yes ......how?

I want to do this in htmlunit

Posted: Jun 23 10 at 10:33

View 1 Replies!   View Related
Redirect Parent Window To A Url Instead Of The Popup And Close The Popup?
This is the sample code:
1. in the pop up :

<body onunload='stopThisAndChangeParentInstead()' >
<a href='MY_URL'> Click here </a>

When the user clicks "Click here" , the unload event fires which changes the URL
of the parent and closes this popup window.

function stopThisAndChangeParentInstead()
{
window.opener.top.location.href = "MY_URL";
window.close();
}

My questions:

What are disadvantages of using this method ? Are there any better ways to do the same thing ? Is there a javascript way to know to which URL the page is being redirected to ? So that I can use that in body unload function,instead of mentioning MY_URL since I already know it.

Posted: Mar 3 11 at 8:31

View 3 Replies!   View Related
Programmatically Populating A Textbox Within A Popup When The Popup Displays?
The Facebook Send button for example [URL] displays a popup with a To: field. Is it possible to programatically populate that To: field with a name after it popups?

Posted: May 3 11 at 15:34

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved