-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind unique links or something? #35
Comments
Well, I've figure sth out that should works: I added this: if (!$(element).attr("data-djax")) { } In the Not sure if that's the best? |
@DaPo it's a good feature request, should be supported by an option you can configure without having to modify code. I'll try to look into this soon. |
@beezee yep, why not have the possibility to exclude .indexOf links AND DOM elements ? Or, on the last parameters, if there is, ONLY include DOM elements. Should be great. |
hi i found a solution for this prob but it's not a real solition :) u can reload the page, just for index or inline "a" code where u use "rel=reloadpageopen" like a class and u sould add this code at the first $('body').on('click', 'a[rel^=reloadpageopen], area[rel^=reloadpageopen]', function(e) { |
@epfarki sounds legit too, but I'm waiting for something more natural from @beezee :) Thank you anyway! |
Hello Beezee,
First of all, thank you a lot for this lil' plugin.
Secondly, I have an issue with it.
Indeed, I'd like to say to djax to only bind (then change via ajax method) only links on a DOM elements.
Let me clear this out if that's not (French guy, poor english here) :
I have:
How can I say to djax to only bind the links from ul.menu__item but NOT a.menu--homepage ? Because I have an other template for my homepage and I don't want it to be loaded via djax.
Oh and I'm working with WordPress here.
Thank you for your concern.
The text was updated successfully, but these errors were encountered: