IE Toolbar Enable/disable When Using Window.opener

Mar 20, 2006

I am wondering, is it possible to use the toolbars=yes/No option when using window.opener.document......... as opposed to window.open and if so how?

View 1 Replies


ADVERTISEMENT

Window.opener.location - Error "window Opener Is Null Or Not An Object"

Apr 4, 2010

Code:
<html>
<head>
<script type="text/javascript">
function closeWindow()
{
window.opener.location='www.gafarrons.org'
[Code]...

the error message is "window opener is null or not an object"

View 4 Replies View Related

Window.opener, Form.opener?

Jul 14, 2006

I see how the window.opener works, pretty neat in that the pop window
knows the parent.

Is there a property that also knows the form field parent?

My function does not know which of the 3 select menus called it.

What can I do?

function onCarrierSelect() {
//
var frm = document.carrRequestForm.carrierList.selectedIndex
var selectCar =
document.carrRequestForm.carrierList.options[frm].text;
alert(selectCar);
if (window.opener && !window.opener.close)
window.opener.document.form(x how make global?).nbcarrier(x how make
global?).value = selectCar
window.close();
}


p.s. as an aside I know the form field name, it is literally in the
querystring, but that is ASP/vbscript and no way to get it into the
jscript function...

View 4 Replies View Related

Make A Pop-up Window That Does Not Have The Toolbar ?

May 12, 2011

I am trying to make a pop up box that does not have the toolbar, status line, and does not say Java application at top of Pop up box. Here is how I wrote the code. It did not work.

<html>

Attempting to make a pop up window:

View 8 Replies View Related

Javascript Window + Standard Toolbar

Jul 20, 2005

I use the following code to open a javascript window. Is it possible to
modify this to have the standard toolbar open in the window?

<script language="JavaScript" type="text/javascript">
function popup()
{
window.open( "http://www.mysite/subfolder/page.asp" , ""
,"top=0,left=0,width=790,height=540,scrollbars=yes" ) ;
}
</script>

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

Need To Strip A Window Of The Toolbar, Etc From An Onload Function.

Jan 17, 2005

I have a popup window that resizes when open:

<script>
function imgdis () {
window.resizeTo(400,500);
}
</script>
<body

However i still need to make this window to be displayed without Statusbar, Scrollbar, etc. I wanted to be stripped so it only displayes the content. Can i do this from the function that i already set?

View 5 Replies View Related

Window.open Not Working In IE With Google Toolbar?

Jul 30, 2009

I am trying open a new window using this:

function newwindow(){
alert("step1");
//document.FORMANME.submit();
window.open('/popup.htm','popup');
alert("step2");
}

This works fine on all other browsers but not on IE with google tool bar.

View 2 Replies View Related

Window.opener.location - Set The Parent Window(main Browser)

Nov 13, 2011

I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.

View 3 Replies View Related

Window.open() Amd Window.opener.document In FireFox

Mar 14, 2009

Firstly I know this issue has been addresses a lot already but as a newbie to HTML and Web Development I am unable to get the idea. according to documentations and solutions proposed on different forums a popup or child window can be only closed using window.close() if it is opened via window.open() function.

[Code]...

View 2 Replies View Related

Submit A Form In Popup Window To Opener Window

Oct 11, 2006

I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.

View 2 Replies View Related

Window.opener Not Correct When Window Reopened

Jul 23, 2005

I see this problem in IE but not Firefox. I have a page that opens a second page as a dialog box. If the Dialog is relaunched from a second instance on the page the Dialog window is reused, the controls are reinitialized but window.opener still refers to
the original opener. I have simplified code than demonstrated the problem. Code:

View 5 Replies View Related

Enable / Disable By Id

Jan 29, 2011

I have a form with pairs of checkboxes. When one is checked then I want to enable the other checkbox for that pair, and disable when unchecked. I can get this to work when I have a separate function for each pair, but not if I try to use one function and pass the id of the element.[code]

View 2 Replies View Related

Enable / Disable With Value

Feb 26, 2011

i've been looking online for a while for a code that would disable 3 text fields.[code] Was unable to find one. was only able to get it to do one of fields. What i'm try to do is have a checkbox to enable and disable a row and produce a value in the totalcalls box.

View 6 Replies View Related

Enable/disable One Alt Stylesheet, How To?

Jul 23, 2005

I have exactly one external, alternate stylesheet that I want to enable or disable by form controls, on one page only (not saved across pages).

I used:

<link rel="alternate stylesheet" id="style-compact" etc...>

<input name="view" type="radio"
onclick="document.getElementById('style-compact').disabled=false">

<input name="view" type="radio" checked="yes"
onclick="document.getElementById('style-compact').disabled=true">

Is this the best way to do it? I want to reference the alt-stylesheet by
name (or similar), not index.

It works in my Camino & Safari. In IE-Mac, I can enable the stylesheet,
but not (subsequently) disable it again -- parts of the page just
disappear.

View 1 Replies View Related

Enable - Disable <select>.

Jul 20, 2005

I've this code:

function checkdate(FormSubmit){
alert(document.getElementById('Mois').value);
if(eval(document.getElementById('Mois'))>0 &&
eval(document.getElementById('Annee'))>0){
document.forms['FormSubmit'].getElementByID('SELECTCONSTRUCTOR').disabled
= false; //can't reach the control here
}
else
{
document.forms['FormSubmit'].getElementByID('SELECTCONSTRUCTOR').disabled
= true; //can't reach the control here
}
}
....

<form name="FormSubmit" method="post" action="">
....
<select name="Mois" onChange=checkdate(this.form);>
....
<select name="Annee" onChange=checkdate(this.form);>
....
<select name="SELECTCONSTRUCTOR" disabled>

Now, what I would like, is to enable the SELECTCONSTRUCTOR if month and year
are selected (I mean different to 0).

I can't enable or disable. In fact I can't reach the control in the
checkdate function...

How can I enable/disable SELECTCONSTRUCTOR when my 2 fields are selected?

View 3 Replies View Related

Enable/disable The Fields?

Jun 26, 2009

this site,I had a problem with my code. I had two radio buttons when i click the first radio button i want to appear one login form(username,password&submit button) and some fields like texbox, radio buttons.here the login form is only in enable state remaining fields must be in disable state. When i click on second radio button then i want to disappear the login form and the remaining fields must be in enable state.here is my code

<html>
<head>
<script language='javascript'>

[code]....

View 2 Replies View Related

Enable And Disable Script

Oct 19, 2007

I have a check box that is active, but everything below it is disabled. I wrote a script to enable it but the error report keeps saying that my function has no properties. Why is this?

function disable_enable(){
if (document.all || document.getElementById){
if (document.printWhere.qtyPrinter.Quality.qtyOffice.Submit.disabled==true)
document.printWhere.qtyPrinter.Quality.qtyOffice.Submit.disabled=false
else
document.printWhere.qtyPrinter.Quality.qtyOffice.Submit.disabled=true
}
}

View 13 Replies View Related

Disable/enable Textfield

Oct 20, 2005

<form name="inputForm">
<body>
<table>
<tr>
<td><input name="inputType" type="radio" value=""></td>
<td>Account Num</td>
<td><input name="txtAccNum" type="text"></td>
</tr>

<tr>
<td><input name="inputType" type="radio" value=""></td>
<td>Service Num</td>
<td><input name="txtSrvNum" type="text"></td>
</tr>
</table>
</form>

i want to disable all the textfield..when user check the radio button(let say the above one), the above textfield (txtAccNum) will be enable..im new to javascript.

View 2 Replies View Related

Disable, Enable A Text Box?

Jan 14, 2010

In the following code I just want to disable the textbox if “other Amount is selected”, radio element 7.I have been working at this too long cause I can’t see the problem.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

[code]....

View 8 Replies View Related

Window.opener In NN7

Jul 23, 2005

If i open a link either by using the right mouse menu "open in new window"
or press shift (IE) on the link the page will be opened in a new window.
From this window I can use the window.opener object to access the opening
window.

When doing this in NN7.1 I cannot access windows.opener. If I open the
window with window.open I can also use the window.opener to access the
opening window but not if I open the new window by pressing CTRL an clicking
the link or using right click "Open link in new window".

Is it only possible to access the window.opener if the window was opened
with window.open in NN7?

View 1 Replies View Related

Window.opener

Jul 23, 2005

I have a normal window cotaining a form (named form1). The form has a text
input called imageURL. There is a button that, when clicked, opens a new
window that contains three frames (left, right and bottom.) In the right
frame is another form (named form2) with a hidden input (selected). When
form2 is submitted, I want the value of selected to be passed back to the
imageURL on form1 and then close. The code I have tried is as follows:

(From my frame...)
<SCRIPT language="JavaScript">
function passValues()
{
// pass variable back to parent window
window.opener.document.form1.imageURL.value =
document.form2.selected.value;
}
top.window.close();
</SCRIPT>

It closes just fine, but imageURL on form1 never changes.

View 3 Replies View Related

JQuery :: Disable /enable The Elements?

Dec 3, 2010

I have div with Textbox, label and hyperlink it it. I want to disable /enable the elements in it. I am using this code.

$('#Content_2 :input').attr('disabled', true);
#Content_2 - is a div

But this leaves the hyerperlink and label enabled. How can modify this ?

View 2 Replies View Related

JQuery :: Enable And Disable Input Box?

Jan 24, 2011

I was trying to but failed to do. I have two radio of gender and two input box father name and husband name if sex selected male then fathers name will be enabled and husband name will be disabled and if female selected then fathers name will be disabled and husband name will be enabled.

<input type="radio" name="sex" value="male" /> Male
<input type="radio" name="sex" value="female" /> Female </div>
Father's Name<input type="text" name="fname" />
Husband's Name<input type="text" name="hname" />

View 2 Replies View Related

JQuery :: Enable And Disable Selector

Feb 2, 2011

I am trying to do like if country none selected city will be disabled and if usselectedthen city will be enabled.triedby this code but unable to enable city onsection.

View 8 Replies View Related

JQuery :: Enable / Disable Are Not Working

Apr 22, 2011

I have an ASP page that has a master page. I have a drop down list and 2 text boxes.The change function is being executed and I get the text value of the selected list items, but the enable and disable are not working.[code]

View 1 Replies View Related







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