anchor

Why do my Borland C++Builder 5 forms with right-anchored controls appear incorrectly on Vista?

Having spent a small age looking for the solution and having now found it, I figured this would be good to document for Stack Overflow. So my answer will follow right after this question. I was using Borland C++ Builder 5. This probably also applies to the equivalent version of Delphi. I had a form with a TButton on a TPanel. The bu...

What two separator characters would work in a URL anchor?

I use anchors in my URLs, allowing people to bookmark 'active pages' in a web application. I used anchors because they fit easily within the GWT history mechanism. My existing implementation encodes navigation and data information into the anchor, separated by the '-' character. I.e. creating anchors like #location-location-key-value-k...

a:visited doesn't work in Mozilla Firefox

I have created a link and when I try to set the style; a:visited { text-decoration: underline; color: #FF0000; } It doesnt seem to work. It works fine in IE. I have also followed the order; link, visited, hover, active. Is this a known issue, or am I making any mistake? ...

Prevent anchors from pushing pages to the bottom (HTML)

I have a div with style="overflow: auto" with some text in it. That text has some anchors, which I have links left of the div (not within the div) and everytime I click to go to an anchor, th page goes to the bottom, like the anchor was in the bottom of the page. Is there any way to prevent this from happening? <a href='#id2'>Link</a> ...

Can you create a link in SMIL to jump inside an embedded Audio file to different times

I am trying to create a SMIL layout that will let me present a slideshow. The issue I am having is to be able to create an anchor that will move the playback head to a different point in time within the currently playing audio file (and NOT to a different chapter). Does anyone know if this is possible? I haven't found documentation that ...

What is the best way to use links and anchors to toggle visibility in ASP.NET?

I have a page which is used to display numerous forms for the user to fill out and get reports generated. Each of these forms is inside it's own ASP:Panel control so that I can toggle the visibility of the form (so that only those with appropriate permissions get access to the reports they are allowed to). The client has now requested a...

Using Div's instead of anchors

On my website, www.funpunks.com, in the top left of the page you'll see the navigation. I made this using fixed-size div's with background images, and using javascript to redirect "window.location = 'http://www.funpunks.com/' " etc. But what about for users who have thier javascript disabled etc? I think I need to use anchor tags. I ne...

Replace http:// in anchor portion of links using Jquery

Hi, on a page there a several links of: <a class="linked" href="http://link1.com&gt;http://link1.com&lt;/a&gt; <a class="linked" href="http://link2.com&gt;http://link2.com&lt;/a&gt; How would one remove the second http:// in each link so it can't be seen on the screen. I've tried this to no avail: $(document).ready(function() { $(...

Mixing JQuery's toggle() with #anchors

Hey there, I have the following dilemma: I have a set of DIVs with child DIVS within them that are hidden by default. Initially, I was using javascript and onclick with anchors to achieve both a toggling and 'move-to-anchor' effect. Now that I have moved to the JQuery alternative, I am having problems reproducing the same 'move-to-anchor...

Flex Deep Linking, and Named Anchor Links

OK deep-linking in flex uses the anchor(#) text in the URL. So a link to a named anchor on the same page would override the anchor text used by Flex and reset the application. Does anyone know of a way they can coincide? Thanks. ...

How get the :hover css style of an anchor with jQuery?

How can i get the :hover in css stylesheet on the fly with jquery? stupid example: a.foo { color: red; font-size: 11px; } a.foo:hover { color: blue; font-size: 12px; } how to retrieve that color and font-size before that mouse will go over the anchor? ...

WinForms (.NET) Button Anchoring when Maximized

Ok, I have googled, but maybe I put my search in weirdly. :/ I have a VB.NET WinForms application. I have the anchor properties set for all the controls so that it will resize all the controls to look decent when the form is maximized. (Haven't gotten around to manual resizing yet however). Anyway, the problem: I go to set the same pr...

Javascript to handle manipulating url anchor for bookmarking

Hello, I'd like to use the anchor part of the url (after the #) so that my page can have ajax/dhtml but still be able to have bookmarks work properly. I'm wondering is someone can help me get started on writing some javascript code for this. I'm using jQuery, but if the solution's a generic one, that's fine too. For my page, I could hav...

How to create an anchor and redirect to this specific anchor in Ruby on Rails

I'm trying to create unique anchors for every comment on my blog so a person can take the url of an anchor and paste it in their browser, which will automatically load the page and scroll down to the point in the page where their comment starts. Perhaps I'm going about this the wrong way but I've tried this which was to no avail. Comm...

Retrieving Anchor Link In URL for ASP.Net

I have an url like so: http://localhost/place/663828/bangkok-paradise-restaurant-toronto#r306040 I am trying to see if theres the existence of the anchor tag along with getting it's value to do some code logic in the code behind. I have been trying to use the Page.Request, but none of the properties show the anchor link portion of the...

After visiting links, Firefox selectively skips state change or a:visited styling

After clicking a link with a common href (local page or web-site) and the href is successfully loaded, both FF2 and IE7 will display the link with a:visited styling. For links with href="javascript:anyfunc()", IE7 works as above while FF2 does not display a:visited styling. No change with any DOCTYPE. Q: Is either behaviour with JS li...

How do I prevent Php's DOMDocument from encoding html entities?

I have a function that replaces anchors' href attribute in a string using Php's DOMDocument. Here's a snippet: $doc = new DOMDocument('1.0', 'UTF-8'); $doc->loadHTML($text); $anchors = $doc->getElementsByTagName('a'); foreach($anchors as $a) { $a->setAttribute('href', 'http://google.com'); } return $doc->saveHTML(); The ...

Adding an anchor to generated URLs

Hi I have tried finding a simialr example and using that to answer my problem, but I can't seem to get it to work, so apologies if this sounds similar to other problems. Basically, I am using Terminal Four's Site Manager CMS system to build my websites. This tool allows you to generate navigation elements to use through out your site. ...

Anchor not working in asp.net

Hey everyone, As the title suggests i've run into a problem with anchors ASP.NET. I've set them up the same way as you would in standard html ex: <a href="#Intro">Introduction</a> and then further down the page, <a name="Intro" ... for some reason when i click the link, the #Intro isnt appended to the url, and i'm not taking to t...

How to create W3C- or Gmail-esque #anchor "links"?

If you use Gmail, you'll see URLs in the address bar like: https://mail.google.com/mail/#inbox https://mail.google.com/mail/#starred If you go to one of these URLs, it will jump straight to the corresponding view. A similar example is on http://validator.w3.org where the anchors #validate_by_uri, #validate_by_upload and #validate_by_inp...