/    Sign up×
Community /Pin to ProfileBookmark

Parent/Child Window Communication

Hi,
I have produced a form in jsp that has a search button. When the user clicks the search button a second jsp pops up and prompts the user to enter some search criteria. The criteria brings back a list of company names, just a list straight from the result set, this is NOT an input field or a textarea. Now when the user clicks on one of these companies the second pop up jsp closes and populates a field in the first jsp. My problem is that it keeps populating the 1st jsp with “undefined”. I believe that it may have something to do with the way I am outputing my company list as I want the user to be able to click on the company name but am not sure how to remedy this. Can someone help?
Thanks

I believe this is the line of code that is not working for me…

out.println(“<td class=”tabletextcol”><a href=”javascript:void(0)”onClick=”parent.closeSearch(search,opener.document.all.newpartner)”>” + account.getOrg() + “</a></td>”);

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @magoo100 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...