Re: Probably [another] dumb question
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Fri, 30 Dec 2005 19:53:49 -0500
Ed Jay said the following on 12/30/2005 3:38 PM:
I'm using history.go(-n) to return to a page for editing without refreshing or reinitializing the page. I want to modify the page within the script, but until I return to the page, the element I wish to modify doesn't exist. IOW,
function editPage() { history.go(-n); /* modify the target page */ } /* return to the modified target page
How do I effect the changes to the page before exiting the script?
Well, after you history.go you aren't on that page anymore so nothing after that statement should be executed.
If you are wanting the reverse:
function editPage(){
/*modify the target page
return to the modified page */
history.go(-1)
}Then that is damn near impossible. You can't edit a page that isn't loaded.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ .
- Follow-Ups:
- Re: Probably [another] dumb question
- From: Ed Jay
- Re: Probably [another] dumb question
- References:
- Probably [another] dumb question
- From: Ed Jay
- Probably [another] dumb question
- Prev by Date: Re: IE 6, javascript:void(0) stops the webpage loading
- Next by Date: Re: problem with anchor events, please help!!
- Previous by thread: Probably [another] dumb question
- Next by thread: Re: Probably [another] dumb question
- Index(es):
Relevant Pages
|