I have created a jQuery jumpmenu (using jQuerey Selectboxes) that opens a new window and it works great . One issue is that it can be blocked by a popup blocker so I would like to open the link with lightbox2 in drupal but still use the jumpmenu.
Here is the jumpmenu in action: link text
And here is the jQuery
// $Id$
// Selectbox Jumpmenu
// needs selectbox Jquery plugin
if (Drupal.jsEnabled) {
$(document).ready(function() {
$(".jumpmenu").change(function() {
var val = $(this).selectedValues();
if (val != '') {
window.open(val);
//window.location.reload(true);
}
});
});
}
Using the Lightbox2 module in Drupal all that is needed to open a link in an iframe is to add rel="lightframe" to the href.
(i.e. <a href="http://www.example.com" rel="lightframe">WWW.EXAMPLE.COM</a>
)
So my issue with the above jQuery is that I would like to trigger the link to open and adding the attribute rel="lightframe" if I add it to the current script it just puts it in the url and ends up with a 404 error.
I am not familiar enough with jQuery to figure this one out.
-Damon