hyperlink

how to pass POST variable by links to own pages?

為{幸葍}努か 提交于 2019-12-05 09:41:31
Hi i wannna get variable $_POST by link to self pages. Example : <?PHP $var = 'PIG'; echo "<a href='test.php?var=$var'>link</a>"; if (isset($_POST['var'])) { echo $_POST['var']); } ?> it links to own pages. (test.php) It not works, who can help me please. Thanks A link cannot POST data, only GET . In contrast to the GET request method where only a URL and headers are sent to the server, POST requests also include a message body. This allows for arbitrary length data of any type to be sent to the server. Basically, a POST requires two requests, 1) the server receives the "normal" request, with

How to open a file by clicking on HyperLink

删除回忆录丶 提交于 2019-12-05 09:37:16
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 NavigateUrl. Can anyone help me on this or any idea how to do this. Thanks The file:/// is for resources

How to extract links from a webpage using lxml, XPath and Python?

回眸只為那壹抹淺笑 提交于 2019-12-05 09:14:25
I've got this xpath query: /html/body//tbody/tr[*]/td[*]/a[@title]/@href It extracts all the links with the title attribute - and gives the href in FireFox's Xpath checker add-on . However, I cannot seem to use it with lxml . from lxml import etree parsedPage = etree.HTML(page) # Create parse tree from valid page. # Xpath query hyperlinks = parsedPage.xpath("/html/body//tbody/tr[*]/td[*]/a[@title]/@href") for x in hyperlinks: print x # Print links in <a> tags, containing the title attribute This produces no result from lxml (empty list). How would one grab the href text (link) of a hyperlink

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

眉间皱痕 提交于 2019-12-05 08:52:05
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.showPage() c.save() Call linkURL on the Canvas: c.linkURL('http://google.com', (inch, inch, 2*inch, 2*inch),

Can't override user agent stylesheet coloring my links

冷暖自知 提交于 2019-12-05 07:59:49
It's always these simple problems that snag me. I have a very simple page I'm building, and I want the hyperlinks to not be colored specially at all (not blue originally, not purple for visited) or underlined. I've done this in other sites before without issue simply by using a, a:visited, a:hover, a:active { text-decoration: none; color: none; } However, in this particular site, that's not doing the trick for the color, while the underline is successfully removed. I even tried adding the dreaded !important tag, with no effect. This issue has been seen on Chrome, IE 11, and Android (WebView).

C# : xml serialization of nodes with cyclic links

社会主义新天地 提交于 2019-12-05 07:05:58
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 Nodes and resolve after loading But I think other people must have had this same problem before, so there

making POST request in rails with hyperlinks

风流意气都作罢 提交于 2019-12-05 06:19:34
I need a bunch of links on a page each of which makes a POST to a different controller. But when I use normal links, I get a ActionController::InvalidAuthenticityToken error. I understand this is because of the missing authenticity_token value. But I don't want to use forms to do the POST because I want them to be links and not buttons. Fact is, I want complete control over the styling of the links and buttons just don't do it for me. What's the standard way of doing such things? You have lots of options. Disable AT check: protect_from_forgery :only => [] Assign onclick handler to the link and

Button or Link That Changes Page in Iframe

痴心易碎 提交于 2019-12-05 06:09:01
问题 I wish to make a link or button in a page that changes the page the iframe is on. It would be a local page: idreesinc.com/iframe.html and you can see what I have already here: idreesinc.com/research Help would be much appreciated as i have been looking for an answer for ages. Thanks! 回答1: <script> function setURL(url){ document.getElementById('iframe').src = url; } </script> <iframe id="iframe" src="idreesinc.com/research.html" /> <input type="button" onclick="setURL('URLHere')" /> 回答2: You

Android ACTION_SEND Hyperlink not working in GMail

隐身守侯 提交于 2019-12-05 06:04:45
This is my code for sending an HTML email in Android, with a clickable link. private void sendEmail() { Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); String subject = "Prueba"; String emailtext = "<a href=http://www.google.es>PruebaEmail</a>"; emailIntent.setType("message/rfc822"); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(emailtext.toString())); startActivity(Intent.createChooser(emailIntent, "Send mail")); } Months ago, it was working and sends a clickable hyperlink, but

Thymeleaf: clickable row

泪湿孤枕 提交于 2019-12-05 05:56:44
I want to generate clickable table rows within html + thymeleaf, but I have the following problem. AFAIK it's not able to wrap a tr element with a link (a-tag), because a table can only directly contain tr-subtags. So I have to wrap the content of each td-tag, but these values are dynamically created by thymeleaf! What would be the best approach to link each row (link each td-tag of each row) to a generated url? Is there some th:text - prefix/suffix functionality? <tr th:each="item : ${itmes}"> <td th:text="${{item.name}}">some name</td> <td th:text="${{item.date}}">01.03.2014</td> <td>author<