Re: Probably [another] dumb question



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/
.



Relevant Pages

  • Re: Modifying a record field value while not blocking it to others
    ... And of course again the record you are trying to modify has not to be 'open' ... someone opens that ID=12 record everything in it is locked. ... often add a script line which opens a random record if the file holds enough ... system where customers use Credits when renting items and get Credits ...
    (comp.databases.filemaker)
  • Re: modifying objects in ADAM ADSIEDIT
    ... which is the NetBIOS name I referred to. ... ' Prompt for NetBIOS name of object in AD. ... ' Prompt for the attribute to modify. ... How do I script this by just modifying ...
    (microsoft.public.windows.server.scripting)
  • Re: sus office updates
    ... You can modify the registry ... or you can script a change for MSI to add ... my "encrypted" product code for Office 2003 Professional is: ...
    (microsoft.public.sms.tools)
  • Re: Modifying a record field value while not blocking it to others
    ... And of course again the record you are trying to modify has not to be ... someone opens that ID=12 record everything in it is locked. ... often add a script line which opens a random record if the file holds ... system where customers use Credits when renting items and get Credits ...
    (comp.databases.filemaker)
  • Re: Probably [another] dumb question
    ... 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. ... /* modify the target page */ ... could look into a Frame situation where one frame kept track of the ...
    (comp.lang.javascript)