hi guys i have this problem with my new system.. Its simple forum created it using ajax, php, mysql.. so the problem is that if i refresh the page of the simple forum all data will get reset for example: 1- I entered a forum called (english forum) 2- I entered specific topic called (english topic) which i found on the 5th page of the english forum. 3- I posted a comment in (english topic) 4- I refreshed the page.. 5- now the page resets to the first page... now if i want to go to english topic again I have to do step 1 and 2 again and what if there is lots of comments on that page then i need to navigate to page 10 of the comments so i can c my posted comment... btw, this forum is created using ajax so the main page wont refresh like normal forums if I navigate from page 1 to page 5 on english forum.. so what I need is to make ajax URLs with queries so I can visit these topics directly without needing to go through step 1 and step 2.. lets say that page called forums.php... i need a method to make ajax reads and updates my url (forums.php) automatically based on place that i just visited(without refreshing the main page).. for example: if i opened english forum there should be and update on the main page url somthing like: forums.php#englishforum then if i navigated to 5th page of that forum the link should be like: forums.php#englishforum#page5 if I opened a topic in the 5th page of english forum the link should be like: forums.php#englishforum#page5#topic1 and so on if i navigated to the 10th page of the comments... so now when i give this link forums.php#englishforum#page5#topic1 to my friend he should get to the same page as mine.. so does anybody have any idea about this? i have seen this technique used in google, hi5 and youtube
just store the position-page of user in hidden fields, or cookie, or POST this pos to server everytime user post cooment Free JavaScript Code | HTML-JS-CSS Encoding | CSS Menus