javascript include files

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

    javascript include files

    Hello:

    Can a javascript file that is included with a webpage with SRC="filename.j s"
    be read and/or saved by a user?

    I thought not, but now I wonder....

    Thanks

    John.


  • Lasse Reichstein Nielsen

    #2
    Re: javascript include files

    "JohnS" <PleaseNoSpam@m yaccount.com> writes:
    [color=blue]
    > Can a javascript file that is included with a webpage with SRC="filename.j s"
    > be read and/or saved by a user?[/color]

    Ofcourse.
    There might not be a direct way to see it (like View Source), but if he
    wants to see it, he can, due to all the usual reasons.
    [color=blue]
    > I thought not, but now I wonder....[/color]

    Anything that is sent by a server can be inspected by a user.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Alex Shi

      #3
      Re: javascript include files

      THanks for your reply! But I found an easy way to do the trick:

      1. For links within the site add a "onClick='conso le=false'".
      2. In the popup window function, before open window, check if the
      'console' is true, and before the function set console as true.

      Alex


      --
      =============== =============== =============== =====
      Cell Phone Batteries at 30-50%+ off retail prices!

      =============== =============== =============== =====
      "Lasse Reichstein Nielsen" <lrn@hotpop.com > :d6giowkb.fsf@h otpop.com...[color=blue]
      > "JohnS" <PleaseNoSpam@m yaccount.com> writes:
      >[color=green]
      > > Can a javascript file that is included with a webpage with[/color][/color]
      SRC="filename.j s"[color=blue][color=green]
      > > be read and/or saved by a user?[/color]
      >
      > Ofcourse.
      > There might not be a direct way to see it (like View Source), but if he
      > wants to see it, he can, due to all the usual reasons.
      >[color=green]
      > > I thought not, but now I wonder....[/color]
      >
      > Anything that is sent by a server can be inspected by a user.
      >
      > /L
      > --
      > Lasse Reichstein Nielsen - lrn@hotpop.com
      > Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
      > 'Faith without judgement merely degrades the spirit divine.'[/color]

      Comment

      • Evertjan.

        #4
        Re: javascript include files

        JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
        [color=blue]
        > Can a javascript file that is included with a webpage with
        > SRC="filename.j s" be read and/or saved by a user?
        >
        > I thought not, but now I wonder....
        >[/color]

        just type the complete url in the IE addrressbar:



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

        Comment

        • Lasse Reichstein Nielsen

          #5
          Re: javascript include files

          "Alex Shi" <chpshi@eol.c a> writes:
          [color=blue]
          > THanks for your reply! But I found an easy way to do the trick:
          >
          > 1. For links within the site add a "onClick='conso le=false'".
          > 2. In the popup window function, before open window, check if the
          > 'console' is true, and before the function set console as true.[/color]

          I am not sure exactly what you are suggesting to do, or what it is
          supposed to have as effect.

          Are you trying to prevent people from opening more than one window at
          the time or something?

          /L
          --
          Lasse Reichstein Nielsen - lrn@hotpop.com
          Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
          'Faith without judgement merely degrades the spirit divine.'

          Comment

          • JohnS

            #6
            Re: javascript include files

            No, actually that just renders a page with just <html></html>.

            But, ...Bedankt (thanks in Dutch)

            John.

            "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
            news:Xns93B55EC 01A1A8eejj99@19 4.109.133.29...[color=blue]
            > JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
            >[color=green]
            > > Can a javascript file that is included with a webpage with
            > > SRC="filename.j s" be read and/or saved by a user?
            > >
            > > I thought not, but now I wonder....
            > >[/color]
            >
            > just type the complete url in the IE addrressbar:
            >
            > http://myorg.org/jslib/myjslib.js
            >
            > --
            > Evertjan.
            > The Netherlands.
            > (Please change the x'es to dots in my emailaddress)[/color]


            Comment

            • JohnS

              #7
              Re: javascript include files

              Ok, that makes sense. The question then becomes... how?

              I have some code (partnumbers) in my javascript that I would like to be
              "secret"

              When I incude the js files,with only functions, I cannot see them with my
              regurlar IE6 browser.

              How could I see them? or again... could I?

              Thanks,

              John.

              p.s
              "Lasse Reichstein Nielsen" <lrn@hotpop.com > wrote in message
              news:d6giowkb.f sf@hotpop.com.. .[color=blue]
              > "JohnS" <PleaseNoSpam@m yaccount.com> writes:
              >[color=green]
              > > Can a javascript file that is included with a webpage with[/color][/color]
              SRC="filename.j s"[color=blue][color=green]
              > > be read and/or saved by a user?[/color]
              >
              > Ofcourse.
              > There might not be a direct way to see it (like View Source), but if he
              > wants to see it, he can, due to all the usual reasons.
              >[color=green]
              > > I thought not, but now I wonder....[/color]
              >
              > Anything that is sent by a server can be inspected by a user.
              >
              > /L
              > --
              > Lasse Reichstein Nielsen - lrn@hotpop.com
              > Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
              > 'Faith without judgement merely degrades the spirit divine.'[/color]


              Comment

              • Evertjan.

                #8
                Re: javascript include files

                JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
                [color=blue]
                > No, actually that just renders a page with just <html></html>.
                >
                > But, ...Bedankt (thanks in Dutch)
                >
                > John.
                >
                > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                > news:Xns93B55EC 01A1A8eejj99@19 4.109.133.29...[color=green]
                >> JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
                >>[color=darkred]
                >> > Can a javascript file that is included with a webpage with
                >> > SRC="filename.j s" be read and/or saved by a user?
                >> >
                >> > I thought not, but now I wonder....
                >> >[/color]
                >>
                >> just type the complete url in the IE addrressbar:
                >>
                >> http://myorg.org/jslib/myjslib.js[/color]
                > No, actually that just renders a page with just <html></html>.[/color]

                Not here, the file opens in Notepad.
                But perhaps this depands on your windows .js-file execution settings.

                view-source:http://myorg.org/jslib/myjslib.js

                however should always work.


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

                Comment

                • JohnS

                  #9
                  Re: javascript include files

                  Correct!

                  Thanks,

                  John.


                  "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                  news:Xns93B5D23 92BA24eejj99@19 4.109.133.29...[color=blue]
                  > JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
                  >[color=green]
                  > > No, actually that just renders a page with just <html></html>.
                  > >
                  > > But, ...Bedankt (thanks in Dutch)
                  > >
                  > > John.
                  > >
                  > > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                  > > news:Xns93B55EC 01A1A8eejj99@19 4.109.133.29...[color=darkred]
                  > >> JohnS wrote on 11 jul 2003 in comp.lang.javas cript:
                  > >>
                  > >> > Can a javascript file that is included with a webpage with
                  > >> > SRC="filename.j s" be read and/or saved by a user?
                  > >> >
                  > >> > I thought not, but now I wonder....
                  > >> >
                  > >>
                  > >> just type the complete url in the IE addrressbar:
                  > >>
                  > >> http://myorg.org/jslib/myjslib.js[/color]
                  > > No, actually that just renders a page with just <html></html>.[/color]
                  >
                  > Not here, the file opens in Notepad.
                  > But perhaps this depands on your windows .js-file execution settings.
                  >
                  > view-source:http://myorg.org/jslib/myjslib.js
                  >
                  > however should always work.
                  >
                  >
                  > --
                  > Evertjan.
                  > The Netherlands.
                  > (Please change the x'es to dots in my emailaddress)[/color]


                  Comment

                  Working...