hyperlink

Handling Hyperlinks in WPF RichTextBox Html?

让人想犯罪 __ 提交于 2019-12-25 02:53:24
问题 I have a RichTextBox in a WPF application (C#.NET4.5). The RichTextBox is in Rtf format. I'm using a MarkupConverter to convert and save the RichTextBox.Text Rtf text back in the Db as Html. If a user opens an existing record, the markup converter converts from Html back into Rtf for display in the UI. All works well. I have an issue trying to handle Hyperlinks. Because the Markup Converter has to convert from Rtf-Xaml-Html I don't believe that there is a Xaml tag which equates to Href or

How to properly use javascript-links for users without js

时光毁灭记忆、已成空白 提交于 2019-12-25 02:08:54
问题 I hope I'm not creating a duplicate here, but I just don't really know what to look for/didn't find anything useful yet. I got several links ( <a> ) on my page that trigger the jquery click() handler, which will load a new page into a div without reload. To make those links available to non-javascript users, I want to link them to the same page (that's why I'm using s and not just any div/span/button). Propblem with that is that the script will reload anyway, so you can say jaavascript is

need help fixing the link's clickable area

百般思念 提交于 2019-12-25 01:55:27
问题 Was just amusing myself with a little useless site, practicing this and that. I came across a problem, where the link is only clickable on the left, not the right. how it looks: div, inside it a header(2) with in it a link <div class="button one"><h2><a href="#">example</a></h2></div> It has a right border, a hover function and quite a width. It is absolute positioned. Been trying around a bit a came up with following code (it is a bith messy, sorry) .button{ position:absolute; padding:0px;

check if <ul> <li> has an active link?

。_饼干妹妹 提交于 2019-12-25 01:46:23
问题 i have <ul> <li class="section-title">HEADER which triggers dropdown</li> <li><a href="element_one">element one</a></li> <li><a href="element_one">element one</a></li> <li><a href="element_one">element one</a></li> </ul> i'm hiding all li-elements (except the first one) with this line: $('#menu ul li.section-title:first-child').parent().children('li').hide(); i wonder if it's possible to query if one of those three links is active and if so nothing should hide! is that even possible? thank

Hyperlinking a cell to another cell in the same worksheet

不羁岁月 提交于 2019-12-25 01:37:24
问题 Hi All, I am reposting the post from today afternoon since no one gave an answer. I'd like to write an Excel VBA code such that if x is clicked under column A, the green rectangle moves to the 1 to the farthest right: Clicking first x at A1 arrives at (1, P3), A2 -> (2, P2), A3 -> (3, P2), A4 -> (4, P3). Below, so far I've written the code with an intention to hyperlink A1, A2, A3, and A4 to corresponding PCell. I am not sure how to fetch the 1's on the farthest right under the P columns. Can

javascript onClick change background picture of div

对着背影说爱祢 提交于 2019-12-25 01:37:20
问题 My ultimate goal is to change the background of a div through clicking on the sampla picture. First I wrote this: <a onclick="document.getElementById('sp').style.background="url('/assets/castle.png')"">...<a> but it didn't work. I noticed that the problem was usage of multiple " and '. So put the function into a script tag: <script type="text/javascript"> var pic=""; function showP(pic) { document.getElementById('sp').style.background='url(pic)';}; </script> <a onclick="showP(/assets/castle

how to assign a link to a branch in the xml so that it opens once i click on it in the output of the html

爷,独闯天下 提交于 2019-12-25 01:34:09
问题 This code converts an xml file to an html expandable tree: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $.ajax({ url: "stations10.xml", success: function(tree) { traverse($('#treeView li'), tree.firstChild) // this – is an — $('#treeView li:has(li)').addClass("Max").click(function(e) { $(this).toggleClass("Max Min"); $(this).children().toggle(); e

Encrypt CSS external link and restrict access to it

本秂侑毒 提交于 2019-12-25 01:28:08
问题 I have a new client who asked me to make 2 websites and no payment so far! I have the ftp accounts, but he can always close my access and leave me without pay. Can I upload the CSS to another server of mine and encrypt the link to CSS file? If yes, can I restrict peoples to see the file if they find the URL to CSS file? Thank you! 回答1: The best way to do this is to create a simple PHP file that allows you to access, edit and delete files on the server. You can also search for a ready made

What is the best JSON schema to use for a collection of HTTP links?

天涯浪子 提交于 2019-12-25 01:12:19
问题 Given an API that returns a set of HTTP links, what JSON format or formats should be used to represent the resource? RFC6690 describes application/link-format for a collection of links. What JSON format or formats are appropriate for representing a collection of links as JSON instead? Obviously we could invent one but it would be better to adopt a standard or de-facto standard. I have come across several competing/overlapping standards including (in order of my perception of their popularity)

asp:Hyperlink in Gridview open PDF in new browser window

纵饮孤独 提交于 2019-12-25 00:12:35
问题 I currently have a gridview that dynamically creates asp:Hyperlinks to PDF files. Right now, the url just downloads the file to the local machine. What's the easiest way to get them to open in a new window so the user has the option to print or download. Chrome automatically downloads it. IE asks to open or save it. I just want it to open in a browser window. <asp:TemplateField HeaderText="Name"> <ItemTemplate> <asp:HyperLink ID="lblProductName" runat="server" Text='<%# Eval("name") %>'