anchor

Background images in <a> tag inside <li> tag not dissapears in IE6 and IE7

Hi Guys, In IE7 and in IE6, I have an anchor inside of an li which has a background image in it. When you mouse over these links, the backagound images go missing in these browsers. Any ideas as to why this would happen? Here's an example (IE7 and IE6): http://bit.ly/dekwva Many thanks, James ...

HTML Option Tag with Value set as an Anchor

Hello, I am updating some super legacy code and I am unsure how to make this HTML5 compatible. <option value='<a href='http://localhost:8080/dm?id=&amp;#037;&amp;#037;SUBSCRIBER_ID_TAG&amp;#037;&amp;#037;'&gt;View in a browser window</a>'>Display Message(HTML Version)</option> I personally have never run across something like that so...

Div overflow, ASP.NET GridView, JQuery and anchor

Hi ! I'm not a pro in web UI, so I will try to explain myself clearly. I have a tag with overflow: auto;. Inside that div, I have a GridView. There's a JQuery function that select the line clicked in the grid, only by changing the CSS class (to change the backgroud_color). I would like to know if I can put a kind of anchor so that the ...

How do I make the whole area of a list item in my navigation bar, clickable as a link?

I've got a horizontal navigation bar made from an unordered list, and each list item has a lot of padding to make it look nice, but the only area that works as a link is the text itself. How can I enable the user to click anywhere in the list item to active the link? html: <html> <head> <link type="text/css" rel="stylesheet" hre...

Routing to an anchor on another page

I am using Web Forms Routing in ASP.NET 4 and I am trying to route to a specific location on a page. On that page I have an element like <div id="3"> and I'd like to jump to this anchor from another page. For this purpose I have defined a Route in global.asax: RouteTable.Routes.MapPageRoute("MyRoute", "Path/SubPath/{PageAnchor}", "~...

Unexpected scrolling when typing in a textbox after anchor top (Android-friendly mobile webpage development)

[Note that I can only reproduce the issue on the Android mobile web browser (used via emulator).] Summary After clicking an anchor to go to the bottom of the page, and another anchor to get to the top of the page - and typing within a textbox at the top, you will be scrolled back down to the anchor at the bottom of the page. Initial I...

How to go to next page anchor with HTML and/or JS?

Is it possible to use HTML and/or Javascript to automatically work out what the next page anchor is and go to it? Thanks ...

javascript:; vs javascript:void(0);

Hello, I would like to know what is the difference between javascript:; and javascript:void(0); if I use them in href attribure for a anchor (link) <a href="javascript:;" onclick="DoSomething();">Link</a> <a href="javascript:void(0);" onclick="DoSomething();">Link</a> I see them acting the same on all browsers but what is the technic...

Help with PHP preg_replace() REGEX for MP3 URLs

Ive looked around quite a bit for a regex to help me find a anchor tag with an mp3 as the href. I would like first to get a regex which will locate this pattern so i can replace those links with a player and next i need to extract the link out of the href. I hardly understand how to create or use a regex so any help to accomplish this w...

How to scroll HTML page to given anchor using jQuery or Javascript?

Id like to make browser to scroll page to given anchor, just by using javascript. I have specified name or id attribute in my html code: <a name="anchorName">..</a> or <h1 id="anchorName2">..</h1> I'd like get same effect as you get by navigating to http://server.com/path#anchorName. The page should be scrolled so that the ancho...

How can I change the preferred language when clicking in an anchor link (Kohana's i18n)?

I have a es.php and a tl.php in the i18n folder: es.php: <?php defined('SYSPATH') or die('No direct script access.'); return array( 'Good Morning' => 'Buenos Dias', ); tl.php (is the abbreviation of a human language. No idea which one): <?php defined('SYSPATH') or die('No direct script access.'); return array( 'Good M...

problem with click event?

In this code have button and anchor with click event. alert(document.getElementById("btn").click); //not working in safari alert(document.getElementById("btn1").click); // is working in safari I want to execute anchor's click event What I do? -----------------------Code----------------------------- < script type="text/javascript"> func...

Using anchor without href just to get that :hover effect?

If you look here and hover over "PONUDA", you will get that nice hover effect. The thing is that all li's have anchor in it that do have href value, so when you click on them some page will be opened. But because i have some sub menu shown when you hover over "PONUDA", i dont want it to be linked but i still want to have that hover effec...

Hyperlink in Andorid

Hello... I have a question: How can I place a hyperlink WITHIN a text-block of normal text? I have some text and in the text I mention a URL and I want this URL to be in a different color, underlined and click-able. I know hyperlinks in android can be placed with "Linkify".. and i have referred android docs page Consider the same ab...

How can I force a Save-As dialog box without leaving the page in php?

I have an anchor tag: <a href="file.pdf">Download Me</a> I would like for the user to click on it and then have a Save-As dialog box appear with a new filename I determine. I found this(http://www.w3schools.com/php/func_http_header.asp): header("Content-type:application/pdf"); // It will be called downloaded.pdf header("Content-Dis...

Using hyphen in link_to property?

In my Rails app, I need to set a value for a custom data-* attribute on an anchor tag. However, hashes can't have hyphens if I'm not mistaken. I essentially want to do this: <%= link_to 'Example', example_path, :class => 'something', :data-id => '15' %> :data-id is not valid, however. What can I do to work around this? ...

Setting anchor stops resizing of Windows Form

I have a form with several controls. As soon as I add a "Bottom" anchor to a button on my form, I am no longer able to resize the form to be smaller on the vertical axis. I can still resize it to be bigger. The same thing happens in the horizontal direction once I add a "Right" anchor to any of my visible controls. Any ideas as to why th...

Problems using webbrowser control with ie7 and anchors

I'm seeing some very strange behavior when using a c# webbrowser control and a link with anchors in it. Oh and this behavior only seems to occur in ie7 in ie8 it's fine! I've created a simple form with a webbrowser control. I've added a new WebBrowserNavigatedEventHandler to load in some html after the browser has loaded the first pag...

jQuery: Apply class to all 'anchor' tags of a scpecific div

I have this script: <script type="text/javascript"> $(function() { $("a", "top_menu").addClass("ui-widget ui-state-default"); }); </script> What I want to do, is apply those classes to all anchor tags of the next div: <!-- Top menu --> <div class="top_menu"> <a href="test">An anchor</a> <a href="test1">Second Anchor</a>...

iPhone Safari vs. Iframe using Anchors

Hey hey, I have a mobile page that isn't working in Safari - it works perfect in desktop browsers, and on Android and BlackBerry. I have a features area on the page. I want to avoid using JS (as some mobile browsers come with it disabled). If possible I want to use just HTML and CSS. I don't want the page to scroll for ages, so I use a...