Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

js back button problem

Posted on 2011-09-20
7
144 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

839 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