Skip to content

Make it easy to override the way we get the href #245

@webmat

Description

@webmat

First of all, thanks for providing us with jquery_ujs!

I'd like it if jq_ujs provided an easy way to override how it gets the href from an element. Just like we can override the ajax call. I've seen issue #4, but my suggestion is coming from a different place.

10s background: I'm currently working with jQuery Mobile and jquery_ujs. They recently started messing around with the href on touch devices, in order to keep iOS from displaying the address bar. They tuck it away in a data-href attribute.

So if jq_ujs could let me override the way it gets an element's href, I could deal with this situation gracefully. I'm sure other frameworks do (or will) use the same kind of trick to keep the address bar from appearing. So I think it makes sense to include this feature in jquery_ujs. What do you think?

Let me send you a pull request, for my implementation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions