It’s required to partial upload Html page with $(selector).load('/sitePath', params, function() { ... }); method. Html layout comes ok but it would be nice to return some additional values for javascript also.
Nowadays I return special javascript block with javascript variables inside html layout to read their values on load callback. What is the best practice to perform such operation?
Thank you in advance!
I’d go for
JSONand.ajax().Of course assumes that you create a
JSONstring on your server that helds both, a property namednewcontentwhich should containhtml markupand a property namedadditionalinfo.