Hi all,

I have a dropdown and when the value of that drop down changes corresponding pages are displayed using jquery ajax. My problem is that when i refresh the page standing in the page generated by the ajax , the home page containing the dropdown is displaying instead of the same page.

I have tried the history plugin of the jquery but it is based on the hash(#) url in the address bar. But here in the above case there is no url appended in the address bar because the page is generated on the change of the dropdown using jquery ajax.

I want to see the same page that is generated by the jquery ajax, after refresh button on the browser is clicked. Please help me.

Thanks in advance.

As soon as you refresh, the entire page is reloaded (and intialized). I think the only way to fix this is to let jQuery use cookies to store what is selected. There is a cookie plugin on the jQuery website.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.