Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] Re: Forms in TabView

Expand Messages
  • Eric Miraglia
    Joel, If I understand your question correctly, you can get the content element for your Tab instance using the following syntax where myTabs is your TabView
    Message 1 of 6 , May 11, 2007
      Joel,

      If I understand your question correctly, you can get the content element for your Tab instance using the following syntax where myTabs is your TabView instance:

      myTabs.getTab(0).get("contentEl"); //returns the DOM reference for the content element of the first tab in myTabs

      Regards,
      Eric



      ______________________________________________
      Eric Miraglia
      Yahoo! User Interface Library


      On May 9, 2007, at 11:57 AM, wiegmajd wrote:

      Hello all,

      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:

      http://developer.yahoo.com/yui/examples/tabview/loading.html

      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?

      Many thanks!

      Joel

      --- In ydn-javascript@yahoogroups.com, "ted.husted" <groups@...> wrote:
      >
      > 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.
      >
      > -T.
      >
      > --- In ydn-javascript@yahoogroups.com, dav.glass@ wrote:
      > >
      > > 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@>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Tuesday, February 27, 2007 3:15:49 PM
      > > Subject: [ydn-javascript] Forms in TabView
      > >
      > > 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
      >


    Your message has been successfully submitted and would be delivered to recipients shortly.