Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > BizForms in AJAX Accordion Not Submitting View modes: 
User avatar
Member
Member
Bev - 11/14/2012 2:37:05 AM
   
BizForms in AJAX Accordion Not Submitting
Morning all,

I have a bit of an issue with BizForms not submitting when they are contained within an AJAX accordion.

Basically, I have a page which lists a number of special offers and shows a summary view for the special offers. Each offer has a button, which you can click on to view more details about each offer. The details are obtained by AJAX which goes to the offer detail view page, and grabs the HTML which is in a particular <div>.

The problem I have is that some of the offer details contain BizForms, and when they are loaded in via AJAX they do not submit. But if I go to the offer page directly, and submit the BizForm, it submits correctly.

Has anyone done this before, or have any hints or tips on how I can get around this problem.

I know Kentico 4 is at its end of life, but the client is not interested in upgrading so it does limit my options a bit.

Thanks,

Bev

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/14/2012 5:29:35 PM
   
RE:BizForms in AJAX Accordion Not Submitting
Hello,

You are using the bizforms in a way they weren't intended to be used, so issues can arise. You are grabbing the HTML, however, if some javscript is generated into the source page this javascript isn't contained within the given DIV and isn't rendered in your accordion menu. There can be also other issues, which can be caused by the fact that the bizform isn't loaded in the standard .NET life cycle. You can try to debug the form with the developer tools or firebug for firefox, however I am not sure if you will be able to get the form running in such a setup at all.

Best regards,
Boris Pocatko