/    Sign up×
Community /Pin to ProfileBookmark

Page refresh with onfocus

(I’m sure this is simple BUT it is eluding me right now. I have seen it done elsewhere.)

I have a page (MainMenu) that generates sub-page links based on the user search criteria,
Each of these links open on a new window for edits which COULD take them out of the search parameters.
So…
How do I make the MainMenu page re-run the search for a complete and correct listing when the user returns to it?

I have tried the <body onFocus=”reloadThisPage()”> and all this does is cause the page to continously reload.

(reloadThisPage gets the parameters and pastes them into the URL)

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@javaNoobieNov 01.2004 — When user submits the edited content, append the fields and close the window. Probably like this,
<i>
</i>window.opener.location.href = 'page.htm?field1=' + field1 + '&amp;field2=' + field2;
self.close();
Copy linkTweet thisAlerts:
@stillLearningauthorNov 01.2004 — Great idea, I kept looking from the parent window only. I'll give this a whirl.
×

Success!

Help @stillLearning spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...