Solved

js back button problem

Posted on 2011-09-20
7
142 Views
Last Modified: 2012-05-12
On this page i am building a user comment system.

However, the js works good when load the page originally, but when i click to another website and then use the back button the thing gets all messed up.

What do i need to put in the js to get it to work on back button visit?
0
Comment
Question by:blink10
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36571555
<< thing gets all messed up.>>
You need to elaborate a bit more

If this is happening for ff, the check this one
http://stackoverflow.com/questions/2638292/after-travelling-back-in-firefox-history-javascript-wont-run
0
 

Author Comment

by:blink10
ID: 36571561
ok the function i wrote should do the following....

When click, change the dimensions of the textarea and drop the faded message.

When i use back button, i get the text that is suppose to be faded as normal text, and none of the other fucntions will work. This is in chrome.

This is not a reloading problem as ur link deals with, this a is a back button issue.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36571570
it could well be a reloading problem, since your browser is not sure whether or not to capture onload event or not
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:blink10
ID: 36571581
i added the code from stack, no luck, yes it does seem to be loading again i guess, but i doesnt fix it
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36571597
please check in you debugger (chrome has a good one),
-- if the scripts are getting loaded or not
-- use breakpoints and console.logs to see if control flow is going as expected.

Please isolate the problem and reach to the specific one
0
 

Author Comment

by:blink10
ID: 36571840
do you have tutorial on this? I have never troubleshoted with chrome before
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36571845
right click, inspect element, there you can see multiple options
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now