struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gemes Tibor <ge...@regens.hu>
Subject Re: calling ACTION from SEARCH button, results displayed in new w indo w
Date Wed, 04 Dec 2002 15:47:40 GMT
2002. december 4. 16:31 dátummal Cook, Graham ezt írtad:
> The field on the form is part of a company name, the popup window will be a
> list of all names in the database that match what the user has typed in the
> input field.
>
> I know that I need to use Javascript to create the popup, what i need to
> know is whether or not i can pass the JSP field into a javascript function,
> then call an action. Or do i need to hardcode the field reference in the
> Javascript method ie . document.form.companyname

This is really OT on this list. 

function populateLOV(obj) {
	var url=...;
	url += '?myParam=' + obj.value;
	showLOV(url);
	return false;
}

<input type="button" onclick="return populateLOV(this)">

Tib

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message