Hi Mark,
I imagine you'd have to look at the user agent request header to determine if
the request is coming from a search bot. If you believe the request is coming
from a bot you could then put the normal hyperlink.
i.e.
<wo:if condition = "$isBot">
<wo:hyperlink />
</wo:if>
<wo:else>
<wo:AjaxUpdateLink />
</wo:else>
best,
Johnny
On Feb 23, 2012, at 5:19 AM, Mark Gowdy wrote:
> Hi,
>
> I am curious to know if there is a common and simple approach to serving both
> Ajax and non-Ajax (full page refresh) links together (preferably using
> Wonder's Ajax framework). Where the browser (or spider) uses the appropriate
> thing depending on Java-script availability. One of the main goals is to
> have a good user experience, while making it crawler friendly.
>
> E.g.
> We have a 'PreviewImage' page that has 'forward' + 'back' buttons to move
> through the images in an array.
> 1) The traditional approach is to have links (directActions - canonical + SEO
> friendly) that refresh the whole page.
> 2) The Ajax way is to only update the image container within the page.
>
> e.g. something not entirely unlike this, but where the AJAX link would not
> appear in a non-js enabled browser.
> <!-- AJAX -->
> <a href="javascript:void(0);" onclick="AUL.update('MainContentContainer',
> {}, '18.0.1.5.1.13.1');" class="button">Previous</a>
>
> <!-- NON-AJAX -->
> <noscript><a class="button" title="Previous"
> href="http://local.dev.com/media/_OtCPoAsawcyK3lYd9HFjQ..a?ts=lsHSk5hvnz6rAJcZqdBOIQ..a">Previous</a></noscript>
>
>
> Btw: the 'http://local.dev.com/media/...' thing uses an apache URL rewrite to
> get it back into a normal WebObjects URLs.
>
> Regards,
>
> Mark
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]