Solved

JQuery Popup on links

Posted on 2011-09-19
2
379 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

Technology Partners: 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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

623 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