Все вопросы: [anchor]

99 вопросов

похожие теги: anchor-modeling
59
голосов
3ответов
47198 просмотров

How to get "raw" href contents in JavaScript

I am trying to write a GreaseMonkey script in which I want to find all of the links that are relative links. It seemed to me that the way to do that would be to match the contents of href against /^https?:///. But I find that when I access the anchor's href attribute, it's always normalized or ...

0
голосов
1ответов
1075 просмотров

window.open() not playing well with anchors in Firefox 3

The following javascript, intended to open a new window and jump to a specified anchor, works great in IE. Unfortunately, in Firefox, it opens the window, but it doesn't jump to the anchor. I've been struggling with this problem for a couple of days now (searches and modifications) to no avail. ...

1
голосов
3ответов
2204 просмотров

ASP.NET, Trigger codebehind eventhandler with anchor tag

Is it possible to call an eventhandler codebehind, using an anchor tag? I've tried different things, but it doesn't seem to work. I've tried writing my tag like this: <a class="Button" onclick="Button1_Click" runat="server"></a> with no success... Any ideas?

3
голосов
6ответов
1227 просмотров

Page moves on link submit

I was wondering if anyone knew how, when on link submit the page does not move i.e <a href="#"></a> If it was 2 page lengths down it would shoot up to the top.

0
голосов
1ответов
1104 просмотров

IE versus Firefox in displaying anchor color

I just notice a very odd behaviour in Firefox 3.5. I am running Firefox 3.5 under Ubuntu Jaunty Jackalope (9.04) and Windows XP. When I open the following URL : http://www.w3schools.com/css/tryit.asp?filename=trycss_link2 Firefox renders the links in blue. When I open it with IE 6.0 it shows th...

13
голосов
9ответов
11818 просмотров

Anchor tag around table is not clickable in IE 6, 7 & 8

The problem: when surrounding a table with an anchor tag, the table and everything within is not clickable in IE 6, 7 & 8. How do I solve this issue assuming I can't replace the table with divs? Sample code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN "http://www.w3.o...

0
голосов
1ответов
1331 просмотров

Unable to click on image inside anchor tag

I have the following html: <a href="javascript:<%# 'js code' %>" class="MyClass"> <div class="HeaderRow" style="vertical-align:middle;text-align:left;height:35px;width:998px;"> <b style="vertical-align:middle;"><%# ((MyObject)Container.DataItem).Name %></b>: &...

6
голосов
2ответов
16179 просмотров

General offset for all anchors in HTML?

I have some anchor elements, but they are in absolute position div and the content of the div is so large that it scrolls inside (overflow:auto). All entries in the div have an anchor on top, but if I go to this anchor I have the element I wanted to directly on top of the side, but I want it in...

30
голосов
10ответов
40806 просмотров

HTML: Making a link lead to the anchor centered in the middle of the page

I have a link to an anchor on my html page. When the link is clicked it causes the page to scroll to the anchor so that the anchor is at the very top of the visible part of the page. How can I make the page scroll so that the anchor will be in the middle of the page?

3
голосов
1ответов
881 просмотров

how to change a link tag: Submit to Anchor

Question> How can I change <s:submit> to <s:a> in struts tag? I want to send parameters to next page(action) by post (not get) <s:form action="products" method="post" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" method="select...

2
голосов
1ответов
4729 просмотров

Chrome vertical scrollbar not working when URL has # at end

I've had an intermittent problem that I thought was due to un-cleared floats. What happens in Chrome (my main development browser) is the vertical scrollbar will lock in the top position and I cannot scroll down the page. Initially when the page starts to load it will allow you to scroll and then...

2
голосов
1ответов
359 просмотров

Why have #md5=... in the URL anchor?

Some download links contain a md5 value in the URL anchor, for instance: http://pypi.python.org/packages/source/d/distribute/distribute-0.6.1.tar.gz#md5=e6224b1da4636dd8ae53407fc67bb35b What is the intent behind this convention? Are there download tools or HTTP clients that make use of this en...

2
голосов
1ответов
4158 просмотров

using anchor instead of submit (post)

I have a question, but I couldn't find a solution for my problem in Korean web community. <s:form name="form1" method="post" action="products" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" name="method:selectSale" value="goPage"/> </s:fo...

0
голосов
3ответов
1239 просмотров

Why does page-anchor not work in Opera?

I got the following webpage-builtup: <div id="menu"> </div> <div id="content"> <!-- you just need to see the last part of the page? us this link --> <a href="#down">down</a> <!-- A LOT OF CONTENT ... no fun to scroll down --> <!-- EV...

6
голосов
6ответов
4283 просмотров

Activate URL anchor but don't scroll to it?

