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

Back Button + DWR problem using RSH history framework

Hello All,

We have implemented dynamic data load in an HTML table. The next set of records are loaded using DWR and the HTML table is updated.

The trouble is when we click any link and go to other page, and then come back using browser's back button, the latest set of data is not shown.

For this Im trying to use the history framework - RSH. Using this I stored the data retrieved by DWR into on historyStorage object. On back button click, I retrieved this stored data and am trying to again call the callback function with this data.

Now, when I print this retrieved data, these are valid values, but when I send this to the callback function explicitly, the table getting painted has all <td> with 'undefined' as the value.

Additional alerts showed that the options.data is coming as 'undefined'. On further debugging, I found that the one global JS array variable that I have used in the cellfuncs[] is 'undefined'. but Im not sure why.
Can anyone help?

NOTE: If someone has solved such a problem of back button with DOJO framework also, please share some sample code.
We have used RSH for suitability evaluation purpose.

Regards,
Leena
Oct 19 '07 #1
4 2027
acoder
16,027 Expert Mod 8TB
Post your code here so that we might be able to figure out the problem.
Oct 19 '07 #2
Expand|Select|Wrap|Line Numbers
  1. //At the start of the JS file-
  2. var currPosition = new Array();
  3.  
  4. //Down in the JS file, in the code for DWR, we have the following
  5. var cellfuncs = [
  6.     function (data) { return parseData(data,currPosition[0],0);},
  7.     function (data) { return parseData(data,currPosition[1],1);},
  8. ...
  9. ...
  10.         function (data) { return parseData(data,currPosition[10],10);}
  11. ];
Note that Im storing the currPosition array like data in the historyStorage object and retrieving it also when the back button is clicked. Both currPosition and data are not null when I retrieve them. But the value of currPosition[0], currPosition[1] etc all come as undefined when I print them again when back button is clicked.
Oct 21 '07 #3
Has anyone used History Framework - RSH?

I want to know more about its use. It would be helpful if someone could provide link to a detailed documentation.

Regards,
Leena
Oct 22 '07 #4
acoder
16,027 Expert Mod 8TB
I'm not sure if there is detailed documentation. Did you check the release notes?

You could also check out this article by the author.
Oct 22 '07 #5

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

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
4
by: Hypo | last post by:
I added a 'Back' button to my page, and wrote 'OnClick' code something like this: Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>"); But, it dosnt work! Effect...
3
by: Michelle A. | last post by:
What is the difference between the two? I have a page "one" with a button using Response.Redirect("pagetwo.asxp") to go to the next page. On page two I have a button using...
4
by: Bratislav Jevtic | last post by:
hi, ASP.NET, framework 1.0, patch 2, Windows 2000 server is this possible: from server side to say "go back" to browser? ------------------- scenario: I've got some page with a list. When...
1
by: Johan Nedin | last post by:
Hello! I am having a problem with the @OutputCache page directive and Web browser Back Buttons. Problem: After setting <%@ OutputCache Location="None" %> on my pages I get the "Warning!...
6
by: Peter | last post by:
When user Clicks on the Close button on the main form I would like to go back where the user came from. If my form is the first page since IE was opened I would like to go to the specific website. Is...
2
by: ShaneFowlkes | last post by:
I created a couple of quick test pages and to my surprise, these do not work either. When I click "Go Back" on test2.aspx, nothing happens. Ideas?? Surely I must be missing something obvious........
12
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
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.