|
-
Aug 23rd, 2001, 11:00 AM
#1
Thread Starter
Frenzied Member
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
-
Aug 23rd, 2001, 11:06 AM
#2
Frenzied Member
elaborate more on what you trying to do,
maybe there's another way!!
-
Aug 23rd, 2001, 11:18 AM
#3
Frenzied Member
elaborate more on what you trying to do,
maybe there's another way!!
-
Aug 23rd, 2001, 11:23 AM
#4
Thread Starter
Frenzied Member
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
-
Aug 23rd, 2001, 11:41 AM
#5
Frenzied Member
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!!??
-
Aug 23rd, 2001, 11:54 AM
#6
Thread Starter
Frenzied Member
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
-
Aug 23rd, 2001, 12:21 PM
#7
Frenzied Member
-
Aug 23rd, 2001, 01:11 PM
#8
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|