473,695 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

submit another page before event button click fires

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
3 1740
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********@cge y.nl> wrote in message
news:3b******** *************** ***@posting.goo gle.com...
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
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
Must you use FRAMESET?
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
422
by: Bob Lehmann | last post by:
Hi, I pretty sure I've seen this problem addressed before, but I can't find any references. The short story is that I have I have multiple submit buttons on a page, each providing different functionality. For example, I have a search option, a log in option and a save text option. I would like to handle the submits in the Click event of each button. the
2
3111
by: 23s | last post by:
My site's login page has a form w/ 2 textboxes and a submit button. If I'm in either of those textboxes (i.e., either one of the textboxes has focus), in any given browser, hitting "enter" on my keyboard submits the form. Server side, I handle the click event of the submit button. This is the expected behavior, and this is the behavior irrespective of what browser I use on the login page. However... I have different page that is an...
4
1955
by: Bob Lehmann | last post by:
Hi, I pretty sure I've seen this problem addressed before, but I can't find any references. The short story is that I have I have multiple submit buttons on a page, each providing different functionality. For example, I have a search option, a log in option and a save text option. I would like to handle the submits in the Click event of each button. the
16
19028
by: NathyZif | last post by:
I know I know, why would I want to submit the form from server-side code, if the only way to get to the server-side code was BY submitting the form. But that's just it, when the code-behind page_load event fires it doesn't really "submit" the form as I would like it submitted. Here's my problem, I made a shopping cart for a website, and to get the information securely paid for I need to send a form to paypal using method="post" and...
0
8585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9004
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4351
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4592
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3024
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.