Advertisement
Advertisement
| 09.07.2008 at 09:07AM PDT, ID: 23710266 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: |
<%
' Automatically populate link with filename by B_Dorsey at Experts Exchange
' http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_22148871.html?cid=239#18465161
' incorperating a script to find and replace cr/lf with HTML line breaks by b0lsc0tt also at EE
' http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_22127810.html#18343873
' Using Multiple RegExp statements by B_Dorsey at Experts Exchange
' http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_22396646.html
' If you use this code (or any part of it) please keep this header intact.
' These guys did the work, they deserve the credit. Many thanks.
scr = Request.ServerVariables("SCRIPT_NAME")
loc = instrRev(scr,"/")
scr = mid(scr, loc+1, len(scr) - loc)
'response.write scr
Dim objRegExp
Set objRegExp = New RegExp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<id=([^>]+)+>" ' Populate Link
sContent = Replace(rsContent.Fields.Item("Content").Value, vbcrlf, "<br />") ' Find & replace
sContent = objRegExp.Replace(sContent, "<div id=more><a href=" & scr & "?ID=$1 class=more>[ Find out more ]</a></div>")
' Multiple RegExp
sContent = Replace(sContent,"'","'")
sContent = Replace(sContent,"£","&#pound;")
sContent = Replace(sContent,"<charityName>",(rsCharityDetails.Fields.Item("CharityName").Value))
sContent = Replace(sContent,"<b>","<b class='contentHead'>")
' End of Multiple RegExp
response.write sContent
Set objRegExp = Nothing
%>
<%
' If a contact name exists write it. Thanks to Rouchie at Experts Exchange
' http://www.experts-exchange.com/Web/WebDevSoftware/DreamWeaver/Q_22124635.html#18331075
if (scr = "FamilyServices.asp") Then %>
<% If rsContent.Fields.Item("PersonnelID").Value <> "" Then %>
<div id="contactDetailsHeading">Contact Details</div>
<div id="contactDetails"><%=(rsContent.Fields.Item("Name").Value)%><br />
<a href="mailto:<%=(rsContent.Fields.Item("EmailAddressName").Value)%><%=(rsContacts.Fields.Item("emailAddressEnder").Value)%>?subject=<%=(rsContent.Fields.Item("SectionContentTitle").Value)%>"><%=(rsContent.Fields.Item("EmailAddressName").Value)%><%=(rsContacts.Fields.Item("emailAddressEnder").Value)%></a><br />
<%=(rsCharityDetails.Fields.Item("TelephoneNumber").Value)%></div>
<% End If %>
<% End If %>
|