#1
  1. No Profile Picture
    DGBrothers
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi,
    I send e-mails to existing clients, and I wanted an HTML business card to automatically pop up, with a print button, so clients can have a hard copy business card should they want it.
    I'm using an HTML signature file in Outlook set up with three columns (left column is photo and navigation, middle column is the email message, right column is my news updates). From this signature file, I use (or try to use) JavaScript to call the business card pop-up. I set the pop-up to automatically close after one minute, so if the clients ignore it, it quietly goes away.
    I've got everything coded, and it works when I load it into Internet Explorer, but it won't work from Outlook, no matter what my security settings are.

    JavaScript:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- hide the script
    openWin = window.open("http://mypages.prodigy.net/myname/myPopUp.htm","childWindow","top=0,left=0,width=470,height=350,location=no,scrollbars=no,menub ars=no,toolbars=no,resizable=no");
    openWin.focus();
    setTimeout('openWin.close()',60000)
    // -->
    </SCRIPT>

    And I've put the following into the <BODY> tag:
    onLoad="openWin()"

    Can anyone help me? Thanks in advance!
    Darren
    DGBrothers@prodigy.net

    [This message has been edited by DGBrothers (edited 12-06-99).]

    [This message has been edited by DGBrothers (edited 12-06-99).]
  2. #2
  3. No Profile Picture
    Spookster
    Guest
    Devshed Newbie (0 - 499 posts)
    Well in your onLoad event you are calling for a function named openWin(). YOu dont have a function defined in your script. Put this around your script:
    <script>
    function popup(){
    your popup coding goes here

    }
    </script>

    And then put this on your body tag:

    onLoad="popup()"

    Spookster
  4. #3
  5. No Profile Picture
    DGBrothers
    Guest
    Devshed Newbie (0 - 499 posts)
    Sorry, Spookster.
    I tried that, and not only didn't it work in Outlook, it wouldn't work in IE5 either.

    Maybe I'm doing something wrong. Here's what I've got in my signature file (about the top 1/3 of it, anyway):

    <HTML>

    <!---------- Begin Head -------------------->
    <HEAD>
    <BASE href=http://pages.prodigy.net/dgbrothers/index.htm>
    <META content="Darren G. Brothers" name=GENERATOR>

    <!---------- Begin Title ------------------->
    <TITLE>Darren Brothers - Your Residential Real Estate Consultant</TITLE>
    <!---------- End Title --------------------->

    <SCRIPT LANGUAGE="JavaScript">
    <!-- hide the script
    openWin = window.open("http://pages.prodigy.net/dgbrothers/PopUp.htm","childWindow","top=25,left=25,width=470,height=350,location=no,scrollbars=no,men ubars=no,toolbars=no,resizable=no");
    openWin.focus();
    setTimeout('openWin.close()',60000)
    // -->
    </SCRIPT>

    </HEAD>
    <!---------- End Head ---------------------->

    <!---------- Begin Body -------------------->
    <BODY aLink=#808080 bgColor=#ffffff link=#000000 vLink=#3062c3>

    <!---------- Begin Wrong Format Notify ----->
    <!--<PRE>
    *********************************************
    *********************************************
    ** NOTICE: If you can read this paragraph, **
    ** we are sending you email with the wrong **
    ** format. We apologize for the **
    ** inconvenience. To ensure that we get **
    ** it right, please forward this email to: **
    ** **
    ** DGBrothers@prodigy.net **
    ** **
    ** In the subject line of the message, **
    ** please put "WRONG FORMAT". You don't **
    ** have to put anything in the body of the **
    ** message. With your help, we will make **
    ** your email the best possible! **
    *********************************************
    *********************************************
    </PRE>-->
    <!---------- End Wrong Format Notify-------->
  6. #4
  7. No Profile Picture
    PAV
    Guest
    Devshed Newbie (0 - 499 posts)
    Try this:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- hide the script
    function winPopup() {
    window.open("http://pages.prodigy.net/dgbrothers/PopUp.htm","childWindow","top=25,left=25,width=470,height=350,location=no,scrollbars=no,men ubars=no,toolbars=no,resizable=no");
    }
    // -->
    </SCRIPT>

    </HEAD>
    <!---------- End Head ---------------------->

    <!---------- Begin Body -------------------->
    <BODY aLink=#808080 bgColor=#ffffff link=#000000 vLink=#3062c3 onLoad="winPopup();">

    There you go!

    Peter
  8. #5
  9. No Profile Picture
    DGBrothers
    Guest
    Devshed Newbie (0 - 499 posts)
    Nope, sorry.
    I cut and pasted the code exactly as you had it in your example. Again, as in Spooksters example, not only did it not work in Outlook, it stopped working when I previewed it in IE5.

    Anybody got any ideas on how to make a popup HTML window in Outlook 98?

    Can I somehow modify a dialog box to include HTML code and graphics?

Similar Threads

  1. Outlook XP is breaking IMG tags in HTML template
    By LuxFX in forum HTML Programming
    Replies: 0
    Last Post: February 15th, 2004, 10:11 AM
  2. Replies: 3
    Last Post: November 11th, 2003, 10:58 AM
  3. Outlook Com add-in (moving deleted contacts)
    By C4L in forum Visual Basic Programming
    Replies: 1
    Last Post: October 17th, 2003, 09:07 AM
  4. Replies: 0
    Last Post: September 9th, 2003, 02:13 PM
  5. Share calendar between Outlook 2000 and Outlook XP
    By toxalia in forum Dev Shed Lounge
    Replies: 2
    Last Post: August 7th, 2003, 08:07 AM

IMN logo majestic logo threadwatch logo seochat tools logo