/    Sign up×
Community /Pin to ProfileBookmark

How To: Forms and windows?

ok. I have looked all over the internet for this, but have found nothing so far. I know how to code in PHP, but javascript has me stumped for now. How would I:

create a popup window, put a form (bunch of checkboxes) in that popup window, and when im done ‘selecting’ values out of that popup window, how can I return the selected values to the main page into a text box? Situation is this:

I have a private message system on my site I am coding, I want to be able to have a user click on a link to see a list of the members (not a problem listing them). I want to show each ‘member’ with a checkbox next to it. How would I get the values of whatever is checked onto the page that the popup window was initiated when I close the popup window? Hope I explained it well.

.aVeNgEd.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJun 05.2006 — From a popup window, you can use the following to reference the content of the window from which the popup window was popped:

top.opener.document...

top.opener.myUserDefinedFunctions()

top.opener.myUserDefinedGlobalVariables
×

Success!

Help @_aVeNgEd_ 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,
)...