473,407 Members | 2,306 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,407 software developers and data experts.

Question about focus()

How do I focus() to a form-field, from a iframe - to its parent frame?

Apr 18 '06 #1
2 1416
da******@gmail.com schrieb:
How do I focus() to a form-field, from a iframe - to its parent frame?


parent.formname.fieldname.focus()

doesn't not work ?

rob
Apr 18 '06 #2
The form is somewhat deeply nested inside an iframe inside frameset
"FRAME_ONE"

INSIDE INDEX.PHP
<FRAMESET ID="MAIN_PAGE" FRAMESPACING="0" BORDER="false" ROWS="100%,*"
FRAMEBORDER="0">
<FRAME NAME="FRAME_ONE" src="./page1.php" scrolling="yes">
<FRAME NAME="FRAME_TWO" src="./page2.php">
</FRAMESET>
INSIDE PAGE1.PHP
<IFRAME marginWidth=0 marginHeight=0 name="IFRAME_ONE" src=./frame1.php
frameBorder=0 scrolling=no></IFRAME>

INSIDE PAGE2.PHP
<want to put focus() here, inside PAGE2.PHP to affect IFRAME_ONE forms>

Where/how should I position the focus() to touch this iframe?

thank you so much

I'm almost ripping my hair out on this - hopefully you can make it
clear. Best, Dave

Robert Degen wrote:
da******@gmail.com schrieb:
How do I focus() to a form-field, from a iframe - to its parent frame?


parent.formname.fieldname.focus()

doesn't not work ?

rob


Apr 18 '06 #3

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

Similar topics

6
by: Dave | last post by:
Hi, With this code, I thought that any 'click' with the mouse would be captured on the window level and nothing would happen, but a click on the button triggers nevertheless the function hit()....
1
by: Paul Tsai | last post by:
Dear All, I used csharp web form to develop my company web application, and my question is how shuld I do if I want to focus on my textbox(ex. like Java Script form.txtID.focus()). Thanks !!...
4
by: Christian Ista | last post by:
Hello, I have 2 questions : 1. On an ASP.NET page I have several controls (5 TextBox, 1 Dropdown and 1 button) Only the dropdown is AutoPostBack = true, the TextBox are SingleLine When I...
6
by: Mike | last post by:
I have a few textbox controls that have autopostback so that when they loose focus they update a label control that shows the count of characters in their respective text control. This works fine,...
3
by: Joe Delphi | last post by:
Hi, I have more experience working with Windows.Forms than with WebForms and sometimes it trips me up. When my page loads, I want a particular textbox to have the focus. I am attempting to...
2
by: joe | last post by:
Question about javascript -> onblur='self.focus' I use the method <body onblur='self.focus'> to keep the child browser always on the top , it success, but the textbox inside the child browser can...
4
by: Ron | last post by:
Hi all, Is there any way to make a particular tab have the focus without actually clicking on it? I know there's a On Mouse Move, but if I put in code to have that specific tab receive the...
2
by: Sid Price | last post by:
Is there a way of stopping a form getting focus in VB.NET. The scenario I have is a main form and a form used for display only. There are no user controls on the display form and it does not ever...
10
by: blaine | last post by:
Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is...
1
by: john ciriello | last post by:
I created a form and put a button and a label on it. I set the tabstops to false. When I first run it I can click the button and there is no focus rectangle. Which is what I want. However, if I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.