List Info

Thread: Problem with YUI Dialog under ASP.NET




Problem with YUI Dialog under ASP.NET
user name
2006-09-14 21:21:53
Has anyone successfully gotten the YUI Dialog example
working in an 
ASPX page under .NET?  I am referring specifically to the
dialog 
example containing the form: 
http://developer.yahoo.com/yui/examples/container/d
ialog.html

The problem is that with ASP.NET, you are pretty much
expected (for 
better or worse) to always have one form containing all the
html, 
controls, etc.  MS expects it to be there so that their
postback 
framework will work (I assume...?).  I have a master page
(.NET 2.0)
set up and am trying to use the YUI dialog in a sub-page (in
a 
ContentPlaceHolder control).

The problem is that when the dialog code internally looks
for an 
existing form to attach to, it only looks inside the dialog
tag, and 
it doesn't find the outer ASP form.  It then tries to
create a form 
manually and append it to the DOM, but since you can't nest
forms, 
this also fails and you end up with no valid form element
for YUI.  
I realize that I can fix this by NOT having a
container-level form, 
but this sort of goes against the ASP.NET philosophy of
having a 
single form per page (again, for better or worse).

So, is there any way to convince the YUI code to look
outside of the 
dialog node and use the ASP form?  I assume that it's coded
the way 
it is currently so that multiple forms can play nicely
together on a 
single page, but it will never really work correctly for the
way 
ASP.NET developers are forced to do forms.

Thanks,
Brian






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://
groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    htt
p://groups.yahoo.com/group/ydn-javascript/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:ydn-javascript-digest@yahoogroups.com 
    mailto:ydn-javascript-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    ydn-javascript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )