UPDATES VIA   RSS  |  Email Get updates via feedburner Get updates via twitter
Home

Posts tagged with JQuery

JavaScript: How to get the index (position within a group) of an object with jQuery?

Posted on 20. Jun, 2009 by .

1

I’ve spent some time today figuring out how to obtain that index and finally I’ve just puzzled it out. Let’s say we have a group of objects all containing the class=”house”. Now if we are referencing to the first element within the group and we’d like to find out it’s index (well it’s obvious in [...]

Continue Reading

JavaScript: What if jQuery animation doesn’t fire/start?

Posted on 19. Jun, 2009 by .

1

I’ve been working on an image gallery (that I will publish here for all to see and use) and I ran into an issue that I’ve never experienced before: jQuery stopped firing the animation of an object. I looked at the expression, everything was fine. However not the expression was the problem, but the variables [...]

Continue Reading

JavaScript: Get anchor from URL

Posted on 10. Jun, 2009 by .

2

To get the anchor from an URL (this is the text after the # character) in JavaScript you can use the following code: var url=’http://iwebdevel.com/some-post#comment-1′; //if you need to take the current url of the window use: var url=window.location; var anchor=url.hash; //anchor with the # character var anchor2=url.hash.substring(1); //anchor without the # character If you’re [...]

Continue Reading