java popup stops GIF anims?

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

    java popup stops GIF anims?

    Hi....

    I have a little javascript popup box that people click on to open up an
    information panel.

    I made some little blinking star anims on the page that stop blinking after
    the popup has been activated - and stay "off" even after the popup is
    closed.

    any fix for this?

    Here's the popup code:

    function openit() {
    newWindow = window.open('po pups/newsflash.htm', 'newWindow',
    'resizable,widt h=550,height=55 0,scrollbars=ye s,resizable=yes ,left=100,top=1 0
    0');

    Here's the anchor code:

    <a href="javascrip t:openit();"><f ont color="#FFFF99" ><strong>NEWS
    FLASH!!</strong></font></a></div>


    thanks for any suggestions..

    Eugene


  • Michael Winter

    #2
    Re: java popup stops GIF anims?

    On Wed, 28 Jan 2004 00:32:43 GMT, Eugene <love@life.co m> wrote:
    [color=blue]
    > Hi....
    >
    > I have a little javascript popup box that people click on to open up an
    > information panel.
    >
    > I made some little blinking star anims on the page that stop blinking
    > after the popup has been activated - and stay "off" even after the
    > popup is closed.
    >
    > any fix for this?[/color]

    Probably because you are using the JavaScript pseudo-protocol. When you
    click a link, the browser expects the page to change, so it stops things
    like GIF animation. There is only one real reason to use the JavaScript
    pseudo-protocol[1], and you aren't using it in that way.

    I would recommend changing the HTML to:

    <a href="newsflash .html"
    onclick="openit ();return false;">News Flash</a>

    where newsflash.html provides an alternate, non-JavaScript[2] method of
    reading the "news flash".

    I would also recommend updating your page to use style sheets instead of
    deprecated presentational elements like FONT, but this has no bearing on
    your problem.

    Mike

    [1] For using bookmarklets.
    [2] By that, I mean no JavaScript whatsoever. Only people with JavaScript
    disabled will be reading that page, so there's no point in including
    JavaScript.

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

    Comment

    • Randy Webb

      #3
      Re: java popup stops GIF anims?

      Eugene wrote:
      [color=blue]
      > Hi....
      > Here's the anchor code:
      >
      > <a href="javascrip t:openit();"><f ont color="#FFFF99" ><strong>NEWS
      > FLASH!!</strong></font></a></div>
      >[/color]



      One of the side effects of javascript: URL's is that they kill animated
      gifs.

      --
      Randy
      Chance Favors The Prepared Mind
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Richard Cornford

        #4
        Re: java popup stops GIF anims?

        "Eugene" <love@life.co m> wrote in message
        news:LqDRb.1931 7$P51.2910@clgr ps12...
        <snip>[color=blue]
        > <a href="javascrip t:openit(); ...[/color]
        <snip>

        javascript pseudo protocol HREFs are treated as navigation by some
        browsers/browser versions and once the browser gets the idea that it is
        being navigated it stops bothering with resource hungry tasks on the
        current page - pending its replacement. Stopping animating GIF images is
        the most self evident symptom of the shutting down of resource hungry
        tasks on the current page.

        The solution to this (and other browser/version depended consequences of
        their use) is to never use javascript pseudo protocol HREFs.

        <URL: http://jibbering.com/faq/#FAQ4_26 >

        Richard.


        Comment

        • Randy Webb

          #5
          Re: java popup stops GIF anims?

          Michael Winter wrote:
          [color=blue]
          > On Wed, 28 Jan 2004 00:32:43 GMT, Eugene <love@life.co m> wrote:
          >[/color]

          <--snip-->
          [color=blue]
          > There is only one real reason to use the JavaScript
          > pseudo-protocol[1], and you aren't using it in that way.[/color]

          <--snip-->
          [color=blue]
          > [1] For using bookmarklets.[/color]

          Before you say[1] the "only one reason"[2] you should open K-Meleon[3]
          and find the Javascript Debugger[4].

          [1] As much as you can "say" anything in usenet, its typed.

          [2] I obviously disagree with that part.

          [3] Its a Mozilla Based Browser, but lacks the Tools>Web
          Development>Jav ascript Console path to open the Console.

          [4] Its actually the Javascript Console, but I footnoted it in an effort
          to make a point about the over-use of footnotes in Usenet[5]

          [5] Even Usenet when its accessed by a web-based forum that portrays
          itself as a private forum.


          As for the javascript: pseudo-protocol, I just mentioned one very valid
          use for it, can you name others (besides an href) and explain why they
          are "bad" since you claim there is "only one reason" to use it?

          --
          Randy
          Chance Favors The Prepared Mind
          comp.lang.javas cript FAQ - http://jibbering.com/faq/

          Comment

          • Michael Winter

            #6
            Re: java popup stops GIF anims?

            On Tue, 27 Jan 2004 20:47:01 +0000, Randy Webb <hikksnotathome @aol.com>
            wrote:
            [color=blue]
            > Michael Winter wrote:[/color]

            [snip]
            [color=blue][color=green]
            >> There is only one real reason to use the JavaScript pseudo-protocol[1],
            >> and you aren't using it in that way.[/color]
            >
            > <--snip-->
            >[color=green]
            >> [1] For using bookmarklets.[/color]
            >
            > Before you say[1] the "only one reason"[2] you should open K-Meleon[3]
            > and find the Javascript Debugger[4].[/color]

            That's a bad example. What use would such a link be on a public webpage?
            The method used might only work on that browser, rendering it useless for
            the general population.
            [color=blue]
            > [1] As much as you can "say" anything in usenet, its typed.
            >
            > [2] I obviously disagree with that part.[/color]

            Rather than playing the fool, you simply could have said something like:

            "While in principal I agree that use of the JavaScript pseudo-
            protocol can be a bad idea, especially when a better alternative
            exists, there are more good uses for it than you care to suggest."

            ....then list some good uses for it.
            [color=blue]
            > [3] Its a Mozilla Based Browser, but lacks the Tools>Web
            > Development>Jav ascript Console path to open the Console.
            >
            > [4] Its actually the Javascript Console, but I footnoted it in an effort
            > to make a point about the over-use of footnotes in Usenet[5][/color]

            I used two, and only one, upon reflection, was unwarranted. Does is really
            matter? I think not.
            [color=blue]
            > [5] Even Usenet when its accessed by a web-based forum that portrays
            > itself as a private forum.
            >
            > As for the javascript: pseudo-protocol, I just mentioned one very valid
            > use for it, can you name others (besides an href) and explain why they
            > are "bad" since you claim there is "only one reason" to use it?[/color]

            I can't, because I have *never* found a good use for it. That doesn't mean
            to say there isn't, but I've never found one, and I seriously doubt the OP
            will, either. The point is that the OP shouldn't be using it in this case.
            It's also the point that you should be making: my general argument is
            right, here, but isn't in every situation.

            When used inappropriately , the pseudo-protocol is bad. It causes unwanted
            side-effects (this thread is an example of that) and is inconsiderate of
            users with JavaScript-disabled browsers.

            In future, don't deride my comments. Simply correct me, politely.

            Mike

            --
            Michael Winter
            M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

            Comment

            • George Hester

              #7
              Re: java popup stops GIF anims?

              You have to reload the page.

              --
              George Hester
              _______________ _______________ ____
              "Eugene" <love@life.co m> wrote in message news:LqDRb.1931 7$P51.2910@clgr ps12...[color=blue]
              > Hi....
              >
              > I have a little javascript popup box that people click on to open up an
              > information panel.
              >
              > I made some little blinking star anims on the page that stop blinking after
              > the popup has been activated - and stay "off" even after the popup is
              > closed.
              >
              > any fix for this?
              >
              > Here's the popup code:
              >
              > function openit() {
              > newWindow = window.open('po pups/newsflash.htm', 'newWindow',
              > 'resizable,widt h=550,height=55 0,scrollbars=ye s,resizable=yes ,left=100,top=1 0
              > 0');
              >
              > Here's the anchor code:
              >
              > <a href="javascrip t:openit();"><f ont color="#FFFF99" ><strong>NEWS
              > FLASH!!</strong></font></a></div>
              >
              >
              > thanks for any suggestions..
              >
              > Eugene
              >
              >[/color]

              Comment

              • George Hester

                #8
                Re: java popup stops GIF anims?

                Are you saying that if the JavaScript protocol is removed everywhere in the op's page then the animating gifs will continue to animate after there has been some JavaScript interaction with the page? Thanks.

                --
                George Hester
                _______________ _______________ ____
                "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message news:bv72vn$d7p $1$8302bc10@new s.demon.co.uk.. .[color=blue]
                > "Eugene" <love@life.co m> wrote in message
                > news:LqDRb.1931 7$P51.2910@clgr ps12...
                > <snip>[color=green]
                > > <a href="javascrip t:openit(); ...[/color]
                > <snip>
                >
                > javascript pseudo protocol HREFs are treated as navigation by some
                > browsers/browser versions and once the browser gets the idea that it is
                > being navigated it stops bothering with resource hungry tasks on the
                > current page - pending its replacement. Stopping animating GIF images is
                > the most self evident symptom of the shutting down of resource hungry
                > tasks on the current page.
                >
                > The solution to this (and other browser/version depended consequences of
                > their use) is to never use javascript pseudo protocol HREFs.
                >
                > <URL: http://jibbering.com/faq/#FAQ4_26 >
                >
                > Richard.
                >
                >[/color]

                Comment

                • Richard Cornford

                  #9
                  Re: java popup stops GIF anims?

                  "George Hester" <hesterloli@hot mail.com> wrote in message
                  news:jaRRb.1014 53$Su5.55352@tw ister.nyroc.rr. com...
                  You have to reload the page.
                  <snip>

                  Reloading the page is a ludicrously indirect way of addressing a problem
                  with a known and clearly identified cause and a simple solution. But
                  typical of *your* coding style.

                  Richard.


                  Comment

                  • Richard Cornford

                    #10
                    Re: java popup stops GIF anims?

                    "George Hester" <hesterloli@hot mail.com> wrote in message
                    news:_gRRb.1015 19$Su5.14434@tw ister.nyroc.rr. com...[color=blue]
                    >Are you saying that if the JavaScript protocol is removed
                    >everywhere in the op's page then the animating gifs will
                    >continue to animate after there has been some JavaScript
                    >interaction with the page? Thanks.[/color]

                    I told you the answer to that question 11 months ago. You weren't
                    interested then and I have no intention of wasting any more of my time
                    on you.

                    Richard.


                    Comment

                    • George Hester

                      #11
                      Re: java popup stops GIF anims?

                      god almighty what a nasty group this place has sometimes.

                      --
                      George Hester
                      _______________ _______________ ____
                      "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message news:bv8oqf$1u1 $1$8302bc10@new s.demon.co.uk.. .[color=blue]
                      > "George Hester" <hesterloli@hot mail.com> wrote in message
                      > news:_gRRb.1015 19$Su5.14434@tw ister.nyroc.rr. com...[color=green]
                      > >Are you saying that if the JavaScript protocol is removed
                      > >everywhere in the op's page then the animating gifs will
                      > >continue to animate after there has been some JavaScript
                      > >interaction with the page? Thanks.[/color]
                      >
                      > I told you the answer to that question 11 months ago. You weren't
                      > interested then and I have no intention of wasting any more of my time
                      > on you.
                      >
                      > Richard.
                      >
                      >[/color]

                      Comment

                      • George Hester

                        #12
                        Re: java popup stops GIF anims?

                        fu

                        --
                        George Hester
                        _______________ _______________ ____
                        "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message news:bv8oq0$47c $1$830fa7a5@new s.demon.co.uk.. .[color=blue]
                        > "George Hester" <hesterloli@hot mail.com> wrote in message
                        > news:jaRRb.1014 53$Su5.55352@tw ister.nyroc.rr. com...
                        > You have to reload the page.
                        > <snip>
                        >
                        > Reloading the page is a ludicrously indirect way of addressing a problem
                        > with a known and clearly identified cause and a simple solution. But
                        > typical of *your* coding style.
                        >
                        > Richard.
                        >
                        >[/color]

                        Comment

                        • Richard Cornford

                          #13
                          Re: java popup stops GIF anims?

                          "George Hester" <hesterloli@hot mail.com> wrote in message
                          news:0VRRb.1023 78$Su5.31199@tw ister.nyroc.rr. com...
                          god almighty what a nasty group this place has sometimes.

                          As you sow, so you reap. Go back and look at when you asked this
                          question in February 2003:-

                          <URL:

                          ter.nyroc.rr.co m >

                          -and particularly your responses to the advice you were given. And then
                          tell me what possible reason you could have for expecting anything
                          resembling help form me.

                          Richard.


                          Comment

                          • George Hester

                            #14
                            Re: java popup stops GIF anims?

                            Wise words from an imbecile.

                            --
                            George Hester
                            _______________ _______________ ____
                            "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message news:bv91f0$nof $1$830fa17d@new s.demon.co.uk.. .[color=blue]
                            > "George Hester" <hesterloli@hot mail.com> wrote in message
                            > news:0VRRb.1023 78$Su5.31199@tw ister.nyroc.rr. com...
                            > god almighty what a nasty group this place has sometimes.
                            >
                            > As you sow, so you reap. Go back and look at when you asked this
                            > question in February 2003:-
                            >
                            > <URL:
                            > http://groups.google.com/groups?thre...4.41234%40twis
                            > ter.nyroc.rr.co m >
                            >
                            > -and particularly your responses to the advice you were given. And then
                            > tell me what possible reason you could have for expecting anything
                            > resembling help form me.
                            >
                            > Richard.
                            >
                            >[/color]

                            Comment

                            • kaeli

                              #15
                              Re: java popup stops GIF anims?

                              In article <bv91f0$nof$1$8 30fa17d@news.de mon.co.uk>,
                              Richard@litotes .demon.co.uk enlightened us with...[color=blue]
                              > "George Hester" <hesterloli@hot mail.com> wrote in message
                              > news:0VRRb.1023 78$Su5.31199@tw ister.nyroc.rr. com...
                              > god almighty what a nasty group this place has sometimes.
                              >
                              > As you sow, so you reap. Go back and look at when you asked this
                              > question in February 2003:-
                              >
                              > <URL:
                              > http://groups.google.com/groups?thre...4.41234%40twis
                              > ter.nyroc.rr.co m >
                              >
                              > -and particularly your responses to the advice you were given. And then
                              > tell me what possible reason you could have for expecting anything
                              > resembling help form me.
                              >[/color]

                              Or from the rest of us who have him killfiled from that time so we don't
                              have to read the arguing.

                              Would you stop arguing with him now? ;)


                              --
                              --
                              ~kaeli~
                              Is it true that cannibals don't eat clowns because they
                              taste funny?



                              Comment

                              Working...