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]

Reply via email to