Setting Location.href On A Modal Popup Opens A New Window

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


ADVERTISEMENT

JQuery :: Using The GreatInline Modal Window W/CSS - Popup Opens When The Page Is Reloaded?

Feb 5, 2011

I'm using the greatInline Modal Window w/ CSS and jQuery from [url] and it's working great. Now I want use it with an form in it:action="?" method="post"

When form is send the popup is closed, how can I prevent this? I think that happens because the whole page is send. Can I set an extra parameter so the popup opens when the page is reloaded?

View 2 Replies View Related

Window.location.href

Jul 23, 2005

<script language="javascript">
function ConfirmPage() {
window.location.href="http://ConfirmationPage.htm";
return false;
}
</script>

How can I use this script to display a page in my current directory? It woriks fine when using a domain such as yahoo.com or google.com.

View 3 Replies View Related

Location.href To A New Window

Jan 25, 2006

I use this code to create a banner that contains text:

<table of banner...

because it makes the whole banner a link. If I do it this way:

<table><tr><td ><a href='http://URL' target='_blank'>text of banner...

only the text is the link and if someone puts their cursor over a non-text area they might no realize they can click on it.

In the second example, however, I use target='_blank' to open up a new window.

My question is, is there a way to use the first method and open a new window.

View 2 Replies View Related

Window.location.href On Mac Browsing IE

Aug 11, 2005

why window.location.href or window.location javascript functions doesn't
work on mac browsing IE

View 1 Replies View Related

How Window.location.href() Works?

May 23, 2006

as i know href is a property of location but location.href(url) works
fine with IE 6. i couldn't figure out how its possible? is it a kind of
browser syntax-tolerance helping it to work? how the heck is this
working?

View 8 Replies View Related

Window.location.href With Encode?

May 17, 2007

I have a pop up window, that window needs to refresh the parent window when opened, I'm doing the following:

window.opener.location.href(window.opener.location .href);

problem I'm having is that the parent url has a # sign in it, like:
http://localhost/mysite/me.html#01

i need the #01 to stay in the url after the refresh, anyway to do
this? i tried using escape(window.opener.location.href) but that
didn't work, as it escaped everything including the :// in http://

i also tried:
window.opener.location.href(window.opener.location .protocol + "//" +
window.opener.location.hostname + window.opener.location.pathname);

problem with that was i lost the #01 in the url, pathname didn't
include it.

View 5 Replies View Related

Window.location.href Is Not Working In FF?

May 11, 2010

fixing window.location.href on localpath is not working in Firefox only but working fine in IE.

View 1 Replies View Related

How To Delay Window.location.href

Dec 8, 2009

I guess this is an easy question for all javascripters but I don't know how to manage (I'm pretty fresh with JS). I found two solutions on this forum but it seems that they don't work(?).I want to delay for few seconds window.location.href="destination_site.html" before it will automatically take visitor to destination site. It has something to do with setTimeout but I would be greatful for posting a fixed code.

View 3 Replies View Related

Window.open Location.href Frame

Jul 20, 2005

I have a page of 2 frame:

menu (menu.php)
corpo (corpo.php)

In menu.php i have:

View 4 Replies View Related

Can't Get Window.location.href To Work In Some Browsers

Jan 31, 2005

I have this line in an XHTML form:

Code:

<input type="reset" name="cancel" value="Cancel"
onclick="javascript:window.location.href('/index.php');" />
In IE5.5 clicking the cancel button loads the index.php page fine.
In Firefox 1.0 & also the version of IE running on my IPAQ it doesn't work - clicking the button doesn't do anything.

Anyone have any ideas or alternative solutions?
I thought maybe I was using an IE only thing but it is a version of IE on the IPAQ. I thought maybe it was not standards compliant but I haven't found anyone having a similar problem.

Any idea or advice?
TIA, BG.

PS Ignore that I am using a reset button to do this - I have also tried it in the body tag like this:

Code:

<body onload="javascript:alert('Login Successfull!
You are logged into my app');window.location.href('/myapp/index.php');">

View 6 Replies View Related

Does Window.location.href = Work In Firefox??

Mar 18, 2007

In my case it doesn't work. I need to transfer some variables from js to php Any work arounds???

View 5 Replies View Related

Target Window.location.href To Iframe On New Page

Jun 15, 2010

