473,586 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with forms within different frames.

Hello,

I have to iframes within one page. When I triger action in one frame, I
need to update the content's of other frame's selection list.

How to access second frame's form element from my first frame in index
page?

Suppose I named my second frame "content", and form element is named
simply "form1". If I try to access that form by refering:
parent.content. document.form1, I get nothing at all.

Can anyone help me with that...

Thank you,
Audrius

Sep 14 '05 #1
3 1512
I've managed it by adding a function to my parent frame, which accesses
inner frame's form.

Sep 14 '05 #2
Audrius wrote:
Hello,

I have to iframes within one page. When I triger action in one frame, I
need to update the content's of other frame's selection list.

How to access second frame's form element from my first frame in index
page?

Suppose I named my second frame "content", and form element is named
simply "form1". If I try to access that form by refering:
parent.content. document.form1, I get nothing at all.

Can anyone help me with that...

Thank you,
Audrius


Hi,

Try something like this. (Not tested)
suppose you have 2 pages (page2 as Iframe named myIFrame)

page1.html

<html>
...etc
<form name="page1form " action=".." method="POST">
<input type="text" name="firstname ">
</form>
</html>

page2.html
<html>
...etc
<form name="page2form " action=".." method="POST">
<input type="button" value="change page 1" onClick="doit() ;">
</form>

<script type="text/javascipt">
function doit(){
parent.frames.m yIFrame.documen t.forms.page1fo rm.firstname.va lue="Joe";
}
</script>
</html>
Regards,
Erwin Moller
Sep 14 '05 #3
Thanks for solution. I'll give a try.

Sep 15 '05 #4

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

Similar topics

2
2373
by: Mekon | last post by:
I have never written a line of script in my life but I need some help with it now. I have this auto generated code which I want to modify if possible The script generates a strip of thumbnails, and works quite well execpt that on dial up it is unbearably slow. The Thumbnails themselves are only 10kb but the total of them is a lot larger....
2
1822
by: relaxedrob | last post by:
Hi All! I have a frameset document and I want each mainFrame document to have the following ability: - be viewed by itself (i.e. without frames if within frameset). - be viewed within frame (i.e. put back in the frameset if not within frameset). I have written the following so far:
5
1341
by: Charles Harrison Caudill | last post by:
I've been going through tutorials, APIs, posts on this newsgroup, this newsgroup's faq, etc... I have a function that describes the fields that an object claims to have and I have found what that function reports to often be contradictory to what it will actually respond to. I have seen objects whose toString method returns "" (which...
7
2308
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
2
1222
by: Charles | last post by:
I need some ideas about how I can handle people that bookmark a page in my forms authentication web site. The main page of this web site has four frames, a header, footer, left side (used for a menu), and a body (used for information). When someone logs into the site and goes to one of these information pages sets a favorite for that page...
0
2580
by: Bob Davies | last post by:
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create tablestyles to format any of the columns within the datagrid, the exception "Can-not parent objects created on one thread to objects created on...
3
7601
by: Noremac | last post by:
My google skills must be dwindling. I am trying to determine how in ASP.NET 2.0 I can get the ReturnUrl querystring variable in Forms Authentication to contain the absolute url. Just like others that have posed this question, we are an enterprise environment that has multiple websites across multiple servers and we are trying to setup Web...
3
1392
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 that only one frame in the parent frame has a submit button. Is there any way in which I can submit the forms of other frames on click of the...
11
12459
by: Krzysztof Retel | last post by:
Hi guys, I am struggling writing fast UDP server. It has to handle around 10000 UDP packets per second. I started building that with non blocking socket and threads. Unfortunately my approach does not work at all. I wrote a simple case test: client and server. The client sends 2200 packets within 0.137447118759 secs. The tcpdump received...
0
7841
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7965
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3838
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1184
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.