I'm also interested in putting some forms in my tabs, but in a
slightly different way. Looking for some "best practice" advice here.
I'd like to load my tabs dynamically using what is essentially the
code found in example:
So on my main page ("Main.html"), each tab is bound to an HTML page
("Tab1.html", "Tab2.html") with a form inside of it. But when I
submit each form, the browser now shows the content for "Tab1.html"
and not "Main.html".
I understand why this is happening and can figure out a way to fix it,
but would like advice on what the "best practice" would be. I was
planning on submitting an AJAX request for the content, but I'd need
to know where do the tabs "div"s exist in the DOM? For example, what
div to I replace the innerHTML for in the Yahoo example listed above?
> And just to be clear, having multiple forms in a TabView is no
> different than having multiple forms on a page. Just give each form
> its own id and name, and eveything should be fine.
> > Will --
> > This example on the developer site has a form in the last tab:
> > http://developer.yahoo.com/yui/examples/tabview/basic_from_markup.html
> > Hope that helps 8-)
> > Dav
> > Dav Glass
> > dav.glass@
> > blog.davglass.com
> > + Windows: n. - The most successful computer virus, ever. +
> > + A computer without a Microsoft operating system is like a dog
> > without bricks tied to its head +
> > + A Microsoft Certified Systems Engineer is to computing what a
> > McDonalds Certified Food Specialist is to fine cuisine +
> > ----- Original Message ----
> > From: willycheung <willycheung@>
> > Sent: Tuesday, February 27, 2007 3:15:49 PM
> > Hello,
> > I'm new to YUI. I want to put different forms in YUI TabView tabs,
> > and I was wondering if that's possible and how difficult it is to
> > implement. Since the examples on YUI site doesn't have forms, I'm
> > relying on the experiences that people have using TabView with forms.
> > Thanks in advance.
> > Will