473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Noob: popus, frames and forms

I'm hoping this won't be too hard with Javascript (I'm new to the
language).

I've got a page with a form on it (name=frm1) which has a text input
(name=url).
I want to be able to click a link that will open a popup that has 2
frames. The top frame (frameA) will have a button/link that, when
clicked, will do 2 things:
1. Insert the URL of frameB (the bottom frame) into the text box "url"
on the original page
2. Close the popup
Here's my setup so far:
change.shtml has
<head>
<!-- Script
function load() {
var load =
window.open('changeurl.html','','scrollbars=no,men ubar=no,height=600,width=800,resizable=yes,toolbar =no,location=no,status=no');
}
// -->
</Script>
</head><body>
<a href="javascript:load()">Click here</a>

changeurl.html simply sets up the two frames, frameA (changea.html) and
frameB (www.domain.com)

changea.html is where I need the button that does the above 2 points.
(No idea how to make this page).

I appreciate any help,

henry

Jan 23 '06 #1
1 1252
So now in change.shtml I have:
<html><head>
<script type="text/javascript">
function load() {
var load =
window.open("changeurl.html",
"myPopup",
"height=600,width=800,resizable");
}
</Script>
</head><body>
<form name="frm1" action="change.pl" method="post">
<a href="#" onclick="load();return false">Click here</a>
<input type='text' size=60 name='url' value='http://www.'>
</form>
</body></html>

And in changea.html I have:
<html><head>
<script language="JavaScript">
function closeWindow() {

top.opener.document.forms[0].url.value=top.frameB.document.location.href;
top.window.close();
}
</script>
</head><body>
<form>
<input type=button value="Close Window" onClick="closeWindow();">
</form>
</body></html>

The content of frameB will be on the same server so that's ok. But this
doesn't work. It doesn't insert the value or close the window. What
have I done wrong?
Thanks again,

Henry

Jan 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ike | last post by:
If I must use frames.....is there a way I can dynamically resize them that works under both ie 6.0+ and netscape 7.0+ ( Mozilla/5.0 ) ? Thanks, Ike
1
by: AdamsBlueGuitar | last post by:
Here's the situation. I have a page with 2 tables on it. In table one, are several links. The I want the content of the links to show up in table two. I think this can be done by nameing table...
2
by: rs.franken | last post by:
Hi all, I am writing a little application. The main form presents a main menu and within this menu there is an "options" part. This option will show a new form, where some application settings...
3
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
1
by: William Sullivan | last post by:
I've spent plenty of time building windows forms, but I'm working on a web project now. I've scanned a few ASP NET books, checked out some tutorials, but I am unable to figure out how to lay out...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
3
by: misra.manisha | last post by:
Hi, I am using frames (I know that its not a good practice, but I have to). Each of these frames have separate form variables, all of which are needed in the parent frame. Now, the problem is...
1
by: troytabor | last post by:
I was having an issue at www.logolounge.com where the form in the bottom frame was no longer accessible through javascript in FireFox 1.5.0.8. I found the solution and wanted to share it. The...
2
by: fluk | last post by:
Hi guys, This is the structure of every page inside my site. Header: nothing special Body: leftColumn: a Javascript folding menu, which calls the the actual contents of the page something...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.