Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Somethink like this not working:

$commands[] = ajax_command_invoke(null, 'history.pushState', array(NULL, NULL, 'path'));
share|improve this question
    
Find answer, but not sure is it drupal way: in ajax_callback_function: $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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.