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

script is not loading on Browser Back button issue

I am working in an ecommerce site.I had a requirement that my cart ribbon should show the number of items in my cart.I placed the code(which is giving number of items)inside a document.ready function.But when i presses browser back button in firefox my page is not loading so it is showing number of items empty.I need to execute my code in case of browser back button event also.Any solution would be appreciated.I tried keep my code in onbeforeunload function also.But not working.
Feb 25 '14 #1
1 1174
Dormilich
8,658 Expert Mod 8TB
I need to execute my code in case of browser back button event also
then hook into that event.

ref. https://developer.mozilla.org/en-US/...dow.onpopstate
Feb 25 '14 #2

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

Similar topics

1
by: lpatel | last post by:
During a Script session, when I hit the browser 'Back' button I get Pag error. I get this error only from a couple of the pages. Would anyone what the problem could be? or how to go about fixin...
2
by: Freddy | last post by:
Hi, The registration process in our web site is of 3 step process spanning 3 pages and it is performed on https. I have noticed in some websites while doing credit card payments if we click...
0
by: neeraj | last post by:
Hi Everybody I have one problem in my asp.net web application. The problem is that I check the date validation in code behind; if user not gives the valid data and press save button then I fire...
5
by: ns21 | last post by:
How can the browser back button be disabled If the form is submitting information to other pages or submitting to itself or using redirections. I tried the tweaks like history.forward(1) in each...
0
by: Nyoti | last post by:
Hi, I am creating a search utility for my ASP.NET web application. There is a page Search.aspx, which accepts the search criteria and sends the search request to web service, which does the...
7
by: nkodali | last post by:
Hi, I am having a signup.asp page where a user enters his details and clicks on subscribe button. I am doing server side validation to check if the user already exists in the database and then...
2
by: =?Utf-8?B?SmVmZiBEb25rZXJzZ29lZA==?= | last post by:
I have a registration form that updates a province/state droplist when a country is selected from another droplist. When the user clicks the back button though, the province list goes back to the...
8
rrocket
by: rrocket | last post by:
I have a form that has various tables that are hidden. When the user selects a number from the DDL the corresponding number of tables shows up (using javascript). When the submit button is clicked...
1
by: tuwanriyas | last post by:
Hi, My requirment is diable the "Browser Back Button" and create "Back Button" to go History -1. Actually I want to send user history back only through my "Back button". I could disable "Browser...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.