Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

js back button problem

Posted on 2011-09-20
7
Medium Priority
?
155 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:Gurvinder Pal Singh
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:Gurvinder Pal Singh
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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:Gurvinder Pal Singh
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:
Gurvinder Pal Singh earned 2000 total points
ID: 36571845
right click, inspect element, there you can see multiple options
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…
Suggested Courses

886 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