473,383 Members | 1,866 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,383 software developers and data experts.

First load vs. back

Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some other
(?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the page is
loaded, but not when the page is "reused" by clicking on a back button. Can this
be done with javascript?
Jul 29 '05 #1
2 1693
> Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some
other (?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the
page is loaded, but not when the page is "reused" by clicking on a back
button. Can this be done with javascript?


Guess not. Way to go!
Not.
Aug 2 '05 #2
In article <AP******************@news.siol.net>, Igor Planinc wrote:
Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some other
(?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the page is
loaded, but not when the page is "reused" by clicking on a back button. Can this
be done with javascript?


if they click the back button they will have something behind their forwards
button, can you check for that.

--

Bye.
Jasen
Aug 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

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....
19
by: DotNetIsHorrible | last post by:
I write CRUD database applications for a living for an audience of about 100 users per application using classic ASP. I maintain and frequently change on user's request 22 different applications...
4
by: sara | last post by:
I've gotten my first function to work - to build a sql string to load a list box. I call the function whenever I want the list box loaded 1. When a customer is chosen - opens the frmCust and...
1
by: DKode | last post by:
Here is my scenario: I have two methods that I only wish to have run the very first time a user hits the default.aspx page. This page is protected with Forms protection. default.aspx is the base...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
7
by: Mad Scientist Jr | last post by:
i have a dropdown control with autopostback=on that when selected, posts back and populates a second dropdown. the 2nd dropdown takes a while to load, giving the user time to start typing in other...
11
by: Jason | last post by:
Hi I have a "problem" i have got a ASP.NET application. in this application i have included logging. in the logging i have logged how many seconds it takes for this application to fully load....
2
by: mollyf | last post by:
I have a web application where I have my users log in and it takes them to default.aspx. On that page, I have 2 user controls. Everything works fine the first time a person logs in. I have a...
4
by: Chris | last post by:
Hi, I am creating a webform in ASP.NET using C#. I have a drop down list control and 5 textbox controls. Each textbox control has a required field validator assigned to it. I have a save...
14
by: TS | last post by:
I have this custom data list control and i override the onItemDatabound event. After upgrading to vs 2005, this event is not always getting called, though it does at other times. No changes were...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.