T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske

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]



RE: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Yeeswara Nadapana (HCL Financial Services)

Hi,

I want to use like t:loop source=filterList which is a List of
String objects. I want to add those strings to the combo box... so
trying to loop through the option tag... Please explain how to add
those elements to combo box?

Thanks,
Yeeswar.

-Original Message-
From: Britske [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 3:13 PM
To: users@tapestry.apache.org
Subject: T5: AJAX and Firefox doesn't work


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-tp14575595p1
4575595.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]


DISCLAIMER:
---
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
---

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



Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Howard Lewis Ship
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]



Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske

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]