|
Does anyone know what the proper way to separate email addresses in the mailto protocol is so they work with thunderbird and outlook?
Outlook wants semicolons and thunderbird wants commas. ARG!
Any ideas on how to make it work for both?
|
|
|
|
|
Ignore my comments, as I do not know what I am talking about, although I still hold that commas are bad for separating data.
Well, I don't know what the standards dictate, but logic should hold that addresses should be delimited using semi-colons, as a fully specified address could possibly contain embedded commas (but highly unlikely to contain embedded semi-colons)
For example, if a user had a fully specified address of "John C. Doe, MD <jdoe@example.com>" delimiting by commas would result in two addresses in the list "John C. Doe" (which may then match against an internal address book) and "MD <jdoe@example.com>". This is clearly not the user's desired effect.
Side-note:
Commas are a horrible delimiter in my opinion which is why I use the pipe character "|" in many circumstances as a delimiter rather than attempting to use a text qualifier for embedding commas in fields. Many programs do not like it when the text qualifier is not used for every instance of the field and even then you need to code for the embedded text qualifier. Using a character that is unlikely to be embedded is often the faster route.
modified on Saturday, October 4, 2008 2:05 PM
|
|
|
|
|
Scott Barbour wrote: logic should hold that addresses should be delimited using semi-colons as a fully specified address could possibly contain embedded commas (but highly unlikely to contain embedded semi-colons)
Logic should tell you that, sooner or later, someone will try to cram punctuation in somewhere. Either you have to disallow it completely, or escape it in some way.
Scott Barbour wrote: "John C. Doe, MD <jdoe@example.com>" delimiting by commas would result in two addresses in the list
No. I'm assuming you're using quotes to delimit the address in your reply, so the address under consideration is John C. Doe, MD <jdoe@example.com> . That contains an invalid character - the comma. Properly specified, the display name portion would be quoted to avoid this problem: "John C. Doe, MD" <jdoe@example.com> . Now, you could still have a comma-separated list of these addresses, since the quoted comma would not be recognized as an address separator.
Scott Barbour wrote: Commas are a horrible delimiter in my opinion which is why I use the pipe character "|" in many circumstances as a delimiter rather than attempting to use a text qualifier for embedding commas in fields.
If you can guarantee you'll never have a pipe character embedded in your fields, then this works. If you can't, then you must provide a way of escaping it and you're little better off than if you had used a comma.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Member 4483922 wrote: Any ideas on how to make it work for both?
To the best of my knowledge, you can't. The standard specifies a comma-separated list[^], but Outlook wants semicolons - so no matter which way you go, you'll end up breaking one or the other. Given that it is possible to configure Outlook[^] to recognize comma-separated lists, i would use commas... but YMMV - if most of your users end up using Outlook, then semicolons will keep them happier.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hi,
Pls tell me any small example about Remote Scripting with out using Ajax in c#.net.Thanks in Advance. ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Member 3824163 wrote: Pls tell me any small example about Remote Scripting with out using Ajax
What do you mean by "Remote Scripting". In this definition[^] it is defined as making a trip to the server. If we apply your question to that definition of Remote Scripting, your question becomes: How can a make a trip to the server without making a trip to the server.
So what is your definition of "Remote Scripting"?
led mike
|
|
|
|
|
I read one article which says, Remote Scripting can be implemented with or without using Ajax. I didn't mean that without making a trip to the server.I mean that without using Ajax only not server.
can anyone help me regarding this ??? Thanks in advance.
|
|
|
|
|
AnilJayanti wrote: I read one article which says, Remote Scripting can be implemented with or without using Ajax.
Can you provide a link to the article?
led mike
|
|
|
|
|
Thanxs. At Present i'm not having that link, and i also confirmed with my friends who works on Remote scripting that page events code will be handled in javascript and Remote scripting DLL.
|
|
|
|
|
|
I have a very simple multi level css menu that doesn't work properly in firefor.
The problem is that the when your put your mouse over a menu the sub menu doesn't show.
Heres the Css file.
/*============================================================================================================*/
#nav, #nav ul{
margin ;
padding ;
list-style-type:none;
list-style-position:outside;
position:relative;
line-height:1.5em;
}
#nav a
{
color: #656556;
display: block;
background: url(menu82.gif);
padding: 0px 0 0 20px;
display:block;
}
#nav a:hover
{
color: #474739;
background: url(menu82.gif) 0 -32px;
padding: 0px 0 0 20px;
}
#nav li{
float:left;
position:relative;
}
#nav ul {
position:absolute;
display:none;
width:10em;
top:1.5em;
}
#nav li ul a{
width:12em;
height:auto;
float:left;
}
#nav ul ul{
top:auto;
}
#nav li ul ul {
left:12.8em;
margin:0px 0 0 10px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
display:none;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul{
display:block;
}
/*====================*/
|
|
|
|
|
hi,
m learning Auto completion Ajax control , i wort a web service execute a query and sends back array of string to the page, how can i passing criteria to this web service by a parameter?
|
|
|
|
|
i guess every body is sleep now i will try later ![WTF | :WTF:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_WTF.gif)
|
|
|
|
|
Basically the web method signature should not be altered. It should be only of the form
<br />
public static string[] GetCompletionList(string prefixText, int count, string contextKey)<br />
{<br />
....<br />
}<br />
Here
prefixText = field value (on which the details has to be filtered)
count = number of values to be returned in the array
contextKey = the Column name on which the prefixText has to be applied.
And moreover, if you want to pass more parameter to this web service - you have two options,
1. Pass using Session variables by enabling the Session in web method
2. You can append values to the contextKey with some delimitters and in the web method you can make use of a split function to read the parameters passed.
Hope this helps you.
Regards,
Vengat
|
|
|
|
|
Create a proxy of the webservice and then create an instance of that proxy class.
|
|
|
|
|
Hi.
Is it possible to avoid CAPTCHA in our websites?
Thank you
|
|
|
|
|
Sure - just don't put it in there. PEople have done that since before CAPTCHA was invented.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
|
I always thought the secret to solving CAPTCHAs was a work queue and a page with "Enter these letters to see more hot photos of (name) for free!". :P
|
|
|
|
|
If the question is:
"Do CAPTCHAs actually do much and stop people spamming our websites? Therefore is it worth putting them in?",
then it depends on how much traffic your website receives, but also whether you can be bothered with them and feel that the protection they offer will outweigh the hassle it will cause your users. By all means, put them in if you feel it's necessary. They do help against spam bots that may try to submit forms automatically, but they can be circumvented, and it depends if this is worth it - if the form you want to protect against submission is to register an account, then it may be useful putting one in. Similarly if it is to send an e-mail, you want to do it to help alleviate the possibility of spam. If it is something that isn't worth the hassle over, I wouldn't bother.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
Why do you want to? There are numerous reasons why they are implemented
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
So, I have worked out a lot of my IE7 woes. I have one more. I have a page full of imgs. js is called when the image gets or loses focus:
function showBorder(element)
{
element.style.border = "5 solid rgb(0,0,0)";
element.style.borderTopStyle = "none";
element.style.borderBottomStyle = "none";
element.style.cursor = "pointer";
element.style.cursor = "hand";
}
function hideBorder(element)
{
element.style.border = "";
element.style.cursor = "default";
}
This code, specifically, any change to element.style.border, causes the whole page to disappear. Even if I comment out 'showBorder', hideBorder reports that element.style.border has a value of "", and when I set it to "" again, the page disappears. Any help appreciated.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi.
Please post your HTML and please use <pre></pre>
|
|
|
|
|
The html is an img tag, there's nothing of relevance there.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|