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. To display Hourglass until the pages get loaded into frames

To display Hourglass until the pages get loaded into frames

Scheduled Pinned Locked Moved ASP.NET
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.
  • 3 Offline
    3 Offline
    333soori
    wrote on last edited by
    #1

    hi all..... can anybody give some idea to display an hourglass until the pages get loaded into the frames of page. in my page i have 4 frames and m displaying each frame with an aspx page. i want to display an hourglass until the last page get loaded. one thing there is no order of pages loading in. so pls give me some idea thanks in advance

    H 1 Reply Last reply
    0
    • 3 333soori

      hi all..... can anybody give some idea to display an hourglass until the pages get loaded into the frames of page. in my page i have 4 frames and m displaying each frame with an aspx page. i want to display an hourglass until the last page get loaded. one thing there is no order of pages loading in. so pls give me some idea thanks in advance

      H Offline
      H Offline
      Haissam
      wrote on last edited by
      #2

      Dear, you can use the javascript setTimeOut function which will check the frames if loaded every specific time ( you set the specific time) below is an example window.onload = function() {setTimeout(\"if(self.parent.frames['FRAME3'].document.readyState!='complete'){document.body.style.cursor = 'Wait';}else{document.body.style.cursor = 'default'}",100)} Repeat this for each frame you have. Happy Coding http://dotnetslackers.com/community/blogs/haissam/default.aspx

      Best Regards, Haissam Abdul Malak

      3 1 Reply Last reply
      0
      • H Haissam

        Dear, you can use the javascript setTimeOut function which will check the frames if loaded every specific time ( you set the specific time) below is an example window.onload = function() {setTimeout(\"if(self.parent.frames['FRAME3'].document.readyState!='complete'){document.body.style.cursor = 'Wait';}else{document.body.style.cursor = 'default'}",100)} Repeat this for each frame you have. Happy Coding http://dotnetslackers.com/community/blogs/haissam/default.aspx

        Best Regards, Haissam Abdul Malak

        3 Offline
        3 Offline
        333soori
        wrote on last edited by
        #3

        thanks for quick reply. m not clear can u pls explain me where should i need to write this. thank you

        H 1 Reply Last reply
        0
        • 3 333soori

          thanks for quick reply. m not clear can u pls explain me where should i need to write this. thank you

          H Offline
          H Offline
          Haissam
          wrote on last edited by
          #4

          Dear, first create a function in javascript function checkloaded(id1,id2,id3,id4) { setTimeout("if(self.parent.frames[id1].document.readyState!='complete' | self.parent.frames[id2].document.readyState!='complete'| self.parent.frames[id3].document.readyState!='complete' |self.parent.frames[id4].document.readyState!='complete'){document.body.style.cursor = 'Wait';}else{document.body.style.cursor = 'default'}",100)} } now onload in your tag, call this function and send your 4 frames id as parameters Happy Coding http://dotnetslackers.com/community/blogs/haissam/default.aspx

          Best Regards, Haissam Abdul Malak

          3 1 Reply Last reply
          0
          • H Haissam

            Dear, first create a function in javascript function checkloaded(id1,id2,id3,id4) { setTimeout("if(self.parent.frames[id1].document.readyState!='complete' | self.parent.frames[id2].document.readyState!='complete'| self.parent.frames[id3].document.readyState!='complete' |self.parent.frames[id4].document.readyState!='complete'){document.body.style.cursor = 'Wait';}else{document.body.style.cursor = 'default'}",100)} } now onload in your tag, call this function and send your 4 frames id as parameters Happy Coding http://dotnetslackers.com/community/blogs/haissam/default.aspx

            Best Regards, Haissam Abdul Malak

            3 Offline
            3 Offline
            333soori
            wrote on last edited by
            #5

            thank u very much but i dont have body tag. thank you

            3 1 Reply Last reply
            0
            • 3 333soori

              thank u very much but i dont have body tag. thank you

              3 Offline
              3 Offline
              333soori
              wrote on last edited by
              #6

              my page is like this where should i call onload ? thank you

              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