Results 1 to 8 of 8

Thread: onUnload a Frameset

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    onUnload a Frameset

    I need to run a function when a frameset closes... i've tried the <body OnUnload=... but since ist a frameset there really isn't a body tag to use... any ideas?
    thanks,
    Michael

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    elaborate more on what you trying to do,
    maybe there's another way!!

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    elaborate more on what you trying to do,
    maybe there's another way!!

  4. #4

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    This is part of an Import function which is part of a large very complex web application. Basicly, throughout the import process I create a number of session vars and arrays. if the user quits the process in the middle and/or when they are done I want to kill all the session info created with that process. Since the function is done all with a frame being open I figured the closing of the frame would be the best way to fire the process (site writen in ASP & Javascript so a solution in either will work)
    Thanks,
    Michael

  5. #5
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    Since the function is done all with a frame being open
    how does this execute,

    there's no body to put an onLoad() function!!,

    i don't understand why all this execute in a frameset,
    is'nt there at least a page in this frameset!!??

  6. #6

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Sorry, I worded that poorly. I ment throughout the import process a frame is opened. walkthrough:
    1) user clicks 'import' button on main window A
    2) child B (frame)(contains upload.asp) pops up and waits for user to upload file
    3) child B (frame)(contains upload2.asp) processes the file upload and redirects (still in the child b framset) to import1.asp (shows 1st line of csv uploaded)
    4) when user clicks chk box that corresponds to field in 1st line of cvs uploaded child C (child of B) pops up and requests database field name to map value to (using a select box), assigns the input to a session array, uses an outer html call to dynamicly update the table in import1.asp, and closes itself. (user repeats step 4 till done)
    5) user hits 'import' button on child B (import1.asp) which submits the form with the two session arrays (values from csv and fields for database), builds the SQL string, processes any errors, and imports the data.
    6) child b reports sucess or failure, waits for user to close child B

    so, during the process child b remains open the whole time.
    thanks,
    Michael

  7. #7
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    sorry,
    but it's even more confusing,

    why don't you do it when a page unload in your frame set,


  8. #8

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    I need it to happen if the user closes the window at any point of the process so I coulden't do it in a page unload or I would wipe the session with each step. But... at the time of my last post I only knew of <body onUnload, which didnt work in the frameset... but I just learned of <frameset onUnload, which works.
    Thanks,
    Michael

Posting Permissions

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



Click Here to Expand Forum to Full Width