0

I have a website intended for desktops/laptops, built with jquery and jquery bbq.

I now want to produce a mobile version of this site and am planning to use jquerymobile. However, I'm a little scared to see href="#" links in some of the documentation, as I'm already manipulating the location hash to provide back/forward/bookmarking with jquery bbq.

Are these technologies compatible or am I heading for a world of trouble?

Thanks for your help!

Bruce
  • 2,406
  • 5
  • 29
  • 35
  • jQuery mobile definitely utilises the `href="#pagename"` to load and transition between pages. Whether one can be overridden/disabled, I am unsure. – Jeemusu Aug 17 '12 at 15:26
  • yep, that's my worry.. I'm wondering if perhaps you can merge your own #parameters in with jquerymobile or something like that. I'll do some more research, but just wondered if anyone had some experience of trying it.. – Bruce Aug 17 '12 at 15:46

2 Answers2

1

Decided not to mix the two, going to keep my mobile application simple.

Bruce
  • 2,406
  • 5
  • 29
  • 35
0

I can't see the trouble. The href="#" is only a way to say that this is a link that doesn't do anything.
It's an old tradition to say href="#" instread of href="".

  • not to mention some versions of IE can have wierd hissy fits and loose cookies if you use null hrefs or img src attributes. Only ever witnessed it twice but that's what it turned out to be. A bit OT but nevertheless... – totallyNotLizards Aug 17 '12 at 14:42
  • Doesn't jquerymobile use href="#" to switch between pages? For example, to link to the page with an id of "two", my link would have a href="#two" – Jeemusu Aug 17 '12 at 15:24