ready function too late?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kenny

    ready function too late?

    Noob here.

    I have incorporated the jquery ui tab control in my web app. It works Ok
    but the page comes up un-tabbed and then flashes into the desired tab
    setup. The tabs capability gets in via:

    <script>
    $(document).rea dy(function(){
    $("#example ul").tabs();
    });
    </script>

    Am I seeing the un-tabbed rendering initially because the above happens
    too late? I copied that from the example here:



    kt
  • sasuke

    #2
    Re: ready function too late?

    On Oct 10, 10:03 pm, Kenny <kentil...@gmai l.comwrote:
    Noob here.
    >
    I have incorporated the jquery ui tab control in my web app. It works Ok
    but the page comes up un-tabbed and then flashes into the desired tab
    setup. The tabs capability gets in via:
    >
    <script>
       $(document).rea dy(function(){
         $("#example ul").tabs();
       });
    </script>
    >
    Am I seeing the un-tabbed rendering initially because the above happens
    too late? I copied that from the example here:
    >
       http://docs.jquery.com/UI/Tabs
    It would be difficult getting any library specific help in this
    newsgroup; maybe try posting in a group which specifically targets
    your library of choice.
    <URL: http://groups.google.c om/group/jquery-en>

    HTH,
    /sasuke

    Comment

    • Kenny

      #3
      Re: ready function too late?

      sasuke wrote:
      On Oct 10, 10:03 pm, Kenny <kentil...@gmai l.comwrote:
      >
      >>Noob here.
      >>
      >>I have incorporated the jquery ui tab control in my web app. It works Ok
      >>but the page comes up un-tabbed and then flashes into the desired tab
      >>setup. The tabs capability gets in via:
      >>
      >><script>
      > $(document).rea dy(function(){
      > $("#example ul").tabs();
      > });
      >></script>
      >>
      >>Am I seeing the un-tabbed rendering initially because the above happens
      >>too late? I copied that from the example here:
      >>
      > http://docs.jquery.com/UI/Tabs
      >
      >
      It would be difficult getting any library specific help in this
      newsgroup;
      Why? Doesn't anyone use JQuery? I see it is considered Unworthy around
      here but religion aside I thought someone would still know it and have a
      clue. Besides, I was not asking for JQuery help, I was wondering if
      there is an earlier event or opportunity (directly in the DIV tag?)
      where I could get the tab set up.
      maybe try posting in a group which specifically targets
      your library of choice.
      <URL: http://groups.google.c om/group/jquery-en>
      I understand. I had already checked those out and was underwhelmed by
      the JQ options. Besides, as I said, I figured a JS group should have
      some expertise and might like to help a noob with a simple question.

      kt

      Comment

      • David Mark

        #4
        Re: ready function too late?

        On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
        Noob here.
        >
        I have incorporated the jquery ui tab control in my web app. It works Ok
        Take it out.

        Comment

        • Kenny

          #5
          Re: ready function too late?

          David Mark wrote:
          On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
          >
          >>Noob here.
          >>
          >>I have incorporated the jquery ui tab control in my web app. It works Ok
          >
          >
          Take it out.
          Right, and use WordPad to edit HTML directly. :) I saw your posts
          complaining about JQuery internals, sounds bad. But I am a non-Web
          programmer trying to get a prototype together /fast/ for a demo so there
          is not time to go to school on JS and JQuery is working for us.

          Can you recommend another library? Dojo looks like an alternative, but
          the first thing I tried worked on one browser but not others. So far
          JQuery has worked everywhere.

          kt

          Comment

          • Evertjan.

            #6
            Re: ready function too late?

            Kenny wrote on 10 okt 2008 in comp.lang.javas cript:
            But I am a non-Web
            programmer trying to get a prototype together /fast/ for a demo so there
            is not time to go to school on JS and JQuery is working for us.
            If JQuery were working for you, should you have such a Q?

            JQuery is NOT usefull to overcome the inability of writing Javascript.


            --
            Evertjan.
            The Netherlands.
            (Please change the x'es to dots in my emailaddress)

            Comment

            • dhtml

              #7
              Re: ready function too late?

              Kenny wrote:
              David Mark wrote:
              >On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
              >>
              >>Noob here.
              >>>
              >>I have incorporated the jquery ui tab control in my web app. It works Ok
              >>
              >>
              >Take it out.
              >
              Right, and use WordPad to edit HTML directly. :) I saw your posts
              complaining about JQuery internals, sounds bad. But I am a non-Web
              programmer trying to get a prototype together /fast/ for a demo so there
              is not time to go to school on JS and JQuery is working for us.
              >
              You are in the wrong place.


              has links to jQuery, states:

              "...
              No javascript libraries are endorsed by this group. If you are looking
              for help using a library, visit that library's discussion group instead.
              jQuery [English]

              Prototype & Scriptaculous


              ...."

              Can you recommend another library?
              No. That's not what this group is about anyway.

              Garrett
              >
              kt

              Comment

              • dhtml

                #8
                Re: ready function too late?

                dhtml wrote:
                Kenny wrote:
                >David Mark wrote:
                >>On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
                >>>
                >>>Noob here.
                >>>>
                >>>I have incorporated the jquery ui tab control in my web app. It
                >>>works Ok
                >>>
                >>>
                >>Take it out.
                >>
                >Right, and use WordPad to edit HTML directly. :) I saw your posts
                >complaining about JQuery internals, sounds bad. But I am a non-Web
                >programmer trying to get a prototype together /fast/ for a demo so
                >there is not time to go to school on JS and JQuery is working for us.
                >>
                >
                You are in the wrong place.

                >
                has links to jQuery, states:
                >
                "...
                No javascript libraries are endorsed by this group. If you are looking
                for help using a library, visit that library's discussion group instead.
                jQuery [English]

                Prototype & Scriptaculous

                >
                ..."
                >
                >
                >Can you recommend another library?
                >
                No. That's not what this group is about anyway.
                >
                <FAQENTRY>
                Garrett
                >
                >>
                >kt

                Comment

                • David Mark

                  #9
                  Re: ready function too late?

                  On Oct 10, 3:07 pm, Kenny <kentil...@gmai l.comwrote:
                  David Mark wrote:
                  On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
                  >
                  >Noob here.
                  >
                  >I have incorporated the jquery ui tab control in my web app. It works Ok
                  >
                  Take it out.
                  >
                  Right, and use WordPad to edit HTML directly. :) I saw your posts
                  What do you use to edit HTML? I certainly wouldn't recommend WordPad.
                  complaining about JQuery internals, sounds bad. But I am a non-Web
                  It is bad.
                  programmer trying to get a prototype together /fast/ for a demo so there
                  Okay. For a prototype. Just realize you can't put into production
                  like that.

                  But now you are in the *very* unfortunate position of having to ask
                  questions of other jQuery users. Best of luck. I don't know why your
                  prototype has a FOUC and I don't have time to delve into it. If it
                  were a basic stand-alone tab script, then maybe as it would be much
                  simpler to spot the mistake. See where this is going?
                  is not time to go to school on JS and JQuery is working for us.
                  Sounds like it is working swimmingly. And as if you could judge what
                  works and what doesn't when using jQuery. Make sure you test it in
                  the same browser on the same box in the same configuration right
                  before the presentation.
                  >
                  Can you recommend another library? Dojo looks like an alternative, but
                  It's crap and general purpose browser scripting libraries are
                  generally a bad idea. You might look for a simple tab script for your
                  prototype.
                  the first thing I tried worked on one browser but not others. So far
                  The first thing you tried? Try again. The first thing the jQuery
                  genius tried didn't work so hot either. He apparently quit trying
                  too.
                  JQuery has worked everywhere.
                  Define "everywhere ." My guess is you mean everywhere you thought to
                  try it, which means nothing.

                  Comment

                  • Thomas 'PointedEars' Lahn

                    #10
                    Re: ready function too late?

                    dhtml wrote:
                    Kenny wrote:
                    >David Mark wrote:
                    >>On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
                    >>>Noob here.
                    >>>>
                    >>>I have incorporated the jquery ui tab control in my web app. It works Ok
                    >>>
                    >>Take it out.
                    >Right, and use WordPad to edit HTML directly. :) I saw your posts
                    >complaining about JQuery internals, sounds bad. But I am a non-Web
                    >programmer trying to get a prototype together /fast/ for a demo so there
                    >is not time to go to school on JS and JQuery is working for us.
                    >
                    You are in the wrong place.
                    Nonsense.

                    >
                    has links to jQuery, states:
                    >
                    "...
                    No javascript libraries are endorsed by this group.
                    That is not even remotely true which is why this section desperately needs
                    rewording or removing.
                    >Can you recommend another library?
                    >
                    No. That's not what this group is about anyway.
                    Given your appearance here only shortly ago, you are not exactly in a
                    position to make such an assessment. Incidentally, that is why I don't
                    think that despite your efforts (which are appreciated) you are the best
                    person for the job, at least not as a single FAQ maintainer.


                    PointedEars
                    --
                    var bugRiddenCrashP ronePieceOfJunk = (
                    navigator.userA gent.indexOf('M SIE 5') != -1
                    && navigator.userA gent.indexOf('M ac') != -1
                    ) // Plone, register_functi on.js:16

                    Comment

                    • Kenny

                      #11
                      Re: ready function too late?

                      David Mark wrote:
                      On Oct 10, 3:07 pm, Kenny <kentil...@gmai l.comwrote:
                      >
                      >>David Mark wrote:
                      >>
                      >>>On Oct 10, 1:03 pm, Kenny <kentil...@gmai l.comwrote:
                      >>
                      >>>>Noob here.
                      >>
                      >>>>I have incorporated the jquery ui tab control in my web app. It works Ok
                      >>
                      >>>Take it out.
                      >>
                      >>Right, and use WordPad to edit HTML directly. :) I saw your posts
                      >
                      >
                      What do you use to edit HTML? I certainly wouldn't recommend WordPad.
                      I actually use the Lisp editor in Emacs mode. A little scary what
                      happens when I reflexively hit the keychord to compile a JS function. :)
                      >
                      >
                      >>complaining about JQuery internals, sounds bad. But I am a non-Web
                      >
                      >
                      It is bad.
                      >
                      >
                      >>programmer trying to get a prototype together /fast/ for a demo so there
                      >
                      >
                      Okay. For a prototype. Just realize you can't put into production
                      like that.
                      >
                      But now you are in the *very* unfortunate position of having to ask
                      questions of other jQuery users. Best of luck. I don't know why your
                      prototype has a FOUC and I don't have time to delve into it.
                      On Chrome and Safari it now works OK. I moved the tabbing script ahead
                      of everything else (it was after a lot of other JS). Timing is everything.
                      If it
                      were a basic stand-alone tab script, then maybe as it would be much
                      simpler to spot the mistake. See where this is going?
                      >
                      >
                      >>is not time to go to school on JS and JQuery is working for us.
                      >
                      >
                      Sounds like it is working swimmingly. And as if you could judge what
                      works and what doesn't when using jQuery.
                      True, who knows what evil lurks, but aside from IE behaving badly (we
                      did not have time to diagnose and just went with Chrome / Safari) the
                      way I judge is that I have yet to get an IR and there has been quite a
                      bit of use along the way. Management is thrilled with it and the rapid
                      development made possible by me using JQuery (and Lisp and Franz
                      WebActions). The scary thing is a month ago I had never programmed a web
                      app before. Now I have survived two rounds of layoffs and I am the
                      junior guy (tenure, not age).

                      ie, It is working for us.
                      Make sure you test it in
                      the same browser on the same box in the same configuration right
                      before the presentation.
                      Yep.
                      >
                      >
                      >>Can you recommend another library? Dojo looks like an alternative, but
                      >
                      >
                      It's crap and general purpose browser scripting libraries are
                      generally a bad idea. You might look for a simple tab script for your
                      prototype.
                      Straight JS/HTML? Ok, I'll keep an open mind on the next whiz-bang they
                      ask for.
                      >
                      >
                      >>the first thing I tried worked on one browser but not others. So far
                      >
                      >
                      The first thing you tried? Try again. The first thing the jQuery
                      genius tried didn't work so hot either. He apparently quit trying
                      too.
                      >
                      >
                      >>JQuery has worked everywhere.
                      >
                      >
                      Define "everywhere ." My guess is you mean everywhere you thought to
                      try it, which means nothing.
                      IE, Safari, FireFox, and Chrome. Safari and FireFox on both XP and OS X.

                      Thanks for a good laugh, guys. I respect yout passion.

                      kenny

                      Comment

                      Working...