/    Sign up×
Community /Pin to ProfileBookmark

calling two function using href

Hi friends,

I have one image.I am using href

<td width=”24″ valign=”top”><a href=”javascript:show_help ();”><img src=”images/search.gif” width=”24″ height=”22″ border=0 /></a></td>

In show_help()

function show_help ()
{
child = open
(
“search_emp.jsp”,
“search_emp”,
“width=400,height=200,scrollbars,resizable”
);

}

What the above code will do is , When i click that search image, a pop up window will come and from that pop up window i select the value and display it in a text box and close the pop up window …

Now i want to add one more, after copying the value from the pop up window to main window’s text box , i want to do this also

var myjsp2call = “education_p.jsp?emp_id=”+document.f.empno.value;
window.location.href = myjsp2call;

where empno is the value i am copying from the child window.

pls help me

thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 31.2009 — Do it from the child window:opener.location.href = myjsp2call;
Copy linkTweet thisAlerts:
@priyapratheepauthorApr 01.2009 — Thanks a lot ................................
×

Success!

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