473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how do i distinguish between refresh and first load in JavaScript?

you know IsPostBack is used in server side to check refresh

how can i do in javascript
Jul 6 '12 #1
1 2072
gits
5,390 Expert Mod 4TB
you might use different solutions - like a cookie or the HTML5 local storage to set a flag or such to maintain a state that you can query from a script.
Jul 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
1
by: z. f. | last post by:
Hi, i have a dot-net app. the first load is really slow, about 4 seconds at least. next requests are very fast. is there a way to analyze the buttleneck in the load process of a asp-net...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
1
by: danrostron | last post by:
Hi I apologise if this question has been asked many times but I have not found any sufficient answers anywhere. I have a asp.net website which is a fairly small site (5 pages) which doesn't...
1
by: javalsu | last post by:
I have an Asp.net page. It's basically a Calendar. The calendar frame is created with the <table> tag in the codebehind. some of the cells are named ie. <td name="cell1" id="cell1> during each...
3
by: ShaggyMoose | last post by:
I have a textarea that is styled by the following. textarea { width: 100%; line-height: 13pt; font-family: Arial, Verdana, Helvetica; text-align: left; overflow: auto; }
9
by: Denis | last post by:
Hello, Maybe somebody already solved this task. I need to load JS asynchronously without blocking browser. This means that I do not need to block browser to load/render during loading script. The...
2
by: ray | last post by:
I have a html file stored as the D:/proj/test.html. In the html file I wish to load a javascript file---test.js which is stored in the same directory as test.html. <!DOCTYPE HTML PUBLIC...
4
by: thesti | last post by:
hello, how to make a datagridview to select no row after i bind it datasource to a datatable. i have this code in my form load myDGView.DataSource = myDataTable then when the form load,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.