Reloading page into frame after error

Results 1 to 2 of 2

Thread: Reloading page into frame after error

  1. #1
    Join Date
    Dec 1969

    Default Reloading page into frame after error

    Hi everyone,<BR><BR>I have a page with 3 frames where the top let frame accepts an input, the botom left frame takes the input to create an index, and the main page (3rd frame) displays whatever the choice was from the index.<BR><BR>What I need to do is to clear the main page from the main_frame when and incorrect input is entered in the top_left Frame. I alreaddy have an msgbox pop-up telling the user that the code is incorrect, but would like to load a blank page into the main_frame.<BR><BR>any ideas?<BR><BR>thanks<BR>Bastien <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Reloading page into frame after error

    in your input_frame, check for the error (as you already do to create the msgbox popup, presumably)- say setting a variable called "erroroccured" to true - then <BR><BR>then in the head of the input_frame use an ASP if statement to create a client side javascript block eg like this...<BR><BR>&#060;%if(erroroccured){%&#062;<BR> &#060;script language=javascript&#062;<BR>window.parent.main_fr ame.location=&#039;blank.htm&#039;<BR>&#060;/script&#062;<BR>&#060;%}%&#062;<BR><BR>this client-side cript only gets written to the frame if there is an error!

Posting Permissions

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