I see what you mean. You could also say 'title' (in <a>) is used for things it is not intended for - i.e. adding HTML to it to for the purpose of creating a rich text tooltip - with JS disabled, it's not pretty.
It can be handled by the server side code checking the request headers, which would be a better option - that depends on the developer actually knowing how to do that (some don't actually write code and depend on GUI development (e.g. Dreamweaver, Visual Studio etc) tools to generate the HTML output - and so easier for them to do a new page than edit the source code). Is there an easy way to add attributes (e.g. ajaxhref) and still have it validate (I know you can create a new DTD, based on the W3C ones, but is there another way)? The W3C say not to use custom DTD's (http:// www.w3.org/Style/customdtd), but only mentions adding elements, not attributes. I looked at Html 5, but that is still a work in progress and does not contain an appropriate atrribute: http://www.whatwg.org/specs/web-apps/current-work/#the-a. Ideally, I want the tabs to show whether or not JavaScript is enabled. I guess that would mean adding the UI CSS classes (ui-tabs-*) to elements - that wouldn't break prevent the plugin from working though would it? -- Sam Klaus Hartl wrote: > Speaking of graceful degradation, the rel attribute has its purposes > and I've never been a proponent of abusing that attribute (it's being > used for these kind of things quite often). > > I think what you want could also be achieved easily by changing the > URLs yourself, for example before tabifying... > > > --Klaus > > > > On Sep 9, 11:25�am, Sam Collett <[EMAIL PROTECTED]> wrote: > > At the moment, the tabs plugin uses ajax on the href attribute and > > loads it's content. To improve graceful degradation, how would you get > > it to use rel instead? For instance: > > > > <li><a href="page1.php" rel="page1_ajax.php"><span>Tab 1</span></a></ > > li> > > > > At the moment, page1.php would be loaded into a tab. page1_ajax.php > > would be the preferred page to load if ajax is used. page1.php > > contains the whole page, including navigation etc, but page1_ajax.php > > only contains the contents. > > > > The only workaround is to check the request headers on the php page > > and send the contents only if it is an AJAX request: > > > > if($_SERVER["X-Requested-With"] == "XMLHttpRequest") > > { > > � � .... send content only} > > > > else > > { > > � � .... send whole page > > > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
