Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to hide js file in the project

How to hide js file in the project

Scheduled Pinned Locked Moved ASP.NET
javascripttutorialquestion
11 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Amit Amit Amit

    I m using javascript in my project for certain actions ,... now i dont want to show my javascript to all.... hoe can i hide js file?

    Amit Metkar 3i-infotech, Mumbai.

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    You can link to it in your page instead of putting script in your page, but if the file is not available to an end user, then they can't use it. So, you cann't hide it.

    Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

    A 1 Reply Last reply
    0
    • C Christian Graus

      You can link to it in your page instead of putting script in your page, but if the file is not available to an end user, then they can't use it. So, you cann't hide it.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      A Offline
      A Offline
      Amit Amit Amit
      wrote on last edited by
      #3

      even if u give the path instead of putting js code in the aspx page, when u save the page that .js file also get saved in the disk. i dont want even this. Thanks For the Reply.

      Amit Metkar 3i-infotech, Mumbai.

      C 1 Reply Last reply
      0
      • A Amit Amit Amit

        even if u give the path instead of putting js code in the aspx page, when u save the page that .js file also get saved in the disk. i dont want even this. Thanks For the Reply.

        Amit Metkar 3i-infotech, Mumbai.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #4

        Well, as I said, you are screwed. Welcome to web development. If you don't give the user your js code, they can't run it. You can't protected it. You can obsfucate it, but that's about it, people can still reuse it. Why did I get a 1 vote for helping you ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        A 1 Reply Last reply
        0
        • C Christian Graus

          Well, as I said, you are screwed. Welcome to web development. If you don't give the user your js code, they can't run it. You can't protected it. You can obsfucate it, but that's about it, people can still reuse it. Why did I get a 1 vote for helping you ?

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          A Offline
          A Offline
          Amit Amit Amit
          wrote on last edited by
          #5

          Thanks budy, but u told me what i knew already. I just wanted to know, any method to hide those things like by encrypting them.

          Amit Metkar 3i-infotech, Mumbai.

          C 1 Reply Last reply
          0
          • A Amit Amit Amit

            Thanks budy, but u told me what i knew already. I just wanted to know, any method to hide those things like by encrypting them.

            Amit Metkar 3i-infotech, Mumbai.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #6

            Fine - well, would you be better off if I didn't confirm that it can't be done ?

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            A 2 Replies Last reply
            0
            • C Christian Graus

              Fine - well, would you be better off if I didn't confirm that it can't be done ?

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              A Offline
              A Offline
              Amit Amit Amit
              wrote on last edited by
              #7

              I didn't mean that way..... Thanks for the Help.... :)

              Amit Metkar 3i-infotech, Mumbai.

              1 Reply Last reply
              0
              • C Christian Graus

                Fine - well, would you be better off if I didn't confirm that it can't be done ?

                Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                A Offline
                A Offline
                Amit Amit Amit
                wrote on last edited by
                #8

                Please go through this link http://www.xuebrothers.net/sh/sh.htm[^] I got my answer... and u too..

                Amit Metkar 3i-infotech, Mumbai.

                C 1 Reply Last reply
                0
                • A Amit Amit Amit

                  Please go through this link http://www.xuebrothers.net/sh/sh.htm[^] I got my answer... and u too..

                  Amit Metkar 3i-infotech, Mumbai.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #9

                  Well, if you're happy to force your users to accept an ActiveX control, and you're willing to assume they will do it ( I never accept ActiveX controls from an unknown site ). I would never use it, but if it solves your problem, I am glad.

                  Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  A 1 Reply Last reply
                  0
                  • C Christian Graus

                    Well, if you're happy to force your users to accept an ActiveX control, and you're willing to assume they will do it ( I never accept ActiveX controls from an unknown site ). I would never use it, but if it solves your problem, I am glad.

                    Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                    A Offline
                    A Offline
                    Amit Amit Amit
                    wrote on last edited by
                    #10

                    :)

                    Amit Metkar 3i-infotech, Mumbai.

                    1 Reply Last reply
                    0
                    • A Amit Amit Amit

                      I m using javascript in my project for certain actions ,... now i dont want to show my javascript to all.... hoe can i hide js file?

                      Amit Metkar 3i-infotech, Mumbai.

                      M Offline
                      M Offline
                      MHASSANF
                      wrote on last edited by
                      #11

                      you can save the file in js format but in the irregular format ( e.g all the code in one line or use spam code ) ( google do this in the "map" service )

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups