Design and CSS styles
Version 4.x > Design and CSS styles > biz form jQuery Ajax submit View modes: 
User avatar
Member
Member
michael.hargreaves-roymorgan - 2/22/2010 11:46:36 PM
   
biz form jQuery Ajax submit

Hey,

I'm trying to make a bizform submit via a jQuery AJAx call.

Is this possible? and is there any docs or tutorials around that might help me achieve this?

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/11/2010 10:00:26 AM
   
RE:biz form jQuery Ajax submit
Hi,

Have you already achieved any results with your aim?
There were some attempts with BizForm in jQuery ThickBox, however that is different to your intended scenario.
I'm checking the possibilities with our developers and I'll get back with any info I get soon.

Regards,
Zdenek C.

User avatar
Certified Developer 10
Certified Developer 10
varinder-kudosweb - 8/30/2011 4:53:31 AM
   
RE:biz form jQuery Ajax submit
Hi
so is there any possibility of implementing jquery ajax on a biz form?

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 9/13/2011 9:32:48 AM
   
RE:biz form jQuery Ajax submit
Hello,

There hasn't been much about this written yet. So just two directions:

1) The easiest way to submit a bizform with partial postback (via AJAX) is to enable Use update panel in the web part properties / AJAX.

2) If you need to trigger additional scripts on the partial postback (e.g. refresh some dynamically generated elements of a form), then generally in OnContentLoad event of the web part placed inside UpdatePanel, the code should be run after partial postback.
You could try to use our ScriptHelper class to register the script... there are two overloads of RegisterStartupScript, one uses the Page and one the Control, maybe that would be helpful -
public static void RegisterStartupScript(Control control, Type type, string key, string script)

If the aim is to show the bizform in an effect window (like lightbox, thickbox, fancybox etc.), the key thing is to keep the form code inside the form tag that we render in the output HTML.

Optionally please try to describe your aim in more details so we could find a possible solution. Thanks.

Regards,
Zdenek C.