Results 1 to 4 of 4

Thread: 2 Easy questions

  1. #1
    Guest
    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!

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 00
    Location
    Somewhere in AZ
    Posts
    1,379
    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.


    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Guest
    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?

  4. #4
    Hyperactive Member
    Join Date
    Jan 00
    Posts
    323
    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...
    Code:
    <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.
    If you think education is expensive, try ignorance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •