hyperlink

How to incorporate a g:link into an ordinary button?

↘锁芯ラ 提交于 2020-01-03 18:42:42
问题 In my grails application there is a view with a a g:link tag - it works fine, but the visuals are kind of awkward. Therefore, I want to disguise that g:link with an ordinary button. I've tried a span class and input type="button" but this did not do the trick. Side note : I don't want a g:form with an submit action. Any help is really appreciated! 回答1: Amit Jain's answer worked but had some problems in ie 8 & 7 (looked like some kind of style overlapping error). This solution worked in all

Is there a way to assign an external URL to a HyperLink without appending http:// or https:// (ie, the protocol)?

跟風遠走 提交于 2020-01-03 17:28:28
问题 I have a HyperLink defined like so: <asp:HyperLink ID="hltest" runat="server"></asp:HyperLink> In my code, I do this: hltest.NavigateUrl = "www.google.com" However, the actual link looks like this: http://localhost:53305/www.google.com I can append http:// to the URL, but this not the preferred method because this URL is maintainable by the user. If the user saves the URL as http://www.google.com then the URL will end up looking like http://http://www.google.com . I know that I can strip http

why we use double slash instead http

浪尽此生 提交于 2020-01-03 16:52:15
问题 I see some web pages that link javascript file to page like this : <script async="" src="//www.googletagmanager.com/gtm.js"></script> Why we use double slash ( // ) instead http:// or https:// from beginig absolute url ? what's different ? 回答1: the protocol will be inherited from whichever page you're on. If your site can be on different protocols - http on the homepage, https on account pages, for example - then you won't have to worry about potentially loading "insecure content." 回答2: The

Android - Hyperlink is not clickable

孤街醉人 提交于 2020-01-03 16:35:34
问题 I have a few links in my application. One for a website, one for a phone number, and one for an email. The email and phone links are both working and clickable, however the website hyperlink is still not clickable for some reason. Any thoughts? Code below. <string name="website" ><a href="http://www.XXXXXX.com">XXXXXX Website</a></string> <string name="email" >sales@XXXXXXX.com</string> <string name="phone" >P: XXX.XXX.XXXX</string> <string name="fax" >F: XXX.XXX.XXXX</string> Above are my

How to create a link to contact specific phone number via Telegram?

邮差的信 提交于 2020-01-03 15:34:25
问题 So I found out I could use a link like this in HTML: <a href="https://api.whatsapp.com/send?phone={{phone_number}}" target="_blank">WhatsApp</a> in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web). My question is: how to do the same but instead of WhatsApp, via Telegram? Thank you in advance 回答1: It's NOT possible to link to Telegram like this for a phone numbers so far, because every user MUST add the phone number to their contact list before they can

Facebook .aspx links fail to load

孤街醉人 提交于 2020-01-03 06:45:14
问题 I'm having problems sharing links of my website on Facebook. The link I paste on Facebook comments is something like: http://www.mywebsite.eu/category-1234/product-name.aspx After posting the message with the link I can see, hovering on the link, that the real path is: https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.mywebsite.eu%2Fcategory-1234%2Fproduct-name.aspx%3Ffbclid%3DIwAR2gqnQHhUrSjgK5IsNttCBo2h3FL_K7ShnuWxpdXQZPzSoSE-pJ2qqsBOg&h

Use python to crawl a website

痞子三分冷 提交于 2020-01-03 04:45:49
问题 So I am looking for a dynamic way to crawl a website and grab links from each page. I decided to experiment with Beauitfulsoup. Two questions: How do I do this more dynamically then using nested while statements searching for links. I want to get all the links from this site. But I don't want to continue to put nested while loops. topLevelLinks = self.getAllUniqueLinks(baseUrl) listOfLinks = list(topLevelLinks) length = len(listOfLinks) count = 0 while(count < length): twoLevelLinks = self

How to track internal redirect links as well on Google Analytics User Explorer?

笑着哭i 提交于 2020-01-03 04:27:06
问题 I'm trying to see the internal links that our wordpress users clicked on G analytics user explorer section's each user report. The report only shows the wordpress posts they surf but not the internal redirect urls (which are attached to images). The internal redirect urls are like : www.example.com/download/234234jjk/file.html on download images. I've used below php and javascript to track clicks: <?php if (is_user_logged_in()) { $user = wp_get_current_user(); $userName = $user->user_login; }

How to read content of a Telegram channel posts by post link?

眉间皱痕 提交于 2020-01-03 04:23:05
问题 Telegram channels posts have the post link when it is right clicked on it and in this form: https://telegram.me/channel_name/post_ID The question is how we can read the content of that posts (text, image, video, audio) using a bot on the server? 回答1: There is no way to do this at the moment. You can try using the telegram-cli ( test branch supports channels), but it cannot find the post by its POST_ID — only by the full message id. 来源: https://stackoverflow.com/questions/37888354/how-to-read

Change Meteor email validation link and route

跟風遠走 提交于 2020-01-03 03:04:25
问题 When Meteor sends the email with the link to validate the account, the link looks like this: "//localhost:3000/#/verify-email/jOCevGxWbWQfcGL7KAtQ" If you click on the link it validates the account as a charm, but it sends the user to the 'ROOT' template. I want to change this route. Clicking on the validation link have to route the user to another page, another then root route ('/'). I have tryied changing the link adding a new template: "//localhost:3000/template/#/verify-email