CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Listbox onchange ajax form submit

Print topic Send  topic

Author Message

Posts: 2
Posted: 11/25/2008, 1:57 PM

After digging around a bit trying to figure out the root cause of why the Update Panel stops working right when you use the 'onchange' event to submit a form I found this solution.

Basically what it comes down to is that the javascript submit() function automatically overwrites everything the Update Panel uses for its 'onsubmit' event. If you're like me and you know that you'll need to call 'onsubmit' you can just straight up replace this (the code CCS writes when you add an onchange submit action):

with this:

If you want the dual functionality of checking whether or not there's already an onsubmit event, then you'll want to read more in depth (in the comments really) within that link above.
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.