AJAx - History

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
WLQ
Super Advanced
Super Advanced
Posts: 35
Joined: Fri Aug 03, 2007 8:18 am

AJAx - History

Post by WLQ »

Maybe someone can help with something I can't do.

I have such function:

Code: Select all

url=javascript:clickfunction=onclick=open_url('anypage.php','my_site_content');
This is ajax function it's works this way: you put any page name in the function and it will be opened using ajax in my_site_content box.

Now I need the same thing but to not open the page but to open javascript. This one

Code: Select all

history.go(-1)
.
If you place this instead of a page name the function will try to find on your server page history.go(-1). Of course there is no such page, it will give error 404.

Please help on how can I make it work. Here is the ajax function codes: http://javascript.internet.com/ajax/aja ... ation.html
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: AJAx - History

Post by Ruth »

Hi,

I just happened to see this and it made me curious, though I know nothing of ajax. Anyway, to do a history or a back button don't you need to code something in ajax or use some kind of application [As you see, I know nuthin]

I tried a search for ajax and back button and ajax and history and there are tons of articles about this, as an example

http://www.dhtmlnirvana.com/program/per ... story.html

Or am I misunderstanding what you are asking?

Ruth
Post Reply