>"Can you post your freemarkerUtil.process() code?"

Nope, it has long since been deleted since we found out that forward works.  
You don't want/need to do that anyway.  The IE issue you are having is due to 
the character encoding is not set for freemarker servlet in web.xml.

        <servlet>
                <servlet-name>Freemarker</servlet-name>
                <servlet-class>
                        freemarker.ext.FreemarkerServlet</servlet-class>
                <init-param>
                        <param-name>TemplatePath</param-name>
                        <param-value>/</param-value>
                </init-param>
                <init-param>
                        <param-name>default_encoding</param-name>
                        <param-value>UTF-8</param-value>
                </init-param>
                <init-param>
                        <param-name>output_encoding</param-name>
                        <param-value>UTF-8</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
        </servlet>

Adjust utf-8 to whatever you require.  Without setting those IE will ignore 
ajax input.  Quirks 


For some reason we have this snippet as well, try adding those 2 settings 
above, and if it still doesn't work try adding this as a param to stripes 
filter:
                <init-param>
                    <param-name>LocalePicker.Locales</param-name>
                    <param-value>en_US:UTF-8</param-value>
                </init-param>



-----Original Message-----
From: Mick [mailto:[email protected]] 
Sent: Thursday, March 26, 2009 3:28 PM
To: [email protected]
Subject: [Stripes-users] Streaming FTL Pages for AJAX

Yea I am just trying to fill the contents of a div with AJAX. I though it would
be as easy as you said. The normal forward works fine in FireFox but fails in
IE. Can you post your freemarkerUtil.process() code?

This works in both IE and FireFox:
  Java: return new StreamingResolution("text/json", jsonStr);
  JS:   $.get(uoutputDiv.text(eval(data)['result']);

This works in FireFox but fails in IE: 
  Java: return new ForwardResolution("page_fragment.ftl");
  JS:   $('#ajaxContentDiv').load(url1);

I know that I can make it work in IE if I just return the page fragment in a
SteamingResolution. I would prefer to access the FreeMarker configuration that
is already configured by Stripes rather than configuring a second instance for
streaming templates.



------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to