SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2001
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email and HTML and Javascript Functions! Help, please. Very advance HTML stuff...

    Ok, here is my situation. I am working on a big project written mostly in Java (jsp) and beans etc...
    But what I want to ask is that in one of our jsp pages (working similar as asp), I have an email (html email) sent to a user.
    In this email, there are colors and tables etc...
    There are a few links, but these links cannot be direct links because I need information to be passed into the next window WITHOUT using any cgi stuff,
    I have made a function:

    <script language='JavaScript'>
    <!--
    function requestClick()
    {
    document.listForm.userNameHD.value = originatorUsernameRequestEmail.value ;
    document.listForm.dispatchto.value = document.listForm.submitPage.value;
    document.listForm.displayMode.value = 'EDIT';
    document.listForm.submit();
    }
    //-->
    </script>

    This is what it looks in general (remember, this is in an email).
    This is when I call the method:
    Click <A HREF='javascript:requestClick()'>here</A>

    My question is, does email programs /application (such as Outlook and outlook express ) support javascript functions, if so, what am I doing wrong?
    I know im not putting double quotes, that is because I have that coded in a Worker bean.java file and I cannot use double quotes.

    Ive been working on this with a co-worker for like 5 hours....
    help please,

    Thanks
    Pierre Grandmaison
    webmaster/Application Developer
    http://www.HotgamesDownload.com
    webmaster@HotgamesDownload.com

  2. #2
    SitePoint Addict michaelwheaton's Avatar
    Join Date
    Jan 2001
    Location
    Alberta, Canada
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very few email programs like Outlook Express allow Javascript to be used because of the security problems. People have tried making a pop-up open asking for them to enter their password again to log in and using this to get into their account. I am not sure how you would deal with your main problem because I am not very experienced with that kind of stuff.

    Hope that helps,
    Michael

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Los Angeles
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Click <A HREF='java script:requestClick()'>here</A>

    should be
    Click <A HREF='javascriptnClick()'>here</A>
    Minus The Smile
    I don't think requestClick() is a JavaScript function. Or at least I haven't seen it yet.

    But the last poster was right. Javascript is rarely supported in email clients.

    I had a similar problem working with ASP. What I did was;

    I used hidden fields to pass the variables to the next page. Then I did my business and sent the email from there. But, no cgi stuff.
    You could also make it an html email and request an image or something with variables on the quesry string.
    So now I am just reaching. Good luck.
    Last edited by bsacks; Jun 19, 2001 at 15:34.
    bsacks
    http://www.middlepeak.com

  4. #4
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by bsacks
    Minus The Smile
    lol
    just check the option 'Disable Smilies in This Post' when makinf your reply.

    Example : :)
    doens't show as a smilie.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •