Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I have an application with an index.html page that loads two frames.

I have an application with an index.html page that loads two frames.

I have an application with an index.html page that loads two frames.

I have an application with an index.html page that loads two frames.
One is a navigation bar (using JavaScript) with options that change
color when you mouseover/mouseout. On that frame is a form (menuForm) with hidden fields that save results of user's initial input and its validation (or not), after they have entered their account info on the other frame and submitted it. When user has validated successfully, they can click on an option on the navigation bar and then I post the form with the hidden data and send it to a servlet. The servlet returns (in the other frame - "body" ) the results of whatever option user selected. The code bits below work on Netscape, but IE 4.0 gives me a script error because it doesn't like the "document.captureEvents(Event.CLICK);" line. This code is the only way I know to just load the results sent back from the servlet without then immediately replacing them by overwriting with the link in the <A HREF=... (The clickHandler(Click) code with the eventual return of false stops the link event from occurring.) Since IE doesn't work with this, does anyone know another way to stop the link from occurring, or is there another way I can do a submit without a button in my code that will simply do the submit and put the results in my "body" frame?

I'm sorry for the length of this question, but I don't know much about any scripting language and I'm at my wits end as to how to get this to work on both browsers. Any help will be very gratefully received!

Here's the HTML on the navigation bar...

<A HREF="companyMain.htm" onMouseOver="apage1()" onMouseOut="bpage1()">
<IMG SRC="company.gif" WIDTH=144 HEIGHT=12 BORDER=no></A>

Here's the JavaScript...

document.onClick = clickHandler;

function clickHandler(Click)
// **************************************************************
// ** Setup for view results..
// **************************************************************

return false;

RE: I have an application with an index.html page that loads two frames.

I figured out what it wanted. Instead of just trying to return a "false" from the function I called, I needed to change the <A HREF to say "return clickHandle...", and then add that clickHandle to each <A HREF where I wanted that to occur. It seems simple after you get it, but I sure wish I'd had a book with examples when I was trying to figure it out!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close