Click to See Complete Forum and Search --> : 2 Easy questions
I have a long ASP with a number of fields. I would like to display the time taken in filling up the form and always display it. (The time taken is currently displayed in the page). Is it possible to put it in a control and make it appear either at the top or bottom always - just like the toolbar is ? Or do i have to use frames?
Also how can i get the current element that has the focus in the ASP(something like VB's form.ActiveControl)
Thanx!
monte96
Sep 19th, 2000, 01:33 PM
You will most likely need to either do it in a frame or create a java applet.
---
document.activeElement.id
^^
will return the id of the current active element, presuming that you gave it an id to begin with.
Thanx for your replies.
I just started on frames for my first problem. It works fine except that
1. When the page that calls the other page with the frames is closed(through Redirect), the bottom frame is still visible.
2. Under what situations would window.close() not work. After using frames, close() does not seem to be doing anything in my parent page. I am not sure if there is a link but windows.opener.width also gives an error.
Also, which event would you use to capture the backspace key(keycode 8) for a radio button?
artsapimp
Sep 19th, 2000, 05:20 PM
Any link going from the main page to another web site where you wouldn't want the bottom frame to stay should have a target set to it. Like this...
<a href="newpage.asp" target="_parent">Leave Site</a>
In the frames page you should have each frame named, usually main, header, top, bottom... simple things like that. Your links can then choose which frame to change. _parent changes the whole page, both frames.
HTH.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.