I have a page with two tabs that I want to be able to switch with Javascript, but also set the anchor (e.g. page.html#tab1) in the URL for bookmarking/linking. By default the tab contents are in two divs, one below the other, and the anchor tag will scroll to the correct one, with JS disabled. ...

1
голосов
2ответов
124 просмотров

How Firefox renders links

I just would like to share some of my observation on how Firefox 3.5 on Ubuntu Jaunty Jackalope renders HTML: I have the following entries in my JSP page: <a title="myLink" href="[some url]">link 1</a> <a title="myLink" href="[some url]">link 2</a> <a title="myLink" h...

19
голосов
7ответов
11417 просмотров

Disable grey border on anchor (<a>) elements on focus</a>

I am trying to make the ugly grey border that appears around anchor tags go away. The CSS property outline:none; works for Firefox, but how can I do it in IE? Preferably using CSS expressions or jQuery. I'm not worried about accessibility BTW. Based on your suggestions I found these to be the ...

0
голосов
3ответов
218 просмотров

Javascript Selected Anchor

I'm not sure if I have seen this right but using the jQuery UI Themeroller the current theme settings seem to be stored in the URL like http://www.site.com/page.html#theme-details... Is there a way to extract the data from this using javascript? So I would return something like theme-details......

14
голосов
6ответов
5334 просмотров

Delphi 7 forms, anchors not working in Vista

The software is built on Delphi 7. On my XP machine, the form resizes as I expect. However, on two Vista machines, I have components with anchors set to [akLeft, akTop, akRight, akBottom], but when I resize the form, the components don't stretch with the form, leaving blank spaces on the right a...

93
голосов
4ответов
265060 просмотров

HTML anchor link - href and onclick both?

I want to author an anchor tag that executes some JavaScript and then proceeds to go wherever the href was taking it. Invoking a function that executes my JavaScript and then sets window.location or top.location to the href location doesn't work for me. So, imagine I have an element with id "Foo...

3
голосов
1ответов
2690 просмотров

request.referer with anchor

is there a way to get the referer with the anchor from the referer page.. the situation is - i have a search page which loads results (users) below the search box using ajax. i am changing the hash/anchor on the fly when the search keyword is typed in. so it becomes http://localhost/users/sear...

3
голосов
4ответов
11169 просмотров

ASP.NET navigate to anchor in code behind

I have a simple Web Form with code like this: //... //tons of text //... &lt;a name="message" /&gt; //... //tons of text //... &lt;asp:Button ID="ButtonSend" runat="server" text="Send" onclick="ButtonSend_Click" /&gt; After POST I want to navig...

6
голосов
5ответов
14642 просмотров

Javascript to redirect from #anchor to a separate page

I have a set of links with #anchors pointing to a single webpage and I would like to smoothly move to a model with a separate webpage for each of those links. I want the old links to keep working using a redirect. Old link style: /all_products#A /all_products#B /all_products#C New link style:...

0
голосов
1ответов
2533 просмотров

Javascript - getElementById fails if anchor also has a name attribute

I'm running into an odd failure. It seems that if I have both an ID and NAME attribute on an anchor element, document.getElementById fails. If I remove the NAME, it works. I'm seeing this in Firefox 3.5(latest) but haven't checked other browsers yet. Is this a bug or intentional?

2
голосов
1ответов
1859 просмотров

Facebook-like anchor scroll

Facebook has a nice scroll effect which I would like to replicate with jQuery. When you load a page it starts at the top then scrolls to the selected anchor. I've tried doing this (page.html#anchor) and using the scrolling plugin for jQuery however it just goes straight to that anchor without us...

40
голосов
9ответов
253747 просмотров

How do I run PHP code when a user clicks on a link?

I want to have a page run some PHP code when a user clicks on a link, without redirecting them. Is this possible with &lt;a href=""&gt;&lt;/a&gt; or with the javascript onclick event?

0
голосов
1ответов
1520 просмотров

Image rotation using jQuery but anchor remains the same

I have set up an image slideshow with captions using jQuery. The entire image and caption div is surrounded by a linked anchor. For some reason even though the slideshow function works fine the anchor remains the same as the last one set. i.e. using the example below, the slideshow content will o...

1
голосов
5ответов
727 просмотров

What is the difference between these two HTML anchors?

I tried to use Link Checker to find any broken links, but the second one is not included, the displayedPage.html shows 404 error, but it will not show in the Link Checker's report. What is the difference between the two &lt;a&gt;&lt;/a&gt;? Why wasn't the second one being checked as a link? &lt;...

1
голосов
3ответов
904 просмотров

Find spaces in anchor links

We've got a large amount of static that HTML has links like e.g. &lt;a href="link.html#glossary"&gt;Link&lt;/a&gt; However some of them contain spaces in the anchor e.g. &lt;a href="link.html#this is the glossary"&gt;Link&lt;/a&gt; Any ideas on what kind of regular expression I'd need to u...

1
голосов
3ответов
3579 просмотров

How to simulate click on anchor with specific text using javascript in GreaseMonkey?

Suppose I load a webpage which contains the following anchor: &lt;a class="someClass" href="#" onClick="gotoPage('http://somepage.org')"&gt;Link&lt;/a&gt; What I want is: as soon as the page is loaded, I want to generate onClick for this anchor which has text as "Link". Note that the anchor d...