Does that mean that there is already a JQuery Mobile support for Seaside?<div><br></div><div>Gerhard<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 12:06 AM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">No, there is no need to patch anything, you just configure how jQuery<br>
should do its requests. For example in my jQuery Mobile support code I<br>
have the following snippet:<br>
<br>
$(function () {<br>
$("html").ajaxSend(function(event, xhr) {<br>
xhr.setRequestHeader("X-Requested-With", "jQueryMobile");<br>
});<br>
});<br>
<br>
Something like that is necessary for both the Ajaxifier and the jQuery<br>
Mobile library, because (most of the time) they do full requests<br>
through the AJAX infrastructure. A preference doesn't cut it, because<br>
sometimes you still want to do traditional AJAX request.<br>
<font color="#888888"><br>
Lukas<br>
</font><div><div></div><div class="h5"><br>
On 26 October 2010 23:48, Gerhard Obermann <<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>> wrote:<br>
> Or could this not be a preference?<br>
><br>
> On Tue, Oct 26, 2010 at 11:45 PM, Gerhard Obermann <<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>> wrote:<br>
>><br>
>> Yes but do i have to patch the library!<br>
>><br>
>> On Tue, Oct 26, 2010 at 11:38 PM, Lukas Renggli <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>> wrote:<br>
>>><br>
>>> You have to patch the request header 'X-Requested-With' as this is for<br>
>>> example done in the Ajaxifier library.<br>
>>><br>
>>> Lukas<br>
>>><br>
>>> On 26 October 2010 23:30, Gerhard Obermann <<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>> wrote:<br>
>>> > Hi!<br>
>>> > I am currently trying to use JQuery Mobile (Alpha) with Seaside 3.0.<br>
>>> > The problem is that this lib catches all anchor clicks and<br>
>>> > performs ajax calls to get a new page, which is a fully render xhmtl<br>
>>> > page.<br>
>>> > The WAActionCallback doesn't currently allow such ajax callbacks.<br>
>>> > They are blocked with this method:<br>
>>> > isEnabledFor: aRequestContext<br>
>>> > " ^true"<br>
>>> > ^aRequestContext request isXmlHttpRequest not<br>
>>> > What would be a good solution to enable such callbacks also for AJAX<br>
>>> > calls.<br>
>>> ><br>
>>> > Cheers<br>
>>> > Gerhard<br>
>>> > _______________________________________________<br>
>>> > seaside-dev mailing list<br>
>>> > <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
>>> > <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Lukas Renggli<br>
>>> <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
>>> _______________________________________________<br>
>>> seaside-dev mailing list<br>
>>> <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
>>> <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> seaside-dev mailing list<br>
> <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
seaside-dev mailing list<br>
<a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</div></div></blockquote></div><br></div>