By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,665 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,665 IT Pros & Developers. It's quick & easy.

submit another page before event button click fires

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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)

"Robin" <Ro********@cgey.nl> wrote in message
news:3b**************************@posting.google.c om...
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

Nov 19 '05 #2

P: n/a
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

Nov 19 '05 #3

P: n/a
Must you use FRAMESET?
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.