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. Web Development
  3. ASP.NET
  4. scrolling webpage asp.net (C#)

scrolling webpage asp.net (C#)

Scheduled Pinned Locked Moved ASP.NET
csharpjavascripthtmlasp-nettools
6 Posts 2 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.
  • U Offline
    U Offline
    User 9427106
    wrote on last edited by
    #1

    this code doesnt work in page which has masterpage ? <script type="text/javascript"> $(document).ready(function() { $('html,body').animate({ scrollTop: 150 }, 1000); });</script>

    Richard DeemingR 1 Reply Last reply
    0
    • U User 9427106

      this code doesnt work in page which has masterpage ? <script type="text/javascript"> $(document).ready(function() { $('html,body').animate({ scrollTop: 150 }, 1000); });</script>

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Define "doesn't work". Do you get a script error in your browser's developer tools?


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      U 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Define "doesn't work". Do you get a script error in your browser's developer tools?


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        U Offline
        U Offline
        User 9427106
        wrote on last edited by
        #3

        thanks for reply! in this page it works correctly : http://amlakehamrah.ir/[^] BUT other pages doesnt

        Richard DeemingR 1 Reply Last reply
        0
        • U User 9427106

          thanks for reply! in this page it works correctly : http://amlakehamrah.ir/[^] BUT other pages doesnt

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          You're missing the point. "It doesn't work" isn't enough information for anyone to diagnose the problem. You need to describe the problem fully, including the full text of any error messages.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          U 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            You're missing the point. "It doesn't work" isn't enough information for anyone to diagnose the problem. You need to describe the problem fully, including the full text of any error messages.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            U Offline
            U Offline
            User 9427106
            wrote on last edited by
            #5

            Thanks for all! I have used like this and this is working now But how ??????? <script src="~/Script/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $("html,body").animate({scrollTop: 230}, 1000); }); </script> I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>

            Richard DeemingR 1 Reply Last reply
            0
            • U User 9427106

              Thanks for all! I have used like this and this is working now But how ??????? <script src="~/Script/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $("html,body").animate({scrollTop: 230}, 1000); }); </script> I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              Member 9473809 wrote:

              I was missing : <script src="~/Script/jquery.min.js" type="text/javascript"></script>

              That's to be expected. You're using jQuery from your script block, so you need to include the jQuery script before it will work.


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              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