Solved

JQuery Popup on links

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now