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">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</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>
        $(&quot;html&quot;).ajaxSend(function(event, xhr) {<br>
                xhr.setRequestHeader(&quot;X-Requested-With&quot;, &quot;jQueryMobile&quot;);<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&#39;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 &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote:<br>
&gt; Or could this not be a preference?<br>
&gt;<br>
&gt; On Tue, Oct 26, 2010 at 11:45 PM, Gerhard Obermann &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Yes but do i have to patch the library!<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Oct 26, 2010 at 11:38 PM, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You have to patch the request header &#39;X-Requested-With&#39; as this is for<br>
&gt;&gt;&gt; example done in the Ajaxifier library.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Lukas<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 26 October 2010 23:30, Gerhard Obermann &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; Hi!<br>
&gt;&gt;&gt; &gt; I am currently trying to use JQuery Mobile (Alpha) with Seaside 3.0.<br>
&gt;&gt;&gt; &gt; The problem is that this lib catches all anchor clicks and<br>
&gt;&gt;&gt; &gt; performs ajax calls to get a new page, which is a fully render xhmtl<br>
&gt;&gt;&gt; &gt; page.<br>
&gt;&gt;&gt; &gt; The WAActionCallback doesn&#39;t currently allow such ajax callbacks.<br>
&gt;&gt;&gt; &gt; They are blocked with this method:<br>
&gt;&gt;&gt; &gt; isEnabledFor: aRequestContext<br>
&gt;&gt;&gt; &gt; &quot; ^true&quot;<br>
&gt;&gt;&gt; &gt; ^aRequestContext request isXmlHttpRequest not<br>
&gt;&gt;&gt; &gt; What would be a good solution to enable such callbacks also for AJAX<br>
&gt;&gt;&gt; &gt; calls.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Cheers<br>
&gt;&gt;&gt; &gt; Gerhard<br>
&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt; &gt; seaside-dev mailing list<br>
&gt;&gt;&gt; &gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt; &gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Lukas Renggli<br>
&gt;&gt;&gt; <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; seaside-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside-dev mailing list<br>
&gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;<br>
&gt;<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>