Load fails silently in IE. Investigating further, I tried the script below.
Which resulted in 'Save failed, please try again.' being displayed for IE. I
don't know why. There are no JavaScript errors. FireFox will display the
template text and also the properly rendered HTML if I
use $('#outputDiv').html() instead of $('#outputDiv').text().
$.ajax({
type: 'GET',
url: url1,
processData: false,
dataType: 'text/plain',
success: function(args){
$('#outputDiv').text(args);
},
error: function(args){
$('#outputDiv').text('Save failed, please try again.');
}
});On Thu, Mar 26, 2009 at 3:38 PM, Mike McNally <[email protected]> wrote: > That doesn't really make a lot of sense to me. How does this > "failure" manifest itself? > > I have in fact loaded plain ol' ForwardResolution through JSP pages > into divs with the jQuery load() API, and it works just fine. > > > On Thu, Mar 26, 2009 at 2:28 PM, Mick <[email protected]> wrote: > > 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 > > > > > > -- > Turtle, turtle, on the ground, > Pink and shiny, turn around. > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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
