473,378 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

email & creativity

hey

my final goal: to add a link to an email message, that will contact my
server & mark the email as "important", with no popup windows/annoying
messages.

id like to do this in ajax, but the problem is javascript support in
emails.
i want it to work in every computer, even if its viewed in gmail.

my first attempt was a <a href='javascript:alert("hey")'>click</a> but
outlook doesnt activate it, nor gmail.

so my 2nd thought was maybe opening an outside window that will do the
server marking, and then close the window, but explorer verifies if the
user wants to close the window.

any idea how i can do this? be creative

May 29 '06 #1
6 1382
yo****@gmail.com wrote:
hey

my final goal: to add a link to an email message, that will contact my
server & mark the email as "important", with no popup windows/annoying
messages.

id like to do this in ajax, but the problem is javascript support in
emails.
i want it to work in every computer, even if its viewed in gmail.

my first attempt was a <a href='javascript:alert("hey")'>click</a> but
outlook doesnt activate it, nor gmail.

so my 2nd thought was maybe opening an outside window that will do the
server marking, and then close the window, but explorer verifies if the
user wants to close the window.

any idea how i can do this? be creative


Hi,

It is considered a private matter when I read my email.
At least, I consider that a private matter.

If you want some JS to be executed inside a emailbrowser, think again.
You cannot possibly expect all emailreaders to execute JS.
Why?
If you can execute JS inside an emailbrowser when I click a link, you can
also execute that code without me clicking that button/link.
In that way you can easily 'phone home' when I read it, or even worse, like
earlier version of the ever-broken infamous Outlook emailclient.

Personally I will go a long way to make sure you never execute code
whats-o-ever when I read my email, and so do many others.

More old tricks, add an image to the HTML-email that 'phones home'.
eg:
<img src="http://www.myspywaresite.com/someAssReadMail.php?id=2345">

Many (good) emailproviders make sure this trick doesn't work either.

To put it bluntly: Don't persue the path you are following now. People don't
like it and while you could get it working for some (unsafe) emailclients,
the idea behind it is horrible.

Just my 2 cent...

Regards,
Erwin Moller
May 29 '06 #2
Thanks.

The true purpose is i need to add some Flag to a mail in my server -
only when the user clicks it.
Lets say its a "spam" flag (just for the example)
i want to add a link of "report spam" and when the user clicks it, it
will only send the flagging request - without the user seeing
anything..
the obvious way to do this for full support is add a link that will
open a browser, and will show "Thank you for flagging"
but i wanted it to be hidden...

May 29 '06 #3
yo****@gmail.com wrote:
Thanks.

The true purpose is i need to add some Flag to a mail in my server -
only when the user clicks it.
Lets say its a "spam" flag (just for the example)
i want to add a link of "report spam" and when the user clicks it, it
will only send the flagging request - without the user seeing
anything..
the obvious way to do this for full support is add a link that will
open a browser, and will show "Thank you for flagging"
but i wanted it to be hidden...


Yes, all clear and fine.
But as I told you, you will never get a reliable solution.
Why?
Because many people don't like, and refuse to execute, JS in their
emailclient. Period.

Please understand that what you are asking for is JS-functionality in a
place where JS-functionality is seldom seen/wanted for obvious
(privacy/security) reasons.

I don't want JS in my emailclient for the same reason I don't want JS on my
telivisionset: It doesn't belong there.
At least in my humble opinion.

While you MIGHT find people activating HTML in their emailclient, and you
might also find people who activate JS in their emailclient, don't expect
the rest of us to enable it.

Not a lot you can do about that.

Regards,
Erwin Moller
May 29 '06 #4
yo****@gmail.com wrote:
The true purpose ...

<snip>

Does not matter in the slightest. You will not be able to execute
javascript in (many, if any) mail clients.

Richard.
May 29 '06 #5
In article <11*********************@j33g2000cwa.googlegroups. com>,
yo****@gmail.com says...
Thanks.

The true purpose is i need to add some Flag to a mail in my server -
only when the user clicks it.
Lets say its a "spam" flag (just for the example)
i want to add a link of "report spam" and when the user clicks it, it
will only send the flagging request - without the user seeing
anything..
the obvious way to do this for full support is add a link that will
open a browser, and will show "Thank you for flagging"
but i wanted it to be hidden...


Are you replying to something? Learn to quote properly, and stop using
that Google Groups shit.
--
Hywel
http://kibo.org.uk/
May 29 '06 #6
yo****@gmail.com wrote:
my final goal: to add a link to an email message, that will contact my
server & mark the email as "important", with no popup windows/annoying
messages.


<a href="mailto:im***********@example.com">im******** ***@example.com</a>

Then configure your email client or something on your mail server (such as
procmail) to set suitable headers so that it gets marked as important.

I don't think you can persuade the user's mail client to send arbitrary mail
headers (certainly not with JavaScript)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
May 29 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stuart D. Gathman | last post by:
Running the following with Python 2.2.2: from email.Parser import Parser txt = """Subject: IE is Evil Content-Type: image/pjpeg; name="Jim&amp;&amp;Jill" <html> </html> """
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
39
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
5
by: johnny | last post by:
hi all, I would like to know if the more and more websites offering the 3 font sizes option by style switching are just following a trend or have chose the best solution by an...
2
by: hstockbridge5 | last post by:
Hi, My company's Exchange team created a mailbox for our department with an ampersand in the SMTP e-mail address (e.g. ABCD&EFG@domain.com.) Is it possible to create a mailto link that can...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.