I know next to nothing about javascript and I don't even know if this is possible. I need to target window.location.href to an iframe on a different page. So, right now, the piece of the code that redirects the browser looks like this: window.location.href='http://www.somewhere.com/'; Works great, brings it up in the same browser window. So now I need to modify the code so it goes to a different page and brings that page up in a specified iframe.

View 6 Replies View Related

JQuery :: How To Window.location.href Parameter From The <select> Field

Nov 27, 2010

I've got code, but it doesn't href's (redirects) user after changing the <select> value; what I need to fix?:

what I want to open page (make redirect) and to do that I need to ADD to the LINK [url]

[url]

View 2 Replies View Related

How To Create A Frameless Modal Popup Window Using Javascript?

Jun 1, 2007

I am just wondering how to create a modal popup using javascript. The
popup window shouldnt contain minimize,close and maximize buttons and
it should be resizable? I am trying using window.open but not getting
the desirable results.

View 1 Replies View Related

Popup Window For A Href Not Onclick

Aug 4, 2009

how I can have a popup window appear centred with scrollbars? The width and height must be changed for each popup. I need the popup window link to be placed in a href not as onclick. My client will be placing popup window link into their website via Adobe Contribute, so that is why I am asking for the whole thing not to be onclick.

View 3 Replies View Related

Hide The Location Bar In Popup Window?

Mar 16, 2009

i want to hide the location bar in popup window is there any way?

code:
window.open('popup.html',test','toolbar=0,location=0,statusbar=0,menubar=0,resizable=0,width=10
24,height=768');

View 17 Replies View Related

No-Block PopUp Window - If Users Open My Sites Another Sites Show Or Opens For Them?

Jul 30, 2010

I need "No-Block PopUp Window" for my web site.. for example if users open my sites another sites show or opens for them.. even a full page site like full pages ads..and it be like One time per hour or more..I found some script like that but some of them being blocked by IE or other browsers..

View 3 Replies View Related

JQuery :: Form Submission Opens Modal Confirmation Dialog?

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

Window.location.href ... Flush - Webpage To Launch Setup.exe Then Go To Another Webpage On CD

Aug 10, 2010

It launches in IE and give the user instructions, then at the click of a button, launches my setup.exe. I want my webpage to launch setup.exe then go to another webpage on my CD, congratulations.html, which says "installation is complete etc". Here's what I am trying to do through JAvascript. It doesn't work. Should the first instruction be flushed in order for the 2nd one to work?

[Code]...

View 7 Replies View Related

Create A Popup Window In A Form Without Showing The Status, Menubar, Location And With Width Of 502 And Height 550?

Jul 7, 2003

How can I create a popup window in a form without showing the status, menubar, location and with width of 502 and height 550?

I was doing something like this, it will popup a window, but I do not want to show the status, menubar, location, etc. The form is submitted to other site.

<form action="http://www.otherdomain.com/preview.php" target="_blank">
<input type="text" name="value" size="20">
<input type="hidden" name= "1" value="1">
</form>

Any idea?

View 1 Replies View Related

JQuery :: $.url() Function - Being Utilized For Parsing Out The Window.location Or Window.location.search Parameters

Feb 14, 2010

Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.

Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.

I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?

View 3 Replies View Related

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 View Related

WEB Site Opens An Application Window And Then, From Its Original Window It Navigates To A Status Page?

May 11, 2011

My WEB site opens an application window and then, from its original window it navigates to a status page.

Code:
var newWindow
function popUpApplication() {

[code]...

View 5 Replies View Related

Window.opener Either Blocks When I Referesh The Parent Page Or Opens In New Window?

Aug 11, 2011

I am trying to usw window.open , upload a file in the child window and then referesh the parent window. But once upload is done, window . opener .location.href or opener.location.replace sends a message back but I get a pop up blocker, so if I turn pop up blocker off, it opens in new page. I just want the parent page to refresh on the same window. This works on some employees stations but not on others..I don't know if there are any settings on IE that need to change, I tried everything...weird. does any one done this before?

View 1 Replies View Related

Location.href

Feb 17, 2006

I have a couple of links of which I change location.href for tracking purposes.

The problem is that the links now no longer seem to open in a new window (which was accomplished using target="_blank")

Is this an error on my part or is this by design? Is there a workaround? I would prefer not to use window.open as that could get blocked by a popup blocker.

View 3 Replies View Related







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