hyperlink

How to send a link to an application, like Spotify does.

Hi, When we save a level in our editor, we create a log file of any errors it contains. These consist basically of an error message and a path that allows the user to find the erronous item in a tree view. What I want is to make that path a link, something like < a href="editor://path/to/gameobject" > Click to see object in editor< /a ...

PHP How do I retain all GET vars in links?

I have some PHP code that generates dynamic tables of data on the fly. By clicking various links you "refine" the tables of data. What I'd like is each of these links to retain the current GET information and add to it. IE: $allPreviousVars = ???; // Could be 20+ vars echo "<a href='".$allPreviousVars."&newVar=2'>Link</a>"; I can thin...

How to write a link to a public file

In my Rails app, I have some files in the /public directory which I want to write hyperlinks to in the views. How do I do this other than writing old HTML like <a href... Is there a neat link_to way? ...

using javascript to mark a link as visited

FF2 (at least) doesn't mark as link as :visited if it triggers the onclick handler without following the href. I'm using onclick to fetch data from a server and modify the page and the link styling seems appropriate here. But the link is not marked as visited. Is there a cross-browser way to mark the link as visited? Failing that, is...

how to use javascript to get visited link css styles

I would like to use javascript to style an element to look like a :visited link, without defining my own styles for visited links. How can I access the browser's default style for visited links, so that I can define a matching style that I can apply to an element (e.g. by applying a class name)? ...

Can I change the column that links to the item with edit menu in a sharepoint list?

There was a similar question asked but it wasn't exactly what I am trying to do. Here is a link to the question: http://stackoverflow.com/questions/607291/auto-number-column-in-sharepoint-list-with-link-to-item/799866#799866 Two solutons were offered to that question. Could either of these solutions work for an imported list I have wh...

Making sure http appears in a web address

I have people posting their website address but variations are posted such as: theirsite.com www.theirsite.com http://theirsite.com http://www.theirsite.com When I link to an address without http:// it takes the link as internal <a href="theirsite.com">their site</a> sending people to something like: http://mysite.com/thiersite.co...

How do I add target="_blank" to a link within a specified div?

so lets say i got these following codes <div id="link_other"> <ul> <li><a href="http://www.google.com/"&gt;google&lt;/a&gt;&lt;/li&gt; <li><div class="some_class">dsalkfnm sladkfm <a href="http://www.yahoo.com/"&gt;yahoo&lt;/a&gt;&lt;/div&gt; </li> </ul> </div> so in this case script will add target="_blank" to all links within "link_...

Problem with links from HTTP to HTTPS in Firefox

I've found a problem with Firefox where links from HTTP to HTTPS don't work in a specific case. It has to be your very first visit on a site, you can't have any visits to this site in your history. What happens is that links to HTTPS just don't work initially, you have to click the same link 3 or 4 times and it will work. To reproduce t...

How do I make a file:// hyperlink that works in both IE and Firefox?

In my documentation web pages, I often need to provide links to locations, files and applications (.xbap) stored on the intranet. In IE, this works fine with URLs formatted like this: <a href="file://///company.org/ProjectA/StatsReport">Go to folder</a> <a href="file://///company.org/ProjectA/Readme.txt">Download file</a> <a href="fil...

WPF - DataTemplate/Value Converter for hyperlink in TextBlock

I have a ListBox showing a list of people's names, emails, departments, etc. There is a DataTemplate that has a few TextBlocks to display each property. One of these TextBlocks is wrapping a Hyperlink to show email addresses like so: <TextBlock> <Hyperlink NavigateUri="{Binding Email}"> <TextBlock Text="{Binding Email}" /> <...

GWT: How to suppress hyperlink so that it doesn't change my history token

Hi, I want to make my hyperlinks act like buttons (only respond to Click event) however, they change the history token automatically when you click on them, which messes up my history mechanism in my application. Is there a way to suppress the default behaviour of the hyperlink so it doesn't change the history token? I tried setting tar...

How do I form complete URLs from incomplete URLs found in a web page?

I can retrieve the text of a web page, let's say http://stackoverflow.com/questions with some real and made up links: /questions /tags /questions?sort=votes /questions?sort=active randompage.aspx ../coolhomepage.aspx Knowing my originating page was http://stackoverflow.com/questions is there a way in .Net to ...

Finding a Control in a page from a page base class

Hi Everyone. Hope you're having a good Friday and stuff... okay, so here's my question: All my ASPX pages inherit from a base class called BasePage. BasePage inherits from: System.Web.UI.Page Now, how do I access/set a control in my aspx page from my page base? I've tried this: HyperLink hypMainMenu = (HyperLink)Page.FindControl("...

Manipulating the Text selection in Powerpoint

Hi, I was just trying to do some coding on highlighting a portion of text in PowerPoint so that I could insert a hyperlink to it. I could achieve it without any difficulty in Powerpoint 2003 and to my surprise, it did not work in PowerPoint 2007... The code that I used is as follows : ((PowerPoint.Application)applicationObject).ActiveWi...

What are the ways to make an html link open a folder

I need to let users of an application open a folder by clicking a link inside a web page. The path of the folder is on the network and can be accessed from everywhere. I'm probably sure there is no easy way to do this, but maybe I'm mistaken? ...

WPF - Making hyperlinks clickable

I've got a bit of text that I'm trying to display in a list. Some of those pieces of a text contain a hyperlink. I'd like to make the links clickable within the text. I can imagine solutions to this problem, but they sure don't seem pretty. For instance, I could tear apart the string, splitting it into hyperlinks and non-hyperlinks. ...

how to resolve VERY LARGE URL problem for hyperlink...with jQuery or Javascript calling any perl,php etc. script on back

Hi there, I have built UI, its like a search engine for BioProcess/Disease--> Genes. e.g., User can query: "Stem Cells" or "brain tumor"and in result it will give 50 to 5000 GeneIDs (essentially those are Numbers representing a uniqe Gene at NCBI database) . Its free, you can try at : http://proteogenomics.musc.edu/genemesh/ Now, the ...

Need a postback handle from a clicked dynamic hyperlink control in ajax.

The scenario...I have a list of dynamic hyperlink controls on an ajax panel that link directly to a WORD doc located on a share. Clicking any link opens WORD client side (I set the file association to do that so the IE browser doesn't try to open it instead). LinkButtons won't work because it doesn't do a direct link to the doc from th...

Javascript firefox extension to get the text around the link

Hi, Is it possible for me waiting for a user to click a link, and upon clicking the link the link's text would be obtained? Maybe by using onClick? ...