hyperlink

Rendering links in tweet when using Get Statuses API 1.1

。_饼干妹妹 提交于 2019-12-07 05:53:57
问题 I'm using the Twitter API 1.1 Get statuses method to return the latest tweet from an account on the client's website. This is working fine but I can't find any clear documentation on how to render any links that may be included (Both included usernames and included links) as clickable links? I can see in the JSON response that any included links are in the XML but it's not clear to me how to go about adding clickable links into the rendered output. The documentation around the new API seems

How does bash recognize a link?

我怕爱的太早我们不能终老 提交于 2019-12-07 05:51:41
问题 In a bash script that captures a href link, how does bash know that TEXT is a link and not a typical string? Why at the end when $TEXT="www.google.com", TEXT is still a link? Can you do that with a file? For example having a 'Click me' that runs a scrip. shopt -s nocasematch TEXT='<a href="http://www.google.com/search/something/lulz/here2 i=!mfo1iu489fn1o2jlk21m4098mdoi">"test link"</a><br>' TEXT=${TEXT##*href=\"} TEXT=${TEXT%%\"*} TEXT=${TEXT##*//} TEXT=${TEXT%%/*} echo $TEXT 回答1: I'd say

Is it acceptable to make external links target=“_blank”?

戏子无情 提交于 2019-12-07 05:49:22
问题 I'm a bit confused whether or not I should make the links on my website that point externally target="_blank". Does this practice negatively affect the usability of your site (i.e. breaking the "back button trail")? Is it commonly found annoying by most users? Is it acceptable in some situations but not others? I want to make an enjoyable user experience for all of my sites and would hate to do something that annoys my users. What is your experience/advice on the matter? 回答1: I've read plenty

Mandrill Editable Template: mc:edit link href

僤鯓⒐⒋嵵緔 提交于 2019-12-07 05:32:05
问题 I'm trying to use Mandrill templates to send order tracking emails. Using the mc:edit works well for simple text like <span mc:edit="ship_id">ship_id</span><br> I was wondering if there was a way to pass the href link in a variable i.e. tracking_url <a class="mcnButton " title="Track order" href=tracking_url target="_blank" style="font-weight: bold;text-align: center;">Track Order</a> I'm using Djrill for Django and here's the code which sends the email so far, and I'd like to add tracking

What is the simplest way to add a hyperlink to a canvas element in ReportLab?

做~自己de王妃 提交于 2019-12-07 05:25:30
问题 I am using ReportLab to make a pdf using Python. I want to add a shape to the canvas, and have that shape act as a hyperlink. What is the simplest way to make the rectangle in the following example link to google.com? from reportlab.pdfgen import canvas from reportlab.lib.units import inch c = canvas.Canvas("hello.pdf") # move the origin up and to the left, draw square c.translate(inch,9*inch) # How do I make this rectangle link to google.com? c.rect(inch,inch,1*inch,1*inch, fill=1) c

how render string to html link

前提是你 提交于 2019-12-07 05:19:11
问题 I send some message to email as below: string link = "http://localhost:1900/ResetPassword/?username=" + user.UserName + "&reset=" + HashResetParams( user.UserName, user.ProviderUserKey.ToString() ); email.Body = link; This string was sent to email, but shown as string, not as link, I want send it as link to click. 回答1: Try this string link = String.Format("<a href=\"http://localhost:1900/ResetPassword/?username={0}&reset={1}\">Click here</a>", user.UserName, HashResetParams( user.UserName,

Sitecore MVC and FieldRenderer.Render for Links

a 夏天 提交于 2019-12-07 04:56:22
问题 I'm trying to render a general link field like this - FieldRenderer.Render(item, "link") . This works as expected but how do I set custom text within the a tag that gets rendered. I want my output to look something like this <a href="[link from sitecore]">[custom text from another field]</a> Basically, the text for the link should come from another field on the item. Thanks 回答1: You probably want to try the following: @Html.Sitecore().BeginField("Link Field") //custom code @Html.Sitecore()

How to open a file by clicking on HyperLink

a 夏天 提交于 2019-12-07 04:15:38
问题 I have this table I want to click on the link and the file (whatever file) will be opened in a new pop-up window. Here is my code: <asp:Repeater ID="dokumente" runat="server"> <ItemTemplate> <tr> <td><asp:HyperLink ID="HyperLink4" runat="server" Text='<%# Eval("DokuTyp") %>' NavigateUrl='file://<%# Eval("File") %>'></asp:HyperLink></td> <td><%# Eval("Description")%></td> <td><%# Eval("Date") %></td> <td><%# Eval("File") %></td> </tr> </ItemTemplate> </asp:Repeater> But it doesn't work with

C# : xml serialization of nodes with cyclic links

大城市里の小女人 提交于 2019-12-07 04:00:43
问题 I have a class Node something like this : class Node { IEnumerable<Node> inputs; } Which basicly defines a simple graph. I want to serialize my graph to a human-readable form, so normally I'd say xml would be the way to go. But XML wasn't made with cyclic dependencies in mind :) So - what would be the best way to go for serialization of my graph ? I can think of a few ways : ditch XML, create my own format. use XML, tag each node with a unique ID, store connection-lists separate from the

style links in javascript console

纵然是瞬间 提交于 2019-12-07 03:15:06
问题 i have a console.log message on my site with a link. The styling is working but the link remains in black font on white background. Can i change that? $(function() { var t = navigator.userAgent.toLowerCase(); if (/(chrome|firefox|safari)/.test(t.toLowerCase())) { var e = ["padding: 20px 5px 16px", "background-color: #171718", "color: #f2641c"].join(";"); var i = ["padding: 20px 5px 16px", "background-color: #f2641c", "color: #ffffff"].join(";"), n = ["background-color: transparent"].join(";")