[BNM] Just on the off chance...

Jay Caines-Gooby jay at gooby.org
Mon Jun 1 09:32:28 BST 2009


2009/5/29 paul perrin <paul at idltd.com>:
> I have a site that with client side tab based paging - to degrade
> gracefully (and enable book marking etc) the tabs/navigation uses
> named anchors - jquery when/if loaded hides unselected divs and ads
> some clicky action to the navigation tabs (highlight newly selected
> tab, hide old page/div, show new one etc...) This all works really
> nicely...
>
> Now the problem is... when the pages are indexed (by google or local
> search), the basic URL will not know which subpage the matched-text
> exists on (the search would have to look back at the nearest previous
> named anchor and include that in the URL link...).
>
> Do I need to roll my own solution? or does some one have a link to
> just the thing that I can poach?

Make the tabs as separate pages, with the body content as
partials/includes and then ajax load the relevant partial/include
content using jquery. Non javascript browsers and search engines get
the regular page-based content when tabs are clicked.


-- 
Jay Caines-Gooby
jay at gooby.org
+44 (0)7956 182625
twitter, skype & aim: jaygooby
gtalk: jaygooby at gmail.com


More information about the BNMlist mailing list. Powered by Wessex Networks