Doesn't matter if the & sign is there or not, already tried that. Works both ways, I only put it there because the struts framework tags were putting it in the first one when using...
<html:link action="/AttachmentAction.do?" paramId="attachment_id" paramName="mutableForm" paramProperty="attachment_id" target="ResumeAttachment"> -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] >>> [EMAIL PROTECTED] 3/1/2005 9:31:42 PM >>> Shot in the dark here: IIRC, you don't need the ampersand after the initial question mark in the request URL. Try killing that & see what happens... Good luck, -- Curtis Eric Lemle wrote: > Can anyone tell me why this.... > > <a href="/physrcrtadmin/AttachmentAction.do?&attachment_id=341" > target="ResumeAttachment">VeselovaNataliaECV.doc</a> > > ....works perfectly. > > > But this..... > > function printAttachment( id, name ) > { > childWindow=window.open( 'AttachmentAction.do?&attachment_id='+id, > name, > 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=790,height=600'); > childWindow.focus(); > } > which is called with... > > if(document.forms[0].printCV.checked==true || > document.forms[0].printAllAttachments.checked==true) { > printAttachment( '341', 'printCV'); > } > > ....throws an error messages saying it can find the file. > > > ? > > > > > Eric D. Lemle > Senior Programmer / Analyst > Intermountain Health Care > 36 South State Street, Suite 1100 > Salt Lake City, Utah 84111 > United States of America (USA) > (801) 442-3688 -- e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]