anchor

IE6 anchor wordwrapping (display:block, width:0)

Hello, Unfortunaly this site we're developing has to be IE6 compatible. It contains a horizontal block style menu, but there's still one more problem with IE6. I have the following code: <html> <head> <style type="text/css"> a { display: block; width: 0px; background-color: red; } </style> </head> <body> <a href="#">This is a anchor t...

using href links inside <option> tag

I have the following html code: <select name="forma"> <option value="Home">Home</option> <option value="Contact">Contact</option> <option value="Sitemap">Sitemap</option> </select> how can i make Home, Contact and Sitemap values as links? i used the following code an as i expected it didnt work, <select name="forma"> <option value="H...

a element in nested divs, jquery events not working.

i want to use an event of an anchor element in some nested div's but something is not working in my code. i tried hundreds of variations on that selector but it still does not work. html code: <div class="tabContents"> <div class="thumbArea"> <a href="#"> <img src="foo" alt="baba"/> </a> </div> <div class="imageArea"> ...

jQuery addClass to a tag problem

I have this in my html code: <ul id="navlist" <li id="tabItem1"><a href="#">Item one</a></li> <li id="tabItem2"><a href="#">Item two</a></li> <li id="tabItem3"><a href="#">Item three</a></li> <li id="tabItem4"><a href="#">Item four</a></li> </ul> I want to add a class to the a element with jquery like this: (its not working) var curr...

please tell me where is problem in code to navigation using Anchor Tag with encoded URL

Problem is Url is getting encodede but "&" is not encoded i want to open a page as a popup page using javascript in Anchor tag (.net 2.0) in below code "hotelname" is public variable on server side. when i use same code with button its working fine it encode complete value of "HotelName" variable but when i use same code with Anchor it ...

What's the right way to define an anchor tag in rails?

It's obvious from the documentation (and google) how to generate a link with a segment e.g. podcast/5#comments. You just pass a value for :anchor to link_to. My concern is about the much simpler task of generating the <a name="comments">Comments</a> tag i.e. the destination of the first link. I've tried the following, and although the...

How can I replace text that is not part of an anchor tag in Perl?

What is a Perl regex that can replace select text that is not part of an anchor tag? For example I would like to replace only the last "text" in the following code. blah <a href="http://www.text.com"&gt; blah text blah </a> blah text blah. Thanks. ...

ajax get anchor tag name

i have a href like this: <a href="images/prevFeb-1.jpg" name="day-1" onclick="swap(this); return false;"> <img src="images/thumbFeb-1.jpg" width="50" height="50" alt="" title="thumbFeb-1.jpg" /> </a> when the user clicks on a thumbnail, the images get swap. i will like to get the href name upon on click. and i will explode("-",$href...

ajax get hrf anchor tag jquery

here is my code below. i have a lists of thumbnail images. when the user click a small thumbnail image, it swaps it to show the full image. i have been trying to get the anchor tag name so that, i can explode the value "i". but i get no luck, any ideas? many thanks! my javascript function swap(image) { document.getElemen...

Can a single script be used for two or more Anchor button clicks?

In my page there are two 'Conatct Selected' anchor button, one at the top having id as "selectAllLink" and other at the bottom having id as "selectAllLinkB" of the page. The top one working perfectly using the following script: <script type="text/javascript"> $(function() { $('#selectAllLink').each(function() { var a = []; ...

anchor inside ajax tabs with jquery

hi, i'm building a faq page and i want to load the content inside a page page via ajax with jqyery tabs. i want to avoid to have different pages for every faq so i want to load the content with and anchor. how can i do? this doesn't work: Accedo alle offerte online ...

jQuery: how to include attributes on click during .ready() ?

I'm trying to convert all my old javascripts to jquery but I'm a bit confused how can I convert my click event with attr. The old javascript looks something like: function MyFunction(string1, string2){ doSomething(string1); doSomethingElse(string2); } And then I call it with <a href="javascript:MyFunction('string 1','string 2...

Is it possible to fire an onclick event in an url or query string?

I have a web page with a off-site links whose onclick events are handled by jQuery. The jQuery fetches the content of the page the link points to and inserts it into a div. What I would like to do is be able to give somebody an url for this page that would cause the onclick event for one of the links to fire, thus loading the div with t...

Go to #div box JavaScript

Maybe jQuery, maybe not, but how do i do so like when you click on a link eg. FAQ it goes to the FAQ div box? I mean if its on the bottom then you just click on that link and then it goes to it.. Wikipedia have it.. http://en.wikipedia.org/wiki/USA The links in the "Contents".. when you click you get to it.. ...

PHP - get value from URL after # sign

http://domain.com/site/gallery/1#photo45 How to read value after the # sign (photo45)? PS: What is the English word for the # sign? ...

Javascript: How to truly reload a site with an anchor tag?

Take this code snippet for example: window.location.href = 'mysite.htm#images'; Already being on the site mysite.htm and triggering the reload thru location.href won't reload the page but jump to the anchor named within the URL. I need a mechanism to truly reload the page. Any ideas? PS: I tried location's other methods but none of ...

how internal anchors in XSL work?

i've 2 frames which both render different html pages using XSLT. Means, the container html file has 2 frames whose source are 2 different XML files. Left frame displays menus and right frame displays content. content on right frame has different sections. i want to achieve the following: if i click on a hyperlink on left frame, it sho...

how anchors work in xsl ?

my menu links are coming from an xml which will be static. but my xml on right side will change every time depending on the link that was clicked on last page. let me explain: i've a page where on right frame, i've few links, say a, b ,c ,d. When i click on a, it will take me to next page (which is also divided into 2 frames : content f...

Wysiwyg Tiny MCE, problem adding custom links

I am trying to see witch one i like best, Tiny MCE or CKEditor. The problem that i am getting is that i need to add a custom toolbar button (or extend the anchor button). Trying now to modify the advlink plugin to insert internal links from the CMS. So i modified the page link.htm and added one button next to the href field. This button ...

JQUERY, Anchor, ScrollTo, highlight

I have a large threaded comment list. When a person replies the author gets an email notification. I'd like the email to have a link to the reply something like: http://site.com/feedback/#reply-22 the page would have something like wow nice comment With JQUERY how can I detec the anchor, slowly scroll to the location on page load, and...