PC Review


Reply
Thread Tools Rate Thread

Confused over serside script

 
 
Wayne-I-M
Guest
Posts: n/a
 
      8th Jun 2008

Hi

I am confused

I got this code from
http://reliableanswers.com/js/mailme.asp

But is (E-Mail Removed) the e mail address that the mail will go to and if
it is is it not very easy for a spider to find this??

What is the point is scripting the address lower down it is it shown clearly
higher up.

V strange - I am almost certainly misunderstanding this script




<%
Function mailMe(sAddress, sCaption, sTitle)
'=mailMe("(E-Mail Removed)","Display","Title")
Dim sBuild, sSplit, sSplit2, sMailMe
sSplit = Split(sAddress, "@", 2)
If InStr(1, sSplit(1), "?", 1) > 0 Then
sSplit2 = Split(sSplit(1), "?", 2)
sMailMe = "mailMe('" _
& Server.URLEncode( sSplit2(0) ) & "?" _
& Replace( sSplit2(1), "'", "\'") & "','" _
& Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
& "')"
Else
sMailMe = "mailMe('" _
& Server.URLEncode( sSplit(1) ) _
& "','" _
& Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
& "')"
End If
sBuild = "onmouseover=""javascript:this.href=" _
& sMailMe & ";"" " _
& "onfocus=""javascript:this.href=" _
& sMailMe & ";"""
sBuild = "<a href=""/contact/"" " _
& sBuild _
& " title=""" & sTitle & """>"
If sCaption = "" Then
sBuild = sBuild & sSplit(0)
Else
sBuild = sBuild & sCaption
End If
mailMe = sBuild & "</a>"
End Function
%>

--
Wayne
Manchester, England.

 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      9th Jun 2008
The point is that because this is server-side script, it will only be seen
on the server. In other words, this should not be passed to the client
browser at all. It is just a piece of script that the server will compile
and attempt to work with as needed. So in this case, (E-Mail Removed) is the
email address the mail would be sent to, but the data is executed on the
server and the code will not be sent to the browser at all.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Wayne-I-M" <(E-Mail Removed)> wrote in message
news:82AAE1B2-859A-4DE2-99DA-(E-Mail Removed)...
>
> Hi
>
> I am confused
>
> I got this code from
> http://reliableanswers.com/js/mailme.asp
>
> But is (E-Mail Removed) the e mail address that the mail will go to and if
> it is is it not very easy for a spider to find this??
>
> What is the point is scripting the address lower down it is it shown
> clearly
> higher up.
>
> V strange - I am almost certainly misunderstanding this script
>
>
>
>
> <%
> Function mailMe(sAddress, sCaption, sTitle)
> '=mailMe("(E-Mail Removed)","Display","Title")
> Dim sBuild, sSplit, sSplit2, sMailMe
> sSplit = Split(sAddress, "@", 2)
> If InStr(1, sSplit(1), "?", 1) > 0 Then
> sSplit2 = Split(sSplit(1), "?", 2)
> sMailMe = "mailMe('" _
> & Server.URLEncode( sSplit2(0) ) & "?" _
> & Replace( sSplit2(1), "'", "\'") & "','" _
> & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> & "')"
> Else
> sMailMe = "mailMe('" _
> & Server.URLEncode( sSplit(1) ) _
> & "','" _
> & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> & "')"
> End If
> sBuild = "onmouseover=""javascript:this.href=" _
> & sMailMe & ";"" " _
> & "onfocus=""javascript:this.href=" _
> & sMailMe & ";"""
> sBuild = "<a href=""/contact/"" " _
> & sBuild _
> & " title=""" & sTitle & """>"
> If sCaption = "" Then
> sBuild = sBuild & sSplit(0)
> Else
> sBuild = sBuild & sCaption
> End If
> mailMe = sBuild & "</a>"
> End Function
> %>
>
> --
> Wayne
> Manchester, England.
>

 
Reply With Quote
 
Wayne-I-M
Guest
Posts: n/a
 
      9th Jun 2008
Thanks Mark

Do I insert this code (and the other) on that site into my web page or do I
need to send it to our web host.

Sorry but I am confused by this whole thing.

LoL you will be happy to know that I we have just got copy of expression
studio so in a few weeks there should be a few less dumb questions in this
forum :-)

--
Wayne
Manchester, England.



"Mark Fitzpatrick" wrote:

> The point is that because this is server-side script, it will only be seen
> on the server. In other words, this should not be passed to the client
> browser at all. It is just a piece of script that the server will compile
> and attempt to work with as needed. So in this case, (E-Mail Removed) is the
> email address the mail would be sent to, but the data is executed on the
> server and the code will not be sent to the browser at all.
>
> Hope this helps,
> Mark Fitzpatrick
> Microsoft MVP - Expression
>
> "Wayne-I-M" <(E-Mail Removed)> wrote in message
> news:82AAE1B2-859A-4DE2-99DA-(E-Mail Removed)...
> >
> > Hi
> >
> > I am confused
> >
> > I got this code from
> > http://reliableanswers.com/js/mailme.asp
> >
> > But is (E-Mail Removed) the e mail address that the mail will go to and if
> > it is is it not very easy for a spider to find this??
> >
> > What is the point is scripting the address lower down it is it shown
> > clearly
> > higher up.
> >
> > V strange - I am almost certainly misunderstanding this script
> >
> >
> >
> >
> > <%
> > Function mailMe(sAddress, sCaption, sTitle)
> > '=mailMe("(E-Mail Removed)","Display","Title")
> > Dim sBuild, sSplit, sSplit2, sMailMe
> > sSplit = Split(sAddress, "@", 2)
> > If InStr(1, sSplit(1), "?", 1) > 0 Then
> > sSplit2 = Split(sSplit(1), "?", 2)
> > sMailMe = "mailMe('" _
> > & Server.URLEncode( sSplit2(0) ) & "?" _
> > & Replace( sSplit2(1), "'", "\'") & "','" _
> > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> > & "')"
> > Else
> > sMailMe = "mailMe('" _
> > & Server.URLEncode( sSplit(1) ) _
> > & "','" _
> > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> > & "')"
> > End If
> > sBuild = "onmouseover=""javascript:this.href=" _
> > & sMailMe & ";"" " _
> > & "onfocus=""javascript:this.href=" _
> > & sMailMe & ";"""
> > sBuild = "<a href=""/contact/"" " _
> > & sBuild _
> > & " title=""" & sTitle & """>"
> > If sCaption = "" Then
> > sBuild = sBuild & sSplit(0)
> > Else
> > sBuild = sBuild & sCaption
> > End If
> > mailMe = sBuild & "</a>"
> > End Function
> > %>
> >
> > --
> > Wayne
> > Manchester, England.
> >

>

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      9th Jun 2008
You insert it in code view on your page and run it on a server that supports ASP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Wayne-I-M" <(E-Mail Removed)> wrote in message news:30871BF0-7B3E-438A-AE66-(E-Mail Removed)...
| Thanks Mark
|
| Do I insert this code (and the other) on that site into my web page or do I
| need to send it to our web host.
|
| Sorry but I am confused by this whole thing.
|
| LoL you will be happy to know that I we have just got copy of expression
| studio so in a few weeks there should be a few less dumb questions in this
| forum :-)
|
| --
| Wayne
| Manchester, England.
|
|
|
| "Mark Fitzpatrick" wrote:
|
| > The point is that because this is server-side script, it will only be seen
| > on the server. In other words, this should not be passed to the client
| > browser at all. It is just a piece of script that the server will compile
| > and attempt to work with as needed. So in this case, (E-Mail Removed) is the
| > email address the mail would be sent to, but the data is executed on the
| > server and the code will not be sent to the browser at all.
| >
| > Hope this helps,
| > Mark Fitzpatrick
| > Microsoft MVP - Expression
| >
| > "Wayne-I-M" <(E-Mail Removed)> wrote in message
| > news:82AAE1B2-859A-4DE2-99DA-(E-Mail Removed)...
| > >
| > > Hi
| > >
| > > I am confused
| > >
| > > I got this code from
| > > http://reliableanswers.com/js/mailme.asp
| > >
| > > But is (E-Mail Removed) the e mail address that the mail will go to and if
| > > it is is it not very easy for a spider to find this??
| > >
| > > What is the point is scripting the address lower down it is it shown
| > > clearly
| > > higher up.
| > >
| > > V strange - I am almost certainly misunderstanding this script
| > >
| > >
| > >
| > >
| > > <%
| > > Function mailMe(sAddress, sCaption, sTitle)
| > > '=mailMe("(E-Mail Removed)","Display","Title")
| > > Dim sBuild, sSplit, sSplit2, sMailMe
| > > sSplit = Split(sAddress, "@", 2)
| > > If InStr(1, sSplit(1), "?", 1) > 0 Then
| > > sSplit2 = Split(sSplit(1), "?", 2)
| > > sMailMe = "mailMe('" _
| > > & Server.URLEncode( sSplit2(0) ) & "?" _
| > > & Replace( sSplit2(1), "'", "\'") & "','" _
| > > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
| > > & "')"
| > > Else
| > > sMailMe = "mailMe('" _
| > > & Server.URLEncode( sSplit(1) ) _
| > > & "','" _
| > > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
| > > & "')"
| > > End If
| > > sBuild = "onmouseover=""javascript:this.href=" _
| > > & sMailMe & ";"" " _
| > > & "onfocus=""javascript:this.href=" _
| > > & sMailMe & ";"""
| > > sBuild = "<a href=""/contact/"" " _
| > > & sBuild _
| > > & " title=""" & sTitle & """>"
| > > If sCaption = "" Then
| > > sBuild = sBuild & sSplit(0)
| > > Else
| > > sBuild = sBuild & sCaption
| > > End If
| > > mailMe = sBuild & "</a>"
| > > End Function
| > > %>
| > >
| > > --
| > > Wayne
| > > Manchester, England.
| > >
| >


 
Reply With Quote
 
Wayne-I-M
Guest
Posts: n/a
 
      10th Jun 2008
Thank you Mark and Stefan
--
Wayne
Manchester, England.



"Stefan B Rusynko" wrote:

> You insert it in code view on your page and run it on a server that supports ASP
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Wayne-I-M" <(E-Mail Removed)> wrote in message news:30871BF0-7B3E-438A-AE66-(E-Mail Removed)...
> | Thanks Mark
> |
> | Do I insert this code (and the other) on that site into my web page or do I
> | need to send it to our web host.
> |
> | Sorry but I am confused by this whole thing.
> |
> | LoL you will be happy to know that I we have just got copy of expression
> | studio so in a few weeks there should be a few less dumb questions in this
> | forum :-)
> |
> | --
> | Wayne
> | Manchester, England.
> |
> |
> |
> | "Mark Fitzpatrick" wrote:
> |
> | > The point is that because this is server-side script, it will only be seen
> | > on the server. In other words, this should not be passed to the client
> | > browser at all. It is just a piece of script that the server will compile
> | > and attempt to work with as needed. So in this case, (E-Mail Removed) is the
> | > email address the mail would be sent to, but the data is executed on the
> | > server and the code will not be sent to the browser at all.
> | >
> | > Hope this helps,
> | > Mark Fitzpatrick
> | > Microsoft MVP - Expression
> | >
> | > "Wayne-I-M" <(E-Mail Removed)> wrote in message
> | > news:82AAE1B2-859A-4DE2-99DA-(E-Mail Removed)...
> | > >
> | > > Hi
> | > >
> | > > I am confused
> | > >
> | > > I got this code from
> | > > http://reliableanswers.com/js/mailme.asp
> | > >
> | > > But is (E-Mail Removed) the e mail address that the mail will go to and if
> | > > it is is it not very easy for a spider to find this??
> | > >
> | > > What is the point is scripting the address lower down it is it shown
> | > > clearly
> | > > higher up.
> | > >
> | > > V strange - I am almost certainly misunderstanding this script
> | > >
> | > >
> | > >
> | > >
> | > > <%
> | > > Function mailMe(sAddress, sCaption, sTitle)
> | > > '=mailMe("(E-Mail Removed)","Display","Title")
> | > > Dim sBuild, sSplit, sSplit2, sMailMe
> | > > sSplit = Split(sAddress, "@", 2)
> | > > If InStr(1, sSplit(1), "?", 1) > 0 Then
> | > > sSplit2 = Split(sSplit(1), "?", 2)
> | > > sMailMe = "mailMe('" _
> | > > & Server.URLEncode( sSplit2(0) ) & "?" _
> | > > & Replace( sSplit2(1), "'", "\'") & "','" _
> | > > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> | > > & "')"
> | > > Else
> | > > sMailMe = "mailMe('" _
> | > > & Server.URLEncode( sSplit(1) ) _
> | > > & "','" _
> | > > & Server.URLEncode( Replace( sSplit(0), ".", "#") ) _
> | > > & "')"
> | > > End If
> | > > sBuild = "onmouseover=""javascript:this.href=" _
> | > > & sMailMe & ";"" " _
> | > > & "onfocus=""javascript:this.href=" _
> | > > & sMailMe & ";"""
> | > > sBuild = "<a href=""/contact/"" " _
> | > > & sBuild _
> | > > & " title=""" & sTitle & """>"
> | > > If sCaption = "" Then
> | > > sBuild = sBuild & sSplit(0)
> | > > Else
> | > > sBuild = sBuild & sCaption
> | > > End If
> | > > mailMe = sBuild & "</a>"
> | > > End Function
> | > > %>
> | > >
> | > > --
> | > > Wayne
> | > > Manchester, England.
> | > >
> | >
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How would you write a script to add and apply a group policy in Active Directory? Script could be VBscript arpitaashokadessai@gmail.com Microsoft Windows 2000 Active Directory 1 14th Feb 2007 09:07 PM
Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT news.microsoft.com Microsoft Outlook VBA Programming 3 22nd Nov 2006 03:33 PM
Confused Newbie - Very Confused:( Wizard Microsoft Access Forms 0 20th Oct 2005 10:37 AM
BUG: Script blocking strips script parameters during script authorization Jonathan K. Shay Spyware Announcements 3 2nd May 2005 06:18 PM
Confused, need valid logon for OE, confused.. Rob Windows XP General 1 3rd Nov 2003 02:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:12 AM.