javascript - Appending DOM elements after page reload on ajax success call -
$.ajax({ type : 'post', url : requesturl, info : data, datatype : 'json', success : function(data) { location.reload(); $('#status').append( // append here!! ); $('#loader').hide(); } });
i'm having issues forcing page reload first , appending elements. need functionality occur since page initialize 1 time again on reload , wipe out elements i'm trying append.
once phone call location.reload()
it's late. scripts won't go on run after page has reloaded.
it sounds may need rethink general approach here. mutual approach not utilize ajax @ (since plan reload page anyway), or have server render page in desired new state, including whatever going append it.
javascript jquery ajax dom reload
No comments:
Post a Comment