Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Newby: Ajax-generated code goes away on refresh.


wilsoncpu - 4:48 pm on Aug 2, 2012 (gmt 0)


I'm just starting with Ajax. and I'm having a conceptual problem.

I have a form which submits a query, using Ajax. The Ajax is called via "onclick", so the page does not replot (of course). The called JSP file does the database query, formats the results into a table, and returns the table as a string of HTML code.

The Ajax routine then puts the generated code in the proper DIV, and ta-da, results! So far, so good.

But if the user hits "Refresh", away the results go!

Question: how do I make the results "stick", so they're properly recognized by Reload? Or is that even possible?


Thread source:: http://www.webmasterworld.com/javascript/4481325.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com