Closed gho5twriter closed 12 years ago
The second one should do it.
Maybe your code run before the link (.mylink) is loaded. It should on the ready event:
$(function() { // on document ready
$(".mylink").click(function(event){
$('#featured').jmpress('next');
});
});
Thanks for the quick response, but unfortunately it's still not working,
I am loading my scripts in this order in the header:
my main js is as follows:
$(document).ready(function() {
$(".mylink").click(function(event){
$('#featured').jmpress('next');
});
});
And I load jmpress in the footer
$(function() {
$('#featured').jmpress({
viewPort : {
height : 400,
width : 920,
maxScale: 1
},
fullscreen : false,
hash : {use : false},
});
});
key and mouse navigation works fine also, any ideas?
Thanks for all the help
does the click event fire?
yes i can fire an alert for example but nothing comes through for jmpress. Is there a way I can message you a url if it makes it easier?
that would be nice. you can send me a mail to [removed]
ok thank you very much for all the help!
For anyone reading this the issue was resolved by adding this after the method:
return false;
the problem was due to the link being on the slide.
The resulting code looks like this:
$(document).ready(function() {
$(".mylink").click(function(event){
$('#featured').jmpress('next');
return false;
});
});
Thank you very much for the solution. I had same problem with goTo.
Thanks! I had the same problem too
Thanks for the solution guys! I had the same exact problem! this plugin rocks :-) !
Hi i'm very new to jQuery and hope this is the right place to post my problem. I'm having some trouble making a simple link button to the next slide. I thought it would look like this:
or like this
But neither will select the next slide. Slide IDs are generated dynamically from my CMS so I can't hard code the URLs.
Thanks