Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open new window

Status
Not open for further replies.

sensory21

Programmer
Jan 27, 2004
79
GB
Hi all,

I have a problem of translating the path for the new window from a variable.
The variable is website.
This opens a new window but the path translate as:

The code:
out.println(&quot;<tr><td>Website: <a href=\&quot; + RS.getString(12) + &quot;\&quot; onClick=\&quot;window.open('http:// + website', 'newWin', 'toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=800,height=460');return false;\&quot;>&quot; + RS.getString(12) + &quot;</a></td></tr>&quot;);}

I think it's just a problem of syntax but which one?

Thanks for your help,
Vero
 
In a hurry, but try this
Code:
out.println(&quot;<tr><td>Website: <a href=\&quot;[URL unfurl="true"]http://&quot;[/URL] + RS.getString(12) + &quot;\&quot; onClick=\&quot;window.open('[URL unfurl="true"]http://&quot;[/URL] + website + &quot;', 'newWin', 'toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=800,height=460');return false;\&quot;>&quot; + RS.getString(12) + &quot;</a></td></tr>&quot;);
Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top