Somethink like this not working:
$commands[] = ajax_command_invoke(null, 'history.pushState', array(NULL, NULL, 'path'));
Somethink like this not working:
|
|||
asked |
1 year ago |
viewed |
287 times |
Technology | Life / Arts | Culture / Recreation | Science | Other | ||
---|---|---|---|---|---|---|
$commands[] = ajax_command_invoke(null, 'custom_command_history', array('path'));
and in custom js file:(function($) { $.fn.custom_command_history = function(data) { history.pushState(null, null, data); }; })(jQuery);
– malcolm Jun 2 '13 at 19:15