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

Re: More tabview+editor questions

Expand Messages
  • Brian
    Dav, I tried to turn the server side app into a standalone html+js app. I just can t get the content of the tabs to load but you ll find the general idea of
    Message 1 of 5 , Sep 26, 2008
    • 0 Attachment
      Dav,
         I tried to turn the server side app into a standalone html+js app. I just can't get the content of the tabs to load but you'll find the general idea of what I am trying to accomplish in this example
        Thanks for all the help. So far the examples in your blog and the YUI site have given me most of what I needed to accomplish.

      Brian

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      >
      > Brian --
      >
      > Can you put together a sample page showing your interaction?
      > (You don't have to make your app public, just a simple page with the TabView/Editor interactions)
      >
      > It would help me debug it easier..
      >
      > 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: Brian bsbodden@...
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Friday, September 26, 2008 9:44:59 AM
      > > Subject: [ydn-javascript] More tabview+editor questions
      > >
      > > Here's my situation. I have an application in which I am using a
      > > TabView and the content of the tabs is server generated.
      > >
      > > - Main Tab: I have a list of items in a table. Each item has an edit
      > > and view button. When the either button is clicked I open a new tab to
      > > view or edit an item.
      > > - Edit Tab: This has a form that contains a RichTextEditor.
      > >
      > > The editor of course does not render properly since I nned to call the
      > > show method after the tab content is loaded.
      > >
      > > My question is how do I accomplish that with a dynamically generated
      > > tab? I am aware that I can add a listener to the activeTabChange
      > > method of the TabView but the problem is that the script that would
      > > register the callback is in the actual tab content being loaded.
      > >
      > > So I think this boils down to how to call a JS script *before* the
      > > TabView gets the activeTabChange event, since in that callback is
      > > where I would call the show method for the editor and currently it
      > > seems that the JS script on the edit content does not get run when the
      > > tab content is loaded or it is being loaded after the event has
      > > occurred so my call to show() is never invoked.
      > >
      > > Keep in mind that everything in my app is server generated so the only
      > > thing that my individual edit tabs know is the name of the TabView
      > > instance that they need to register a listener against.
      > >
      > > Thanks,
      > > Brian
      > >
      > >
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.