somehow the bug doesn't appear anymore.  I'm running 5.0.6 so it could be
related. I'll investigate once I encounter it again. 


Howard Lewis Ship wrote:
> 
> That's supposed to work; there was a bug in 5.0.6 that may have caused
> this behavior (and is fixed in 5.0.7).
> 
> On Jan 2, 2008 1:43 AM, Britske <[EMAIL PROTECTED]> wrote:
>>
>> A strange thing happens.
>>
>> following an example of returning a streamresponse based on a user-click,
>> this all works well in IE7 but not in Firefox. Instead firefox exectutes
>> the
>> action and the simply fires an onActivate-event rendering the action
>> useless
>> (the page is simply loaded again as if the action wasn't fired. )
>>
>> Anyone knows whats happening here? (I know this may nog be
>> tapestry-related,
>> but I'm not sure. )
>>
>> - template --
>>
>> <script type="text/javascript">
>>                 function handleResponse (xhrResponse){
>>                         alert (xhrResponse.responseText);
>>                 }
>>
>>                 function asyncCall (){
>>                         new Ajax.Request ('${quickSearchBoxLink}',
>> {asynchronous:true,onSuccess:handleResponse});
>>                 }
>>         </script>
>>
>>         <button onclick="asyncCall();">Do AJAX Call</button>
>>
>>
>> -- class --
>>
>> /**
>>          * Generates a URI to the server-side function for the XHR
>>          * to use.
>>          *
>>          * @return the link
>>          */
>>         public String getQuickSearchBoxLink ()  {
>>                 Link l = getResources().createActionLink
>> ("quickSearchBoxAction", false);
>>                 return l.toURI();
>>         }
>>
>>         /**
>>          * This is a server-side method called via XHR that returns
>>          * some text.
>>          *
>>          * @return some text
>>          */
>>         private StreamResponse onQuickSearchBoxAction ()        {
>>                 return new TextStreamResponse ("text/html", "Five bucks
>> below the belt.
>> That's how I roll.");
>>         }
>>
>> Thanks, (and a happy New Year!)
>>
>> Geert-Jan
>> --
>> View this message in context:
>> http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14575595.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14581723.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to