J
Jawahar Rajan
All,
I have a printer friendly page that is opened when a user clicks a link on
my page to get the printer friendly version,
How ever when they close out the printer friendly version and return to the
original page the mouse cursor is a Hour glass shape!
my code:
I use DIV tag
<DIV id ="printThis">
<%
response.write strTable
%>
</DIV>
<A HREF ="javascript:void(printFriendly())">Print This Page</A>
the javascript function printFriendly is:
function printFriendly()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';
html += '\n</HEAD>\n<BODY>';
var printFriend = document.getElementById("printThis");
if (printFriend != null)
{
html += printFriend.innerHTML;
}
else
{
alert("Could not find any thing to print");
return;
}
html += '\n</BODY>\n</HTML>';
var printWin = window.open("","Printer Friendly");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
}
else
{
alert("Sorry, the print ready feature is only available in modern
browsers.");
}
}
-->
</SCRIPT>
What I have seen is that the Mouse shape is effected after returning to the
original page Why? I am not sure but I have noticed that on some browsers
this does not happen and also in my browser the hour glass shape happened 8
out of ten time!
Any ideas why this may happen
Thanks
Jawahar
I have a printer friendly page that is opened when a user clicks a link on
my page to get the printer friendly version,
How ever when they close out the printer friendly version and return to the
original page the mouse cursor is a Hour glass shape!
my code:
I use DIV tag
<DIV id ="printThis">
<%
response.write strTable
%>
</DIV>
<A HREF ="javascript:void(printFriendly())">Print This Page</A>
the javascript function printFriendly is:
function printFriendly()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';
html += '\n</HEAD>\n<BODY>';
var printFriend = document.getElementById("printThis");
if (printFriend != null)
{
html += printFriend.innerHTML;
}
else
{
alert("Could not find any thing to print");
return;
}
html += '\n</BODY>\n</HTML>';
var printWin = window.open("","Printer Friendly");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
}
else
{
alert("Sorry, the print ready feature is only available in modern
browsers.");
}
}
-->
</SCRIPT>
What I have seen is that the Mouse shape is effected after returning to the
original page Why? I am not sure but I have noticed that on some browsers
this does not happen and also in my browser the hour glass shape happened 8
out of ten time!
Any ideas why this may happen
Thanks
Jawahar