submit another page before event button click fires

R

Robin

Hi,

I have a question: If I have a frameset, frame1 and frame2.
On frame2 I have a datagrid, on which I can add/update/delete rows.

If I submit that page, I catch these changes in events and update my
objects with it.

Now do I want a button in frame1, which does save. The problem is that
I first want to submit the page in frame2 to update my objects, before
the onClick event of my button occurs, which does the save of my
objects to the database.

So what I want is:
1 - CLick on button in frame1
2 - submit page frame2
3 - process events of page in frame2
4 - process events of page in frame1

Can anyone help me with this?

Gr.,

Robin
 
B

Bruce Barker

this must all be done with client script.

1) on button click in frame 1 force submit of frame 2
2) in top frame catch body load of frame 2 and notify frame 1
3) in frame 1, when notified of frame 2 load, submit frame 1 form

its all pretty easy. its best to put all the controlling code in the
frameset page.

-- bruce (sqlwork.com)
 
R

Robin

Bruce,

you make it sounds soooooo easy, but I really have no idea how to do
that... Can you give me an example?

Thanks,

Robin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top