Results 1 to 10 of 10

Thread: Switch Content not working as Mailing

  1. #1
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Switch Content not working as Mailing

    Hello there!!
    First of all, thanks for this wonderful script, it has really helped me a lot...

    I have it in a mailing html (to send to our costumers), but the script isn't working when you open it in your email.

    I don't why is that, the rest of the website is perfectly displayed, but the script just isn't working... does it have something to do with the fact that it isn't in a webserver anymore, or something like that?

    is there any possible solution...??

    here is my htm file working -> http://www.globalsolution.tie.cl/BCP_DRP/index.htm

    you can see it works online, but it doesn't work in Outloook, gmail, and stuff

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Do other javascripts work in mailings?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that
    <body onLoad="window.location.href='http://www.globalsolution.cl/scripts/glb/cursos.mv'">
    </body>

    doesn't work either =(

    mabe is it has to do with some misplaced reference?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm thinking it might be security. In mail programs, javascript can potentially be more destructive and/or misleading than on the web. For that reason, it is my guess that most mail programs would disable it.

    Also, since an email message isn't a web page, things like onload could have different meanings or be meaningless. For example, with onload, it implies:

    window.onload

    There is no real window in an email.

    Another thing to consider is that many folks' email programs will not display HTML, let alone javascript. So it is best that you at least have a text version of your message that goes out along with the HTML one for those people.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah, that might be the thing =(

    outlook displays very well the rest of the html, but the script just doesn't work... thanks anyway =)

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Why not to use HTML email (unless you're sure the other person can handle it [I.E. they've already sent you an HTML email]).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Why not to use HTML email (unless you're sure the other person can handle it [I.E. they've already sent you an HTML email]).
    =)

    the people we send mail to, don't care... in fact, many of them send html email themselves...

    html mail is the future, and there is nothing you can do about it

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    html mail is the future, and there is nothing you can do about it
    Of course it is. That doesn't mean it's ready now, to use one of Mike's favourite arguments against XHTML. When every mail client in use supports HTML, it'll be technically fine to use it (although not necessarily aesthetically, but that's outside my area of expertise, so I'll leave it well alone). While they don't, and you can't be sure that the recipient's client supports HTML, HTML email should be avoided at all costs. Personally, I don't forsee HTML email making the transition from "the future" to "the present" for a while yet; I suspect that it'll be ready for universal use about the time 1MB broadband becomes the lowest connection speed available. While there are downsides, frankly there's no incentive to use HTML email: most of the tasks people use email for don't require any of the features it offers. Certainly pretty formatting is nice, but when you have clients that don't support it (and more that support it but have it disabled) and slow internet connections over which it could take a long time to download, it's not yet worth it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh, but if you're talking about spamming, you're absolutely right... I mean, spamming with html is just being totally a sucker... spamming is wrong whatsoever.

    but if you know WHO you're mailing to, and that persons knows where there mailing FROM there is no problem at all... that's what we do =)

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    if you're talking about spamming
    I wasn't :-\
    if you know WHO you're mailing to, and that persons knows where there mailing FROM there is no problem at all.
    If you're sure they have a client that supports HTML, and the formatting adds sufficiently to the quality/readability of the content to make the extra bandwidth usage worthwhile, then certainly.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •