Click to See Complete Forum and Search --> : HELP!!! differences in IE on different platforms


rahenkamp
02-28-2003, 12:33 PM
I am using the code below to open a printer friendly version of the screen the user is looking at. Works fine on a Mac with IE v 5.2 but on a Win2K box with IE v 6.0 the new printer friendly window does open correctly but the parent window redisplays the following [object] . This does not happen of the Mac version. My question is WHY does it happen and what do I do to correct it so everyone sees the same thing.

TIA

Dan Rahenkamp

________________________

<a href="JavaScript:window.open('display_printer_Faculty.asp<%=strTeamName%><%=strGradeLevel%>','printer_friendly','toolbar=0,location=0,status=0,menubar=1,scrollbars=1,resizable=1,width=640,hei ght=390')" ,'printer_friendly','toolbar="0,location=0,status=0,menubar=1,scrollbars=1,resizable=1,width=640,height=390" )"'><img src="<%=strGraphicPath%>print.jpg" width="68" height="20" align="absmiddle" border="0" alt="Printer Friendly Version"></a>

Charles
02-28-2003, 12:48 PM
It's the Win2k version that is behaving correctly. And if you use the following you will find that your page will work even for the 10% of users that do not use JavaScript.

<a href="display_printer_Faculty.asp<%=strTeamName%><%=strGradeLevel%>" onclick=" window.open(this.href, 'printer_friendly', 'menubar,scrollbars,resizable,width=640,height=390'); return false"><img src="<%=strGraphicPath%>print.jpg" width="68" height="20" align="absmiddle" border="0" alt="Printer Friendly Version"></a>

rahenkamp
02-28-2003, 01:10 PM
Thanks Charles... The behaviors are now the same.... One other question. The code you suggested does not open a new window but reloads in the parent window. Just how would I make the same behavior happen in a new window created by the script? I am assuming that it is in the this.href section of the script but my Java skills are new....

THANKS!!!

Charles
02-28-2003, 01:23 PM
What I gave you should do the trick. Can you post the URL?.

rahenkamp
02-28-2003, 01:32 PM
There ya go...

When I click print the new page appears in the parent window and does not open a child window....

http://burnett.sdhc.k12.fl.us/Roontoon/faculty/display_faculty.asp

Charles
02-28-2003, 02:32 PM
You've followed my example a bit too closely. When you cut and pasted the soft returns became hard ones. Get rid of the hard return before the second ' character.

rahenkamp
03-03-2003, 08:01 AM
Thanks that worked and I have learned something to boot!!!