Set The Frame Contents When Opened A Frameset In New Window?

Oct 6, 2009

How do I set the contents(src) of a frame in a frameset when opened in new window?(frameset has a frame called APtop)I have following code

newWind = window.open("http://server/db.nsf/ActionPlan?OpenFrameSet","_blank");
newWind.frames['APtop'].location.replace("http://server/db.nsf/Administration?OpenPage");

It does not work... I even tried

newWind.document.getElementById('APtop').src = "http://server/db.nsf/admin?OpenPage";

How do i do this?

View 4 Replies


ADVERTISEMENT

PASSING Data From One Frame To Another Frame In A Frameset

Aug 30, 2010

i need to pass the data in the textfields from the left frame to the textfields in the right frame of my frameset. (ex: dslnum of frame1 will be pass to txtDSLTN of frame2)[URL]

View 19 Replies View Related

How To Refresh Whole Frameset From The Frame

Jan 24, 2010

I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames. I've searched google and tried many options, about 6 or 7 codes, but failed. This is among one of which i tried:

<a href="#" onClick="opener.top.location.reload()">Homepage</a>

Very briefly, what i need to do is to refresh the entire frameset - the effect which can be obtained by pressing on the RELOAD button on the internet browser.This is how the frame looks like:

Code:

<html>
<head>
<title>Client</title>

[code]....

I am trying to refresh this entire frame using a link on the left frame, left.php.

View 1 Replies View Related

Refresh Whole Frameset From Frame?

Jan 24, 2010

I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames.I've searched google and tried many options, about 6 or 7 codes, but failed.This is among one of which i tried:[code]Very briefly, what i need to do is to refresh the entire frameset the effect which can be obtained by pressing on the RELOAD button on the internet browser.[code]I am trying to refresh this entire frame using a link on the left frame, left.php.

View 4 Replies View Related

Linking To A Particular Frame Within A Frameset Using OpenWin() Java

Sep 26, 2000

I am attempting to link to a particular area of a frame within a framset. I understand how to use anchor tags as well. The problem is, I can't point a link to an anchor that is within a frame of a new window. When a user clicks on the link, a new window will appear. This winow will contain frames. I would like to point certain links to specific areas within one of the frames. Is this making sense? Code:

Now, if you click on the blue highlighted links, it will open up a new window. This new window is constructed with frames. The top one displaying the blue header and the bottome one containing the content. Now, if they click on the "tax exempt I.D.", I would like the new window to open up with the bottom content showing "tax exempt I.D." at the very top. (So the user will not have to scroll down each time to find the help topic of their choice).

This is the code I am currently using on the links:
<A HREF="javascriptpenWin('help_frames.htm#taxexempt');">

I just can't get the "#taxexmpt" part to work.

View 2 Replies View Related

Print Contents Of One Frame From Another Frame?

Sep 8, 2010

I have a frameset with two frames; topFrame and mainFrame. I have code in topFrame and wish to print the contents of mainFrame. The code that I have used has worked for many years and still works on my localhost Apache Server. However, it has now "stopped" working. When I press the button in topFrame it prints the contents of topFrame The code that I am using is

Code:
window.parent.mainFrame.focus()
window.print

I have tried to replace the first line with..

[Code]...

View 1 Replies View Related

Automaticaly Clsoe The Parent Window When The Child Window Opened In Firefox?

Mar 24, 2011

i have this code i need to close the parent.html window when the child window opened, i need the code for that working well in IE and Firefox Parent.html

