Solved

JQuery Popup on links

Posted on 2011-09-19
2
377 Views
Last Modified: 2012-05-12
Hello Experts,

I am having a hard time with image popups over-lays on my site.

I am using this JQuery-based framework http://easyframework.com/
Around other features, if I assign a class of POPUP to a link that points to an image, that image is displayed in an overlay window.

Problem is that after upgrading to JQuery 1.6.1 the popups are not working anymore.

The error I am getting from FireBug is: $(this).attr("href") is undefined

Problem is that on my site there are a lot of links with a class of "popup" and it would take a lot of time to modify them all.
What I need is maybe a JQuery script that will work the same way: scan the page for links with a class of POPUP and make them open the content (image) in a popup.

Thanks so much!
0
Comment
Question by:daniel_spiri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36559843
$(".popup").each(function(){
  window.open($(this).attr("href"));
});

does this not work?
0
 

Author Closing Comment

by:daniel_spiri
ID: 36566408
Simple and working, great! thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question