Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
I have problem in safari browser when vast Data get uploaded...

But in other browser it works good...

Give the solution to recover this problem....

And I think by getting page size and with this page size we able to know how much data get uploaded without error....

So can anyone give coding in javascript to get page size....
Posted
Comments
Arunprasath Natarajan 26-Jun-12 12:54pm    
Your page will not take time by your page size. Kindly verify your query used and craft your query in better way to give better performance.

Hi,

try this
JavaScript
 $(window).height();         // returns height of browser viewport
$(document).height();       // returns height of HTML document

Best Luck
Happy Coding:)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Jun-12 13:43pm    
Very confusing answer: you should have explained that you recommend to use jQuery. (Am I right?) And provide some links to jQuery to start with.
I voted 4, but this is somewhat in advance; I would advise you to take care about understanding of your post without ambiguity.
--SA
Sergey Alexandrovich Kryukov 18-Jun-12 13:50pm    
...So, I added proper explanations and links assuming OP never worked with jQuery (which is a fair assumption), please see my answer.
--SA
Please see my comment to the answer by Nilesh. As this answer would be confusing without explanations, I will provide some.

This code uses the jQuery library. The expressions like $(window) or $(document) create wrappers around correspondent DOM objects with additional jQuery methods. The expression in the argument of '$' function is called descriptor. You will need to learn it, which is easy and, in fact, some fun:

http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^],
http://api.jquery.com/category/selectors/[^],
http://docs.jquery.com/Main_Page[^].

Start with:
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Downloading_jQuery[^],
http://docs.jquery.com/Tutorials[^].

—SA
 
Share this answer
 
Comments
vivekx2 19-Jun-12 0:47am    
Anyone please give solutions for my questions
Sergey Alexandrovich Kryukov 29-Jun-12 22:26pm    
The two solutions you have do provide you with the help you need. You just need to turn this in code.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900