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
  1. Home
  2. General Programming
  3. C#
  4. Javascript and c#

Javascript and c#

Scheduled Pinned Locked Moved C#
csharpjavascript
9 Posts 3 Posters 0 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.
  • V Offline
    V Offline
    vamsimohan21
    wrote on last edited by
    #1

    Is there any possibility to enable scripting in internetexplorer using c#

    Thanks In Advance

    C 1 Reply Last reply
    0
    • V vamsimohan21

      Is there any possibility to enable scripting in internetexplorer using c#

      Thanks In Advance

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

      You mean via ASP.NET, or when you have a client app running on the target machine ? If the latter, then perhaps, but I doubt it. If the former, then, no way. Your C# code is never going to run on the client.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      V 1 Reply Last reply
      0
      • C Christian Graus

        You mean via ASP.NET, or when you have a client app running on the target machine ? If the latter, then perhaps, but I doubt it. If the former, then, no way. Your C# code is never going to run on the client.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        V Offline
        V Offline
        vamsimohan21
        wrote on last edited by
        #3

        Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?

        Thanks In Advance

        V R C 3 Replies Last reply
        0
        • V vamsimohan21

          Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?

          Thanks In Advance

          V Offline
          V Offline
          vamsimohan21
          wrote on last edited by
          #4

          Please provide me any possible solution.....

          Thanks in Advance

          1 Reply Last reply
          0
          • V vamsimohan21

            Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?

            Thanks In Advance

            R Offline
            R Offline
            Rudolf Jan
            wrote on last edited by
            #5

            I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.

            V 2 Replies Last reply
            0
            • V vamsimohan21

              Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?

              Thanks In Advance

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

              The best way is to build your link the normal way, with a button or anchor tag.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              1 Reply Last reply
              0
              • R Rudolf Jan

                I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.

                V Offline
                V Offline
                vamsimohan21
                wrote on last edited by
                #7

                Thank you so much for the info.Can you just please give me any links for the java script sites.

                Thanks in advance

                1 Reply Last reply
                0
                • R Rudolf Jan

                  I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.

                  V Offline
                  V Offline
                  vamsimohan21
                  wrote on last edited by
                  #8

                  Thank you so much for the info.Can you just please give me any links for the java script sites.

                  Thanks in advance

                  R 1 Reply Last reply
                  0
                  • V vamsimohan21

                    Thank you so much for the info.Can you just please give me any links for the java script sites.

                    Thanks in advance

                    R Offline
                    R Offline
                    Rudolf Jan
                    wrote on last edited by
                    #9

                    For this purpose you do not need this forum. Google will do.

                    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