PDA

View Full Version : Keeping innerHTML inside document.forms[0]



cgishack
13 Nov 2007, 8:36 AM
I am trying to use the EXT lib with ASP.NET.
I am placing user controls inside a lot of Tabs/Dialogs and Layout controls.

I ran into an issue when I want to have an ASP.NET button inside a Dialog box.
The dialog box removes the HTML from the page and is placing it under the closing </form>
tag.
When the button is not inside a form tag the post event it not triggered .
Is there a way I can set EXT to keep the rendered HTML inside document.forms[0] for the Dialog boxes?

Drew

random0xff
22 Nov 2007, 2:30 AM
I would really like this as well. Basically, Ext moves elements out of their original context, usually when doing layout. In ASP.NET this is a real problem, because ASP.NET can have only one form on the page, and all ASP.NET controls rely on being inside this form to function. So when they're moved out of the form they stop working (no more postback takes place when you click a button).

I think an option to specify an element to serve as the base for Ext to not put elements outside that element would do the trick. In my experience, often ASP.NET webpages have the form as the very first element inside the body.

Is this possible and can the Ext team take this into consideration?

Thanks!