Javascript debug ?

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

    Javascript debug ?

    Hello to all

    I have a problem with some javascript. On my computer I
    don't have any problem and the script work well, but
    somebody told me that my script crash on his computer.

    Why could something like that happen?

    Are the a possibility to activate a debug mode to see all
    the potential errors?

    Some of my script are also in PHP!

    Many thanks in advance for your help.

    Regards

    Otto

  • neerolyte

    #2
    Re: Javascript debug ?

    "Otto Haldi" wrote:
    [color=blue]
    > I have a problem with some javascript. On my computer I
    > don't have any problem and the script work well, but
    > somebody told me that my script crash on his computer.
    > Why could something like that happen?[/color]


    could just be a different browser.
    [color=blue]
    > Are the a possibility to activate a debug mode to see all
    > the potential errors?[/color]

    Mozilla based browsers (Firebird, Mozilla, Netscape) have a form of debug
    mode.
    Just type "javascript :" into the url bar, it will list all errors a bit more
    comfortably than MSIE does.
    [color=blue]
    > Some of my script are also in PHP![/color]

    as long as your scripts are being viewed through a PHP capable server and
    the are working, the are not the problem, but I don't *think* there is a way
    to debug PHP (would be very interested if I was wrong on that one).
    [color=blue]
    > Many thanks in advance for your help.
    >
    > Regards
    >
    > Otto
    >[/color]


    Comment

    • HikksNotAtHome

      #3
      Re: Javascript debug ?

      In article <btfgjn$hcn$1@o tis.netspace.ne t.au>, "neerolyte"
      <neerolyte@nets pace.nOsPaM.net .au> writes:
      [color=blue][color=green]
      >> Some of my script are also in PHP![/color]
      >
      >as long as your scripts are being viewed through a PHP capable server and
      >the are working, the are not the problem, but I don't *think* there is a way
      >to debug PHP (would be very interested if I was wrong on that one).[/color]

      PHP is as easy to debug as javascript is. If there is an error, PHP will tell
      you what line and what character (much as IE does with javascript). You just
      have to use an editor that tells you the line numbers.

      As for a Venkman type debugger for PHP, have never seen one and would be as
      interested as you are.
      --
      Randy

      Comment

      • Brian Genisio

        #4
        Re: Javascript debug ?

        Otto Haldi wrote:[color=blue]
        > Hello to all
        >
        > I have a problem with some javascript. On my computer I
        > don't have any problem and the script work well, but
        > somebody told me that my script crash on his computer.
        >
        > Why could something like that happen?
        >
        > Are the a possibility to activate a debug mode to see all
        > the potential errors?
        >
        > Some of my script are also in PHP!
        >
        > Many thanks in advance for your help.
        >
        > Regards
        >
        > Otto
        >[/color]

        When testing your site, you need to do it with as many browser
        combinations as possible... There are several factors that can change
        the way your page/script are managed (In order of significance):

        1. The Browser (IE, Mozilla/Netscape, Opera, Safari, Konqurer, etc)
        2. The Browser Version (3.0, 4.01, 5.5, 6.0, etc)
        3. The Operating System (Windows XP/2000/ME/98/95, Mac 9/X, Linux,
        FreeBSD, Solaris, Irix, etc)
        4. The Screen size and resolution (More important for appearance of HTML)
        5. The process speed of the machine it runs on. (This is really only the
        case if you have timing issues (race conditions) in your script)

        The best bet, is to install as many browsers as you can on your own
        systems, and when it is all done, have everyone involved test it on
        their systems.

        When a problem happens, make sure to get all of the information about
        the user's setup, so you can try to replicate it.

        Brian

        Comment

        • Otto Haldi

          #5
          Re: Javascript debug ?

          Many thanks to all for your help.

          I did my test with IE, Opera and RealOne an don't have any problem. But
          somebody told me he have many error with the same configuration as I use.
          Strange isn't it!..
          [color=blue]
          > 1. The Browser (IE, Mozilla/Netscape, Opera, Safari, Konqurer, etc)
          > 2. The Browser Version (3.0, 4.01, 5.5, 6.0, etc)
          > 3. The Operating System (Windows XP/2000/ME/98/95, Mac 9/X, Linux,
          > FreeBSD, Solaris, Irix, etc)
          > 4. The Screen size and resolution (More important for appearance of HTML)
          > 5. The process speed of the machine it runs on. (This is really only the
          > case if you have timing issues (race conditions) in your script)
          >[/color]

          Best regards

          Otto


          Comment

          • Otto Haldi

            #6
            Re: Javascript debug ?

            Thanks four your help,
            [color=blue]
            > could just be a different browser.
            >[/color]
            It's not we are both using XP with IE! Strange...

            Regards

            Otto

            Comment

            • Brian Genisio

              #7
              Re: Javascript debug ?

              Otto Haldi wrote:[color=blue]
              > Many thanks to all for your help.
              >
              > I did my test with IE, Opera and RealOne an don't have any problem. But
              > somebody told me he have many error with the same configuration as I use.
              > Strange isn't it!..
              >[/color]

              Nah... That is not strange, because the two of you do not have the same
              configuration. Something _has_ to be different. He may have different
              security/cache settings... javascript may be disabled... It could be a
              different version of IE, a different service pack on XP, etc.

              There is something significantly different between you and your user,
              and it is likely that other users will have the same difference.

              What is the website in question?

              Brian

              Comment

              • Jeff North

                #8
                Re: Javascript debug ?

                On Thu, 08 Jan 2004 07:25:28 -0500, in comp.lang.javas cript Brian
                Genisio <BrianGenisio@y ahoo.com> wrote:
                [color=blue]
                >| Otto Haldi wrote:
                >| > Many thanks to all for your help.
                >| >
                >| > I did my test with IE, Opera and RealOne an don't have any problem. But
                >| > somebody told me he have many error with the same configuration as I use.
                >| > Strange isn't it!..
                >|
                >| Nah... That is not strange, because the two of you do not have the same
                >| configuration. Something _has_ to be different. He may have different
                >| security/cache settings... javascript may be disabled... It could be a
                >| different version of IE, a different service pack on XP, etc.
                >|
                >| There is something significantly different between you and your user,
                >| and it is likely that other users will have the same difference.
                >|
                >| What is the website in question?[/color]

                Couldn't agree with you more. I'm in the final stages of testing an
                intranet site. All users are suppose to have a particular
                browser/software configuration.

                A user sent me a message stating that a particular area of the web
                site wasn't working. After much analysis of their settings I finally
                (out of shear desperation) told them to turn the machine off and log
                back in. It fixed the problem. Why? I have no idea. Maybe IT had
                changed the proxy settings or something.

                ---------------------------------------------------------------
                jnorth@yourpant sbigpond.net.au : Remove your pants to reply
                ---------------------------------------------------------------

                Comment

                • neerolyte

                  #9
                  Re: Javascript debug ?

                  > Couldn't agree with you more. I'm in the final stages of testing an[color=blue]
                  > intranet site. All users are suppose to have a particular
                  > browser/software configuration.
                  >
                  > A user sent me a message stating that a particular area of the web
                  > site wasn't working. After much analysis of their settings I finally
                  > (out of shear desperation) told them to turn the machine off and log
                  > back in. It fixed the problem. Why? I have no idea. Maybe IT had
                  > changed the proxy settings or something.[/color]

                  Well on storeys like this...at the college I was at last year they run two
                  MS Terminal Servers, one mirrored of the other, one server could not view
                  hotmail because for some reason it was not responding to the <meta
                  refresh....> tag that hotmail uses during login (well at least with their
                  old setup, I don't know if they still do).

                  both servers had all the same programs and service packs as well as updates
                  installed, the only difference is *possibly* the order they were installed
                  in.

                  just another example of how there is *always* a difference


                  Comment

                  • neerolyte

                    #10
                    Re: Javascript debug ?

                    > PHP is as easy to debug as javascript is. If there is an error, PHP will
                    tell[color=blue]
                    > you what line and what character (much as IE does with javascript). You[/color]
                    just[color=blue]
                    > have to use an editor that tells you the line numbers.
                    >
                    > As for a Venkman type debugger for PHP, have never seen one and would be[/color]
                    as[color=blue]
                    > interested as you are.
                    > --
                    > Randy[/color]
                    I don't know what Venkman means, but if it is like the ones in VC++ or MSVB,
                    then dreamweaver MX supplies a way of doing this for javascript, neat
                    feature!


                    Comment

                    • HikksNotAtHome

                      #11
                      Re: Javascript debug ?

                      In article <btkuaa$8gb$1@o tis.netspace.ne t.au>, "neerolyte"
                      <neerolyte@nets pace.nOsPaM.net .au> writes:
                      [color=blue]
                      >I don't know what Venkman means, but if it is like the ones in VC++ or MSVB,
                      >then dreamweaver MX supplies a way of doing this for javascript, neat
                      >feature![/color]

                      Venkman is the javascript debugger included with a lot of Mozilla based
                      browsers.
                      --
                      Randy

                      Comment

                      • Otto Haldi

                        #12
                        Re: Javascript debug ?

                        Hello Brian,

                        Here the link. It is in french and not ready, I'm still working on...



                        You can buy... nothing happend!.. <G>

                        Best Regards

                        Otto

                        [color=blue]
                        > Nah... That is not strange, because the two of you do not have the same
                        > configuration. Something _has_ to be different. He may have different
                        > security/cache settings... javascript may be disabled... It could be a
                        > different version of IE, a different service pack on XP, etc.
                        >
                        > There is something significantly different between you and your user,
                        > and it is likely that other users will have the same difference.
                        >
                        > What is the website in question?
                        >[/color]


                        Comment

                        • neerolyte

                          #13
                          Re: Javascript debug ?


                          "Otto Haldi" <ohaldi@freesur f.ch> wrote in message
                          news:VA.000001b 7.0029a5ae@free surf.ch...[color=blue]
                          > Hello Brian,
                          >
                          > Here the link. It is in french and not ready, I'm still working on...
                          >
                          > http://www.jean-mi.ch/heberge/jacot/minishop/index[/color]

                          click "Recherche">"Te xte">"a">"OK"

                          view the source and look at what your php is pumping out:

                          <TD><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a
                          href="group_lis t.php?maingroup =APPLE" TARGET="main">A PPLE</FONT></TD>

                          a tag opens but does not close, my version of ie seems to have a fit if
                          enough items are brought up on screen, this may be the reason, i can't see
                          any other reasons


                          Comment

                          • Otto Haldi

                            #14
                            Re: Javascript debug ?

                            Hello Neerolyte

                            Many thanks four your quick answer.

                            OK, I will have a look to this script once again!

                            Regards

                            Otto

                            [color=blue]
                            > View the source and look at what your php is pumping out:
                            >
                            > <TD><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a
                            > href="group_lis t.php?maingroup =APPLE" TARGET="main">A PPLE</FONT></TD>
                            >[/color]


                            Comment

                            Working...