Closed Thread Icon

Topic awaiting preservation: Having a window.print() issue. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8797" title="Pages that link to Topic awaiting preservation: Having a window.print() issue. (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Having a window.print() issue. <span class="small">(Page 1 of 1)</span>\

 
labgraphics
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-06-2003 01:40

Created an "email to friend" feature on a webpage I am working on. The "print this page" icon works fine within the webpage. Once you email it to a friend it always opens a second window along with the print Window. Driving me up the wall. Cannot figure out how to avoid this. Any thoughts? Please help.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-06-2003 21:22

Can you show us the code you are using plz?



.:[ Never resist a perfect moment ]:.

labgraphics
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-07-2003 21:56

The code for the print window (in the html page being emailed from the webpage itself) is as follows:

<td width="54" align="center" valign="middle" class="td-thin"><a href="Javascript:window.print();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Print Property','','../../../icon/print_page_icon.jpg',1)"><img src="../../../icon/print_page_icon.jpg" name="Print Property" width="45" height="43" title="Print This Property" border="0"></a></td>


Now I am having a second problem. I have created the email to a friend feature using perl. It seems to work fine on my end. The email comes through with all the images showing up and the links open new windows with the redirect code working properly. However, it seems that my client's email will now open a new window, rather the email message (html page embedded) will turn in on itself when a link is clicked on. Rather than opening a new window.

In the webpage itself it opens a new window and in my email it opens a new window. I have not been able to duplicate this problem. The issue I believe is with the javascript and Outlook. If I could resolve this issue, my feature will be complete. If you could help that would be great!

The redirect code I am using is as follows:
<SCRIPT language="JavaScript">
<!--
function getgoing()
{
top.location="http://www.website.com/";
}

if (top.frames.length==0)
{
alert("Welcome! This feature is located in our Sales Section.\rYou will be redirected to our main page.");
setTimeout('getgoing()',1);
}
//-->
</SCRIPT>

Here is a sample of the code for one of links in the webpage:

<td valign="top" class="td-thin" bgcolor="#E8EDBC"><a href="../../../email_friend.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Email Property To A Friend','','../../../icon/email_friend_icon.jpg',1)"><img src="../../../icon/email_friend_icon.jpg" name="Email Property To A Friend1" width="45" height="43" border="0" id="Email Property To A Friend" title="Email Property To A Friend"></a></td>

Now, the links in the webpage do target the same window, but I would like them to target a new window in the email. Is that possible?

Have a confused you yet with all my typing? I will apologize now

Your assistance is greatly appreciated.


labgraphics
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-07-2003 21:57

Sorry I meant to say:

My clients email will NOT open a new window and the links target the same window.

Sorry...typing too fast!

labgraphics
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-07-2003 22:22

I will reread my replies before posting them from now on.
First reply third paragraph I meant to say:
"In the webpage itself, it targets itself and in my email it opens a new window."



Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 08-07-2003 22:28

Don't have any solution to your question, but instead of making new posts all the time you should use the nifty 'edit post' feature. Just press the and you're ready to go

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"

labgraphics
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-07-2003 22:35

Thank you Veneficuz. I am a newcomer to this website . I appreciate the help in navigating through it and learning its features. It is a great site!

« BackwardsOnwards »

Show Forum Drop Down Menu