To display Hourglass until the pages get loaded into frames
-
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
-
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
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
-
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
-
thanks for quick reply. m not clear can u pls explain me where should i need to write this. thank you
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
-
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