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
Printable View
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
elaborate more on what you trying to do,
maybe there's another way!!
elaborate more on what you trying to do,
maybe there's another way!!
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
how does this execute,Quote:
Since the function is done all with a frame being open
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!!??
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
sorry,
but it's even more confusing,
why don't you do it when a page unload in your frame set,
:confused: :confused: :confused:
:) 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