on 07-02-2007 12:01 PM
Hi,
In a BSP application I have a field with F4 help (Popup Page).
F4 Help Page contain search fields and results in tableView, each cell
in tableView is rendered using htmlb_link controller. In event
onclientclick of the htmlb_link I'm using a Javascript method for
passing data back to the calling window.
CONCATENATE 'passDataBack("' browner_id '", "' browner_text '")' INTO
lorv_link->onclientclick.
JavaScript Method has the following body.
function passDataBack(browner_id, browner_text )
{
window.opener.document.getElementById("
<%= controller->mv_js_browner_id %> ").value = browner_id;
<U>window.opener.document.getElementById("
<%= controller->mv_js_browner_text %> ").value = browner_text;
}
IF the data browner_text contain text with double quotes, then I'm
getting Java Script error. I tried encoding the string, double Quote are
converted to " but still, the Java script error is showing.
Please suggest a solution.
Thanks & Regards
Geogy
try this
CONCATENATE `passDataBack('` browner_id `', '` browner_text `' )` INTO
lorv_link->onclientclick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.