<HTML>
<SCRIPT TYPE="text/javascript">
function sendTo()
{
window.open('child.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+'');
}
[Code]...

View 2 Replies View Related

Trouble Retrieving Window Location From A Previously Opened Window ?

Dec 24, 2005

I am trying to open up a new window and then get the current url/location
back from the (win_1) window and display the url in an alert box.

Here is the code I am using :-

<script type="text/javascript">
var mywin_1 = open ("http://www.anysite.com/index.htm", "win_1",
"height=640, width=820, left=200, top=0, scrollbars, status, location");
var temp = mywin_1.location;
alert (temp);
</script>

Where am I going wrong?

View 2 Replies View Related

Using DOM To Get At The Contents Of A Modified Frame

Nov 19, 2003

The application that I am trying to develop is a web-crawler written in JavaScript. The top module called JSBrowse.html defines two frames: an upper one called toppart, and a lower one called bottompart. Toppart.html in turn defines two frames: one called leftpart and one called rightpart. (I would have atached all 4 modules, but I don't know how to attach more than one module, so I chose rightpart.html.)

Leftpart shows the current www page that you have crawled to.

Rightpart contains a button that takes you to the next page in what will eventually be a pushdown list.

Bottompart scans each page for the presence of keyword, and also shows the dom structure of the document.

In rightpart I use this statement to update the URL of leftpart: parent.frames('leftpart').window.document.URL=document.form1.text1.value;

THE PROBLEM IS: The DOM tree that is displayed is the tree of my original html page (i.e., leftpart). What I want is the DOM tree of the current content.

I own 5 books on JavaScript including "HTML Black Book", "JavaScript: The Complete Reference", and 3 others, and I have not found the answer to my question.

I could sure use a clue, or ideas to solve this problem.

View 3 Replies View Related

Assign An Window Object Variable To An Already Opened Window

Jul 23, 2005

Is that possible I can assign an window object variable to an already opened
window? With window.open(), we can get a window object from opened window.
If a window has already opened, is there any way I can attach that window
with an object variable in javascript? Because I want to communicate with
that window.

View 3 Replies View Related

Retrieve The Object Of The Window Opened By Window.open

Aug 8, 2007

I know I can get the window object by using

obj = window.open( .... );

but what I need is, after the new window is popped up, the opener will
be redirected to another page, I want the another page able to control
the popup window is it possible? is there something like getWindowById.

View 2 Replies View Related

Passing Variables From One Window To A Newly Opened Window

Jan 3, 2011

Here is the program: [URL] Basically, I want to input a number in the input box, which assigns a number to the variable numval located at document.box1.b1. When clicking on the "new window" button, an alert displays the input box value, then another window opens and displays the integers 1 through 12 and the amount squared.

I would like the new window to obtain the number from the previous window so that the new window will display integers (and their squares) from 1 to the value of numval.

View 3 Replies View Related

Window Resize... FRAMESET Or WINDOW

Dec 22, 2003

I would like to either resize a FRAMESET to a specific height width...

or I would like to know how to resize a single window if someone types in the url directly. I found the onLoad "resize()" function but I can't remove the TOOLBARS... i tried the "self" and "document" functions without luck...

View 1 Replies View Related

Window.open To Named Anchor Within Frameset

May 4, 2002

I'm opening a new window that contains a simple frameset (topFrame,mainFrame). On the mainFrame page I have along list of service descriptions each with their own named anchor.

Here is the script i'm using to open / center window in browser (script is from 'ultimate window pack' extention for dreamweaver): Code:

View 4 Replies View Related

Know Whether A Window Is Opened Or Not?

Jun 3, 2009

I am doing a chating application.I want to know whether a window is opened or not. This is the code i am using to open a window.

var title='Chat_'+userId+"_"+selectedUserId;
var url="OneToOneChat.aspx?FromUserId="+userId+"&FromUserName="+userName+"&ToUserId="+selectedUserId+"&ToUserName="+selectedUserName;
window.open(url,title,'width=410,height=400,toolbar=no,menubar=no,scrollbars=no,status=yes',false);

later i trying whether the window is already opened or not.

[Code]...

for win.closed it is giving javascript error like "closed is null or not an object". I am using IE7.

View 2 Replies View Related

Raising An Opened Window...

Jul 20, 2005

i have popup window that maybe covered by other windows or minimized how can i use javascript to check for existence of a window named "AAA" and if exist open and raise it to the top of the stack so that its becomes viewable ?

View 1 Replies View Related

How To Close Window When It Is Opened Under A Tab

Jun 22, 2009

How to close window when it is opened under a tab?

normally....window.close() will work for a single window

View 2 Replies View Related

How To Blink New Opened Window

Jul 26, 2006

I am opening one new window using open.window() function.

Suppose if user minimize that window then how i can show blink on that window if any event occuir on that window....

I do't want one more pop-up for user its not user friendly....

View 12 Replies View Related

Cannot AppendChild() To A Newly Opened Window

Jul 23, 2005

Does anyone know why the following function works in FireFox but not in IE6?

function ShowTable()
{
clonedNode = document.getElementById("myTable").cloneNode(true);
win = window.open();
win.document.body.appendChild(clonedNode);
}

I am trying to display a table with id="myTable" in a new window. IE6
complains that "document.body" is null or not an object.

View 2 Replies View Related

Status Or Error Of Opened Window

Jan 11, 2006

If I open a window like this

mywin=window.open("http://localhost:3456/" );

Is there a way to find out, in the calling javascript code, if the opened window mywin could read server information from "http://localhost:3456/".

I tried mywin.error and mywin.status, but it's not yet clear to me what to do.

In mywin, the (Dutch) InternetExplorer version, it can, sometimes say, could not open this page. (To be exact: In Dutch "De pagina kan niet worden weergegeven".)

My goal is actually to find out, if there is something running on localhost that is listening on port 3456. There might be other ways to do this then checking mywin even?

View 3 Replies View Related

Best Way To Control Size Of Window When Opened?

Mar 10, 2004

I have a form that I link to from several locations. Right now I use JS in the link to the page to open it a specific size. I would rather simplify the links and just put the dimensions in one place...the file that opens. Is there a best way to force a page to be opened in a specific size without putting JS in the link? I would just use target="_blank" to get it in a new window.

View 2 Replies View Related

Get The Reference Of An Already Opened Child Window?

Jun 3, 2011

In one of my webpage, I have a child window gets opened. How to get the child window's reference in to my javascript and access its elements? I am aware of the method: child = window.open(....) However, I can't use this logic because, I can't change the code of the web page since I am not the developer. So, I want logic to get the reference of an already opened child window.

View 4 Replies View Related

Closing Window Not Opened By The Script - Netscape 7.1

Jul 23, 2005

The application I am working on uses Frames (TopFrame, SideFrame(Left)
and the MainFrame). On the occurance of a certain event, I am closing
the window from one of the frames. This is the script I use.

function CloseWin ()
{
window.opener = window;
window.close();
}

Works perfectly well with IE. But not with Netscape. The Javascript
console says 'Script may not close windows that were not opened by the
script'. Is there any workaround to this?

View 8 Replies View Related

Hiding Menu-Bars In An Already Opened Window.

Jul 23, 2005

Is it possible, to hide the menubars of a browser, if the window is already
opened? I want to post a html-form to a "_blank" target (new window). This
new window should have no Menubars.

View 1 Replies View Related

Disable Right Click On Images Opened In New Window

Jun 30, 2010

I have a thumbnail gallery on my website. The thumbnails can be opened in a new window using:

<a href="/images/flowers22.jpg" target="_blank"><img src="images/flowers.jpg" alt="flowers" onClick="MM_openBrWindow('/images/flowers22.jpg','','status=yes,width=630,height=379');return false" /></a>

I have inserted javascript code into my .js stylesheet to disable the right clicking of images on the page where the thumbnails are:

[Code]....

However, when the images open in a new window, the 'no right click' function does not apply. Does anyone know how to disable the right click for the newly opened images?

View 6 Replies View Related

How Can I Prevent An Opened Window To Be Closed By Clicking The Right-top 'X' ?

Jun 16, 2005

I want to prevent an opened window to be closed by clicking the right-top 'X' . Whenever user try to close the window by clicking the right-top 'X', an alert message will be generated and it will not be browser specific.

View 6 Replies View Related







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